2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: LocStricmp - locale.library's private replacement
6 of utility.library/Stricmp 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_STRCMP(x) ;
20 /*****************************************************************************
23 #include <proto/locale.h>
25 AROS_PLH2(LONG
, LocStricmp
,
28 AROS_LHA(CONST_STRPTR
, string1
, A0
),
29 AROS_LHA(CONST_STRPTR
, string2
, A1
),
32 struct UtilityBase
*, UtilityBase
, 33, Locale
)
35 See utility.library/Stricmp
38 See utility.library/Stricmp
43 This function is not called by apps directly. Instead dos.library/DosGet-
44 LocalizedString is patched to use this function. This means, that the
45 LocaleBase parameter above actually points to UtilityBase, so we make use of
46 the global LocaleBase variable. This function is marked as private,
47 thus the headers generator won't mind the different basename in the header.
54 utility.library/Stricmp(), locale.library/StrnCmp().
58 *****************************************************************************/
66 DEBUG_STRCMP(dprintf("locStrCmp: <%s> <%s>\n", string1
, string2
));
68 DEBUG_STRCMP(dprintf("locStrCmp: CurrentLocale 0x%lx\n",
69 (struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
));
71 retval
= StrnCmp((struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
,
72 (STRPTR
) string1
, (STRPTR
) string2
, -1, SC_ASCII
);
74 DEBUG_STRCMP(dprintf("StrCmp: retval 0x%lx\n", retval
));