2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
24 /************************************<+>*************************************
25 ****************************************************************************
27 ** File: LocaleXlate.h
31 ** Description: locale translation services
33 ** (c) Copyright 1993, 1994 Hewlett-Packard Company
34 ** (c) Copyright 1993, 1994 International Business Machines Corp.
35 ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
36 ** (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
39 ****************************************************************************
40 ************************************<+>*************************************/
43 #ifndef _DtLCX_XLATE_LOCALE_I
44 #define _DtLCX_XLATE_LOCALE_I
46 #include "XlationSvc.h" /* FIX: move to <> */
53 /*========================================================*/
54 $CONSTBEG$: _DtLCX_OPER_xxx
55 $1LINER$: Constants for specifying operations
57 The _DtLCX_OPER_xxx are constants that produce strings
58 used in the translation specifications when specifying
59 the operation of a translation.
61 The operation string name must be identical both in the
62 source code and in the translation table.
63 These constants should be used whenever referencing
64 operations as part of a translation.
65 /*================================================$SKIP$==*/
67 /* $DEF$, Operation constants */
68 #define DtLCX_OPER_STD "standard"
69 #define DtLCX_OPER_ICONV1 "iconv1"
70 #define DtLCX_OPER_ICONV3 "iconv3"
71 #define DtLCX_OPER_NLLANGINFO_CODESET "nl_langinfo(CODESET)"
72 #define DtLCX_OPER_SETLOCALE "setlocale"
73 #define DtLCX_OPER_MULTIBYTE "multibyte"
74 #define DtLCX_OPER_CCDF "ccdf"
75 #define DtLCX_OPER_XLFD "xlfd"
76 #define DtLCX_OPER_MIME "mime"
77 #define DtLCX_OPER_INTERCHANGE_CODESET "interchangeCodeset"
81 #define _DtLcxCloseDb(io_db) _DtXlateCloseDb(io_db)
85 int _DtLcxXlateOpToStd(
86 const _DtXlateDb xlationDb,
87 const char * platform,
89 const char * operation,
91 char * * ret_stdLocale,
92 char * * ret_stdLangTerr,
93 char * * ret_stdCodeset,
94 char * * ret_stdModifier);
96 int _DtLcxXlateStdToOp(
97 const _DtXlateDb xlationDb,
98 const char * platform,
100 const char * operation,
101 const char * stdLocale,
102 const char * stdLangTerr,
103 const char * stdCodeset,
104 const char * stdModifier,
105 char * * ret_opValue);
111 #endif /*_DtLCX_XLATE_LOCALE_I*/
112 /********* do not put anything below this line ********/