Searching for big characters in string
#1

Hello guys, how can I search in string for big character? I guess I know how to check the first character of the string:
pawn Код:
if (inputtext[0] >= 'A' || <= 'Z'') //idk if this will work, this is only for first character
but now, I want to locate underscore and the character after underscore I want check, example:

Name_Lastname
Reply
#2

pawn Код:
new pos = strfind(inputtext, "_", true);
if(pos != -1) {
    if(inputtext[pos + 1] >= 'A' && inputtext[pos + 1] <= 'Z') // code here
}
Reply
#3

can I ask you? what does mean -1 here? if(pos != -1)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)