sqlines-w/str.cpp
// Replace character in string (returns the same string)
Replace character in string (returns the same string)
Replace character in string ( returns the same string )
char* Str::ReplaceChar(char *input, const char what, const char with)
{
	if(!input)
		return NULL;
	char *cur = input;
	while(*cur)
	{
		if(*cur == what)
			*cur = with;
		cur++;
	}
	return input;
}
char * Str :: ReplaceChar ( char * input , const char what , const char with ) { if ( ! input ) return NULL ; char * cur = input ; while ( * cur ) { if ( * cur == what ) * cur = with ; cur ++ ; } return input ; }
Replace character in string (returns the same string)
Replace character in string ( returns the same string )