Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtSvc / DtUtil2 / LocaleXlate.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        LocaleXlate.h
28  **
29  **   Project:     DtLcx
30  **
31  **   Description: locale translation services
32  **
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.
37  **
38  **
39  ****************************************************************************
40  ************************************<+>*************************************/
41
42
43 #ifndef _DtLCX_XLATE_LOCALE_I
44 #define _DtLCX_XLATE_LOCALE_I
45
46 #include "XlationSvc.h"     /* FIX: move to <> */
47
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51
52 #if DOC
53 /*========================================================*/
54 $CONSTBEG$: _DtLCX_OPER_xxx
55 $1LINER$:  Constants for specifying operations
56 $SUMMARY$:
57 The _DtLCX_OPER_xxx are constants that produce strings
58 used in the translation specifications when specifying
59 the operation of a translation.
60
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$==*/
66 #endif
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"
78 /*$END$*/
79
80 /* Functions */
81 #define _DtLcxCloseDb(io_db)    _DtXlateCloseDb(io_db)
82 int  _DtLcxOpenAllDbs(
83        _DtXlateDb *    ret_db);
84
85 int _DtLcxXlateOpToStd(
86        const _DtXlateDb   xlationDb,
87        const char *       platform,
88        const int          version,
89        const char *       operation,
90        const char *       opValue,
91        char * *           ret_stdLocale,
92        char * *           ret_stdLangTerr,
93        char * *           ret_stdCodeset,
94        char * *           ret_stdModifier);
95
96 int _DtLcxXlateStdToOp(
97        const _DtXlateDb   xlationDb,
98        const char *       platform,
99        const int          version,
100        const char *       operation,
101        const char *       stdLocale,
102        const char *       stdLangTerr,
103        const char *       stdCodeset,
104        const char *       stdModifier,
105        char * *           ret_opValue);
106
107 #ifdef __cplusplus
108 }
109 #endif
110
111 #endif /*_DtLCX_XLATE_LOCALE_I*/
112 /********* do not put anything below this line ********/