- Tabs to spaces.
[AROS.git] / workbench / libs / locale / convtolower.c
blob2216852e789c1fc5f898fc919f750489ffe40437
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ConvToLower() - Stub for the Language tolower() function.
6 Lang: english
7 */
8 #include <exec/types.h>
9 #include "locale_intern.h"
10 #include <aros/asmcall.h>
12 #define DEBUG_CONVTOLOWER(x) ;
14 /*****************************************************************************
16 NAME */
17 #include <proto/locale.h>
19 AROS_LH2(ULONG, ConvToLower,
21 /* SYNOPSIS */
22 AROS_LHA(const struct Locale *, locale, A0),
23 AROS_LHA(ULONG , character, D0),
25 /* LOCATION */
26 struct LocaleBase *, LocaleBase, 8, Locale)
28 /* FUNCTION
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.
33 INPUTS
34 locale - The Locale to use for this conversion.
35 character - The character to convert to lower case.
37 RESULT
38 The possibly converted character.
40 NOTES
41 This function requires a full 32-bit character in order to
42 support future multi-byte character sets.
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 ULONG retval;
58 DEBUG_CONVTOLOWER(dprintf("ConvToLower: locale 0x%lx char 0x%lx\n",
59 locale, character));
61 DEBUG_CONVTOLOWER(dprintf("ConvToLower: func 0x%lx\n",
62 IntL(locale)->il_LanguageFunctions[0]));
64 #ifdef AROS_CALL1
65 retval = AROS_CALL1(ULONG, IntL(locale)->il_LanguageFunctions[0],
66 AROS_LCA(ULONG, character, D0), struct LocaleBase *, LocaleBase);
67 #else
68 retval = AROS_UFC2(ULONG, IntL(locale)->il_LanguageFunctions[0],
69 AROS_UFCA(ULONG, character, D0),
70 AROS_UFCA(struct LocaleBase *, LocaleBase, A6));
71 #endif
73 DEBUG_CONVTOLOWER(dprintf("ConvToLower: retval 0x%lx\n", retval));
75 return (retval);
77 AROS_LIBFUNC_EXIT