2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: ConvToUpper() - stub for the language toupper() function.
9 #include <exec/types.h>
10 #include "locale_intern.h"
11 #include <aros/asmcall.h>
13 #define DEBUG_CONVTOUPPER(x) ;
15 /*****************************************************************************
18 #include <proto/locale.h>
20 AROS_LH2(ULONG
, ConvToUpper
,
23 AROS_LHA(const struct Locale
*, locale
, A0
),
24 AROS_LHA(ULONG
, character
, D0
),
27 struct LocaleBase
*, LocaleBase
, 9, Locale
)
30 ConvToUpper() will determine if a character is a lower case
31 character and if so convert it to the upper case equivalent.
32 Otherwise it will return the original character.
35 locale - The Locale to use for this conversion.
36 character - The character to convert.
39 The possibly converted character.
42 This function requires a full 32-bit character in order to support
43 future multi-byte character sets.
54 *****************************************************************************/
60 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: locale 0x%lx char 0x%lx\n",
63 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: func 0x%lx\n",
64 IntL(locale
)->il_LanguageFunctions
[1]));
67 retval
= AROS_CALL1(ULONG
, IntL(locale
)->il_LanguageFunctions
[1],
68 AROS_LCA(ULONG
, character
, D0
), struct LocaleBase
*, LocaleBase
);
70 retval
= AROS_UFC2(ULONG
, IntL(locale
)->il_LanguageFunctions
[1],
71 AROS_UFCA(ULONG
, character
, D0
),
72 AROS_UFCA(struct LocaleBase
*, LocaleBase
, A6
));
75 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: retval 0x%lx\n", retval
));