2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: LocToLower - locale.library's private replacement
6 of utility.library/ToLower function. IPrefs will install
12 #include <exec/types.h>
13 #include <proto/exec.h>
14 #include <proto/locale.h>
15 #include "locale_intern.h"
16 #include <aros/asmcall.h>
18 #define DEBUG_CONVTOLOWER(x) ;
20 /*****************************************************************************
23 #include <proto/locale.h>
25 AROS_PLH1(ULONG
, LocToLower
,
28 AROS_LHA(ULONG
, character
, D0
),
31 struct UtilityBase
*, UtilityBase
, 34, Locale
)
34 See utility.library/ToLower
37 See utility.library/ToLower
42 This function is not called by apps directly. Instead dos.library/DosGet-
43 LocalizedString is patched to use this function. This means, that the
44 LocaleBase parameter above actually points to UtilityBase, so we make use of
45 the global LocaleBase variable. This function is marked as private,
46 thus the headers generator won't mind the different basename in the header.
53 utility.library/ToLower(), locale.library/ConvToLower().
57 *****************************************************************************/
65 DEBUG_CONVTOLOWER(dprintf("locToLower: char 0x%lx\n", character
));
67 DEBUG_CONVTOLOWER(dprintf("locToLower: locale 0x%lx\n",
68 (struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
));
70 retval
= ConvToLower((struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
,
73 DEBUG_CONVTOLOWER(dprintf("locToLower: retval 0x%lx\n", retval
));