Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static cell AMX_NATIVE_CALL TP_ToLowerString_dartfol(AMX *amx, cell *params)
- {
- cell *pAddress = NULL;
- unsigned char s;
- amx_GetAddr(amx, params[1], &pAddress);
- while(*pAddress)
- {
- s = *(char*)pAddress;
- if(s > 64 && s < 91) // буквы A-Z
- s += 32;
- else if(s > 191 && s < 224) // буквы А-Я
- s += 32;
- else if(s == 168) // буква Ё
- s = 184;
- *(char*)pAddress = s;
- pAddress++;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement