Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function int cleanString(int string)
- {
- int ret = "";
- int strSize = StrLen(string);
- int c, i, ignoreNext;
- for (i = 0; i < strSize; i++)
- {
- c = GetChar(string, i);
- if ( ( ((c > 8) && (c < 14)) || ((c > 31) && (c < 127)) || ((c > 160) && (c < 173)) ) && !ignoreNext)
- {
- ret = StrParam(s:ret, c:c);
- }
- else if (c == 28 && !ignoreNext)
- {
- ignoreNext = 1;
- }
- else
- {
- ignoreNext = 0;
- }
- }
- return ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement