(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/utility.h>

UBYTE ToUpper (character)

LOCATION
In UtilityBase at offset 29

SYNOPSIS
ULONG character

FUNCTION
Convert a character to uppercase

INPUTS
character
The character that you want changed.

RESULT
The uppercase version of that character.

EXAMPLE
STRPTR string; UBYTE chr;

\* Convert a string to uppercase *\
while( chr = *string )
{
    *string = ToUpper( chr );
    string++;
}
SEE ALSO
utility/ ToLower()

NOTES
Currently only works for ASCII characters. Would not be difficult to adapt for other character sets (Unicode for example).

This function is patched by the locale.library, so you should be prepared for different results when running under different languages.

BUGS

INTERNALS
This function is patched by locale.library.

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.08.1997 digulla
Polish.

Renamed utility_intern.h to intern.h.

27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use proper Amiga datatypes (eg: ULONG not unsigned long)
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.09.1996 digulla
Removed the macro TOUPPER. Use this library function instead
31.08.1996 aros
Merged in/modified for FreeBSD.