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?
In reply to Re: Thinkin' Perl in C++
by BrowserUk
in thread Thinkin' Perl in C++
by gibsonca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |