03.08.2017, 12:59
Iterate through the whole sSubject and find the ones you need to change instead, that's how I would have done it at least. I don't know where you can get strlib from, the wiki page is being nab and it doesn't tell. But I'll show you how you can do it without str_replace.
Replacing whole words will force you to use something like strcmp or similar. Again maybe str_replace works, I don't know because I've never seen where you could download that library from (neither have I given any effort in finding it other than trying from the wiki).
Код:
for (new i = 0; i < sizeof(sSubject); i++) { if (sSubject[i] == 'ą') { sSubject[i] = 'a'; } else if (sSubject[i] == 'ć') { sSubject[i] = 'c'; } }