diff --git a/cwText.cpp b/cwText.cpp index 811a8de..c40bad2 100644 --- a/cwText.cpp +++ b/cwText.cpp @@ -158,6 +158,21 @@ char* cw::firstMatchChar( char* s, char c ) } const char* cw::firstMatchChar( const char* s, char c ) +{ return firstMatchChar((char*)s,c); } + +char* cw::firstMatchChar( char* s, unsigned n, char c ) +{ + if( s == nullptr ) + return nullptr; + + for(unsigned i=0; *s && i