1 /* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
2 /************************************<+>*************************************
3 ****************************************************************************
9 ** Description: locale translation services
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.
17 ****************************************************************************
18 ************************************<+>*************************************/
21 #ifndef _DtLCX_XLATE_LOCALE_I
22 #define _DtLCX_XLATE_LOCALE_I
24 #include "XlationSvc.h" /* FIX: move to <> */
31 /*========================================================*/
32 $CONSTBEG$: _DtLCX_OPER_xxx
33 $1LINER$: Constants for specifying operations
35 The _DtLCX_OPER_xxx are constants that produce strings
36 used in the translation specifications when specifying
37 the operation of a translation.
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$==*/
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"
59 #define _DtLcxCloseDb(io_db) _DtXlateCloseDb(io_db)
63 int _DtLcxXlateOpToStd(
64 const _DtXlateDb xlationDb,
65 const char * platform,
67 const char * operation,
69 char * * ret_stdLocale,
70 char * * ret_stdLangTerr,
71 char * * ret_stdCodeset,
72 char * * ret_stdModifier);
74 int _DtLcxXlateStdToOp(
75 const _DtXlateDb xlationDb,
76 const char * platform,
78 const char * operation,
79 const char * stdLocale,
80 const char * stdLangTerr,
81 const char * stdCodeset,
82 const char * stdModifier,
83 char * * ret_opValue);
89 #endif /*_DtLCX_XLATE_LOCALE_I*/
90 /********* do not put anything below this line ********/