in reply to Thinkin' Perl in C++

I'd like to find a C++ Perl class I could import ... I am trying to recall the CString functions to do this

Sounds like a sledgehammer to crack a peanut given all you need is: while( p = strchr( s, '-' ) ) *p = '_';

I sympathise with the sentiment of wanting Perl's string handling from C, but the power of Perl's string comes not directly from it's built-in functions -- there's only substr & length of note which are nothing particularly powerful or special -- but more from the regex engine.

Perhaps this is what you are looking for?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Thinkin' Perl in C++
by JavaFan (Canon) on Mar 01, 2012 at 17:09 UTC
    there's only substr & length of note which are nothing particularly powerful or special
    I'm quite found of the power of concatenation compared on how to do that in C.