str_replace, how to change char.
#1

Hello! Sorry for my bad english, i'm polish.

I have a problem with str_replace.
Quote:

new sSearch[] = {"ą", "ć"};
new sReplace[] = {"a", "c"};
new sSubject[] = "Asią byla ćasna.";

for(new i; i < sizeof(sSearch); i++)
{
str_replace(sSearch[i], sReplace[i], sSubject);
}

printf("%s", sSubject);

Original text: Asią byla ćasna
Change text: Asia byla casna

How to make??
Reply


Messages In This Thread
str_replace, how to change char. - by Zamek - 02.08.2017, 20:55
Re: str_replace, how to change char. - by Zamek - 03.08.2017, 12:46
Re: str_replace, how to change char. - by Hansrutger - 03.08.2017, 12:59
Re: str_replace, how to change char. - by OsteeN - 03.08.2017, 12:59
Re: str_replace, how to change char. - by Hansrutger - 03.08.2017, 13:01
Re: str_replace, how to change char. - by Zamek - 03.08.2017, 13:26
Re: str_replace, how to change char. - by OsteeN - 03.08.2017, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)