mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 07:28:30 +00:00
Add all missing "is characteristic" stdlib functions
SDL has been missing a bunch of these 'isX' functions for some time, where X is some characteristic of a given character. This commit adds the rest of them to the SDL stdlib, so now we have: - SDL_isalpha() - SDL_isalnum() - SDL_isblank() - SDL_iscntrl() - SDL_isxdigit() - SDL_ispunct() - SDL_isprint() - SDL_isgraph()
This commit is contained in:
@@ -799,3 +799,11 @@
|
||||
#define SDL_SetWindowMouseGrab SDL_SetWindowMouseGrab_REAL
|
||||
#define SDL_GetWindowKeyboardGrab SDL_GetWindowKeyboardGrab_REAL
|
||||
#define SDL_GetWindowMouseGrab SDL_GetWindowMouseGrab_REAL
|
||||
#define SDL_isalpha SDL_isalpha_REAL
|
||||
#define SDL_isalnum SDL_isalnum_REAL
|
||||
#define SDL_isblank SDL_isblank_REAL
|
||||
#define SDL_iscntrl SDL_iscntrl_REAL
|
||||
#define SDL_isxdigit SDL_isxdigit_REAL
|
||||
#define SDL_ispunct SDL_ispunct_REAL
|
||||
#define SDL_isprint SDL_isprint_REAL
|
||||
#define SDL_isgraph SDL_isgraph_REAL
|
||||
|
@@ -862,3 +862,11 @@ SDL_DYNAPI_PROC(void,SDL_SetWindowKeyboardGrab,(SDL_Window *a, SDL_bool b),(a,b)
|
||||
SDL_DYNAPI_PROC(void,SDL_SetWindowMouseGrab,(SDL_Window *a, SDL_bool b),(a,b),)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_GetWindowKeyboardGrab,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_GetWindowMouseGrab,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isalpha,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isalnum,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isblank,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_iscntrl,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isxdigit,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_ispunct,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isprint,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_isgraph,(int a),(a),return)
|
||||
|
Reference in New Issue
Block a user