2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <exec/types.h>
9 #include <aros/libcall.h>
12 /*****************************************************************************
15 #include <proto/utility.h>
17 AROS_LH1I(UBYTE
, ToUpper
,
20 AROS_LHA(ULONG
, character
, D0
),
23 struct UtilityBase
*, UtilityBase
, 29, Utility
)
26 Convert a character to uppercase
29 character - The character that you want changed.
32 The uppercase version of that character.
35 Currently only works for ASCII characters. Would not be difficult
36 to adapt for other character sets (Unicode for example).
38 This function is patched by the locale.library, so you should be
39 prepared for different results when running under different
43 STRPTR string; UBYTE chr;
45 \* Convert a string to uppercase *\
46 while( chr = *string )
48 *string = ToUpper( chr );
58 This function is patched by locale.library.
61 29-10-95 digulla automatically created from
62 utility_lib.fd and clib/utility_protos.h
63 10-08-96 iaint Created from tolower.c from AROSdev15
64 *****************************************************************************/
70 (character
>= 'a' && character
<= 'z')