2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: LocToUpper - locale.library's private replacement
6 of utility.library/ToUper 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_CONVTOUPPER(x) ;
20 /*****************************************************************************
23 #include <proto/locale.h>
25 AROS_PLH1(ULONG
, LocToUpper
,
28 AROS_LHA(ULONG
, character
, D0
),
31 struct UtilityBase
*, UtilityBase
, 35, Locale
)
34 See utility.library/ToUpper
37 See utility.library/ToUpper
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/ToUpper(), locale.library/ConvToUpper().
57 *****************************************************************************/
65 DEBUG_CONVTOUPPER(dprintf("locToUpper: char 0x%lx\n", character
));
67 DEBUG_CONVTOUPPER(dprintf("locToUpper: locale 0x%lx\n",
68 (struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
));
70 retval
= ConvToUpper((struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
,
73 DEBUG_CONVTOUPPER(dprintf("locToUpperr: retval 0x%lx\n", retval
));