Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-----------------------------
- XF CH3WY's Squiggle Check
- *DO NOT EDIT
- -----------------------------*/
- ///BUFFETINGS FUNCTIONS
- #define substring(str, startIndex, stopIndex) GET_STRING_FROM_STRING(str, startIndex, stopIndex)
- #define charAt(str, index) substring(str, index, index+1)
- bool IsSquiggleInString(char* stringName)
- {
- int i = 0, squiggleCount = 0;
- for(i = 0;i < GET_LENGTH_OF_LITERAL_STRING(stringName);i++)
- {
- char* charTxt;
- charTxt = charAt(stringName, i);
- if(!COMPARE_STRING(charTxt, "~")) continue;
- squiggleCount++;
- }
- if(squiggleCount > 0)
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment