Example #1
0
void test_replace()
{
	printf( ">>>>>>>>> Replace 테스트\n" );
	CUString str;
	str = "hello this is my ... ";
	int num = str.Replace( "...", "" );
	str.Print( stderr );
	fprintf( stderr, "%s[%d]\n",str.GetStr(), num );
	printf( "\n" );
}
Example #2
0
void replace_test()
{
	CUString str;
	str = "hello this is my ... ";
	str = "abababab___";
	int num = str.Replace( "aba", "$" );
	str.Print( stderr );
	fprintf( stderr, "%s[%d]\n",str.GetStr(), num );

}