Fixed SDL's implementation of isspace() to check form feed and vertical tab.
This commit is contained in:
parent
a9558933a9
commit
6aa8bc33bd
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ int SDL_toupper(int x) { return toupper(x); }
|
|||
int SDL_tolower(int x) { return tolower(x); }
|
||||
#else
|
||||
int SDL_isdigit(int x) { return ((x) >= '0') && ((x) <= '9'); }
|
||||
int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n'); }
|
||||
int SDL_isspace(int x) { return ((x) == ' ') || ((x) == '\t') || ((x) == '\r') || ((x) == '\n') || ((x) == '\f') || ((x) == '\v'); }
|
||||
int SDL_toupper(int x) { return ((x) >= 'a') && ((x) <= 'z') ? ('A'+((x)-'a')) : (x); }
|
||||
int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) : (x); }
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue