Skip to content

Commit 0fe9ab8

Browse files
committed
Add SDL_toupper and SDL_tolower
1 parent b7d20c5 commit 0fe9ab8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

units/sdlstdinc.inc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,24 @@ function SDL_isprint(x: cint):cint; cdecl;
266266
function SDL_isgraph(x: cint):cint; cdecl;
267267
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_isgraph' {$ENDIF} {$ENDIF};
268268

269+
(**
270+
* If the given ASCII character is a lowercase letter, converts it to uppercase.
271+
* Otherwise returns the original value.
272+
*
273+
* \since This function is available since SDL 2.0.4.
274+
*)
275+
function SDL_toupper(x: cint):cint; cdecl;
276+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_toupper' {$ENDIF} {$ENDIF};
277+
278+
(**
279+
* If the given ASCII character is an uppercase letter, converts it to lowercase.
280+
* Otherwise returns the original value.
281+
*
282+
* \since This function is available since SDL 2.0.4.
283+
*)
284+
function SDL_tolower(x: cint):cint; cdecl;
285+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_tolower' {$ENDIF} {$ENDIF};
286+
269287

270288
(*** --- iconv functions --- ***)
271289

0 commit comments

Comments
 (0)