Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtSvc / DtUtil2 / LocaleXlate.h
1 /* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  **
5  **   File:        LocaleXlate.h
6  **
7  **   Project:     DtLcx
8  **
9  **   Description: locale translation services
10  **
11  **   (c) Copyright 1993, 1994 Hewlett-Packard Company
12  **   (c) Copyright 1993, 1994 International Business Machines Corp.
13  **   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
14  **   (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
15  **
16  **
17  ****************************************************************************
18  ************************************<+>*************************************/
19
20
21 #ifndef _DtLCX_XLATE_LOCALE_I
22 #define _DtLCX_XLATE_LOCALE_I
23
24 #include "XlationSvc.h"     /* FIX: move to <> */
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 #if DOC
31 /*========================================================*/
32 $CONSTBEG$: _DtLCX_OPER_xxx
33 $1LINER$:  Constants for specifying operations
34 $SUMMARY$:
35 The _DtLCX_OPER_xxx are constants that produce strings
36 used in the translation specifications when specifying
37 the operation of a translation.
38
39 The operation string name must be identical both in the 
40 source code and in the translation table.
41 These constants should be used whenever referencing
42 operations as part of a translation.
43 /*================================================$SKIP$==*/
44 #endif
45 /* $DEF$, Operation constants */
46 #define DtLCX_OPER_STD                  "standard"
47 #define DtLCX_OPER_ICONV1               "iconv1"
48 #define DtLCX_OPER_ICONV3               "iconv3"
49 #define DtLCX_OPER_NLLANGINFO_CODESET   "nl_langinfo(CODESET)"
50 #define DtLCX_OPER_SETLOCALE            "setlocale"
51 #define DtLCX_OPER_MULTIBYTE            "multibyte"
52 #define DtLCX_OPER_CCDF                 "ccdf"
53 #define DtLCX_OPER_XLFD                 "xlfd"
54 #define DtLCX_OPER_MIME                 "mime"
55 #define DtLCX_OPER_INTERCHANGE_CODESET  "interchangeCodeset"
56 /*$END$*/
57
58 /* Functions */
59 #define _DtLcxCloseDb(io_db)    _DtXlateCloseDb(io_db)
60 int  _DtLcxOpenAllDbs(
61        _DtXlateDb *    ret_db);
62
63 int _DtLcxXlateOpToStd(
64        const _DtXlateDb   xlationDb,
65        const char *       platform,
66        const int          version,
67        const char *       operation,
68        const char *       opValue,
69        char * *           ret_stdLocale,
70        char * *           ret_stdLangTerr,
71        char * *           ret_stdCodeset,
72        char * *           ret_stdModifier);
73
74 int _DtLcxXlateStdToOp(
75        const _DtXlateDb   xlationDb,
76        const char *       platform,
77        const int          version,
78        const char *       operation,
79        const char *       stdLocale,
80        const char *       stdLangTerr,
81        const char *       stdCodeset,
82        const char *       stdModifier,
83        char * *           ret_opValue);
84
85 #ifdef __cplusplus
86 }
87 #endif
88
89 #endif /*_DtLCX_XLATE_LOCALE_I*/
90 /********* do not put anything below this line ********/