2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: ConvToLower() - Stub for the Language tolower() function.
8 #include <exec/types.h>
9 #include "locale_intern.h"
10 #include <aros/asmcall.h>
12 #define DEBUG_CONVTOLOWER(x) ;
14 /*****************************************************************************
17 #include <proto/locale.h>
19 AROS_LH2(ULONG
, ConvToLower
,
22 AROS_LHA(const struct Locale
*, locale
, A0
),
23 AROS_LHA(ULONG
, character
, D0
),
26 struct LocaleBase
*, LocaleBase
, 8, Locale
)
29 This function determine if the character supplied is upper case,
30 and if it is, the character will be converted to lower case.
31 Otherwise, the original character will be returned.
34 locale - The Locale to use for this conversion.
35 character - The character to convert to lower case.
38 The possibly converted character.
41 This function requires a full 32-bit character in order to
42 support future multi-byte character sets.
52 *****************************************************************************/
58 DEBUG_CONVTOLOWER(dprintf("ConvToLower: locale 0x%lx char 0x%lx\n",
61 DEBUG_CONVTOLOWER(dprintf("ConvToLower: func 0x%lx\n",
62 IntL(locale
)->il_LanguageFunctions
[0]));
65 retval
= AROS_CALL1(ULONG
, IntL(locale
)->il_LanguageFunctions
[0],
66 AROS_LCA(ULONG
, character
, D0
), struct LocaleBase
*, LocaleBase
);
68 retval
= AROS_UFC2(ULONG
, IntL(locale
)->il_LanguageFunctions
[0],
69 AROS_UFCA(ULONG
, character
, D0
),
70 AROS_UFCA(struct LocaleBase
*, LocaleBase
, A6
));
73 DEBUG_CONVTOLOWER(dprintf("ConvToLower: retval 0x%lx\n", retval
));