Fixed a few warnings.
[tangerine.git] / workbench / libs / locale / convtoupper.c
blobdc90f97d4af8817ed55594144515223aac296511
1 /*
2 Copyright © 1995-2008, 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,
62 character));
64 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: func 0x%lx\n",
65 IntL(locale)->il_LanguageFunctions[1]));
67 #ifdef AROS_CALL1
68 retval = AROS_CALL1(ULONG, IntL(locale)->il_LanguageFunctions[1],
69 AROS_LCA(ULONG, character, D0),
70 struct LocaleBase *, LocaleBase);
71 #else
72 retval = AROS_UFC2(ULONG, IntL(locale)->il_LanguageFunctions[1],
73 AROS_UFCA(ULONG, character, D0),
74 AROS_UFCA(struct LocaleBase *, LocaleBase, A6));
75 #endif
77 DEBUG_CONVTOUPPER(dprintf("ConvToUpper: retval 0x%lx\n",
78 retval));
80 return(retval);
82 AROS_LIBFUNC_EXIT
83 } /* ConvToUpper */