- Tabs to spaces.
[AROS.git] / workbench / libs / locale / convtoupper.c
blob41d7a8cdac0b4e4033cc1f7d990f83a4c4a27654
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ConvToUpper() - stub for the language toupper() function.
6 Lang: english
7 */
9 #include <exec/types.h>
10 #include "locale_intern.h"
11 #include <aros/asmcall.h>
13 #define DEBUG_CONVTOUPPER(x) ;
15 /*****************************************************************************
17 NAME */
18 #include <proto/locale.h>
20 AROS_LH2(ULONG, ConvToUpper,
22 /* SYNOPSIS */
23 AROS_LHA(const struct Locale *, locale, A0),
24 AROS_LHA(ULONG , character, D0),
26 /* LOCATION */
27 struct LocaleBase *, LocaleBase, 9, Locale)
29 /* FUNCTION
30 ConvToUpper() will determine if a character is a lower case
31 character and if so convert it to the upper case equivalent.
32 Otherwise it will return the original character.
34 INPUTS
35 locale - The Locale to use for this conversion.
36 character - The character to convert.
38 RESULT
39 The possibly converted character.
41 NOTES
42 This function requires a full 32-bit character in order to support
43 future multi-byte character sets.
45 EXAMPLE
47 BUGS
49 SEE ALSO
50 ConvToLower()
52 INTERNALS
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 ULONG retval;
60 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: locale 0x%lx char 0x%lx\n",
61 locale, character));
63 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: func 0x%lx\n",
64 IntL(locale)->il_LanguageFunctions[1]));
66 #ifdef AROS_CALL1
67 retval = AROS_CALL1(ULONG, IntL(locale)->il_LanguageFunctions[1],
68 AROS_LCA(ULONG, character, D0), struct LocaleBase *, LocaleBase);
69 #else
70 retval = AROS_UFC2(ULONG, IntL(locale)->il_LanguageFunctions[1],
71 AROS_UFCA(ULONG, character, D0),
72 AROS_UFCA(struct LocaleBase *, LocaleBase, A6));
73 #endif
75 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: retval 0x%lx\n", retval));
77 return (retval);
79 AROS_LIBFUNC_EXIT