Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isUpperChar(c)
- {
- asc = getAscii(c);
- if (asc >= 65 && asc <= 90)
- return true;
- return false;
- }
- isCapsMessage(msg)
- {
- if (msg.size > 1)
- {
- if (self lovevodka\_russian::isRussianPlayer() && lovevodka\_russian::isRussianText(msg))
- {
- for (i=1; i<msg.size; i++)
- if (lovevodka\_russian::isUpperChar(msg[i-1]) && lovevodka\_russian::isUpperChar(msg[i]))
- return true;
- }
- else
- {
- for (i=1; i<msg.size; i++)
- if (isUpperChar(msg[i-1]) && isUpperChar(msg[i]))
- return true;
- }
- }
- return false;
- }
- checkForCaps(msg)
- {
- if (isCapsMessage(msg))
- {
- if (self lovevodka\_russian::isRussianPlayer() && lovevodka\_russian::isRussianText(msg))
- msg = lovevodka\_russian::toLower(msg);
- else
- msg = toLower(msg);
- }
- return msg;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement