LocaleXlate.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 libraries 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. #ifndef _DtLCX_XLATE_LOCALE_I
  42. #define _DtLCX_XLATE_LOCALE_I
  43. #include "XlationSvc.h" /* FIX: move to <> */
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. #if DOC
  48. /*========================================================*/
  49. $CONSTBEG$: _DtLCX_OPER_xxx
  50. $1LINER$: Constants for specifying operations
  51. $SUMMARY$:
  52. The _DtLCX_OPER_xxx are constants that produce strings
  53. used in the translation specifications when specifying
  54. the operation of a translation.
  55. The operation string name must be identical both in the
  56. source code and in the translation table.
  57. These constants should be used whenever referencing
  58. operations as part of a translation.
  59. /*================================================$SKIP$==*/
  60. #endif
  61. /* $DEF$, Operation constants */
  62. #define DtLCX_OPER_STD "standard"
  63. #define DtLCX_OPER_ICONV1 "iconv1"
  64. #define DtLCX_OPER_ICONV3 "iconv3"
  65. #define DtLCX_OPER_NLLANGINFO_CODESET "nl_langinfo(CODESET)"
  66. #define DtLCX_OPER_SETLOCALE "setlocale"
  67. #define DtLCX_OPER_MULTIBYTE "multibyte"
  68. #define DtLCX_OPER_CCDF "ccdf"
  69. #define DtLCX_OPER_XLFD "xlfd"
  70. #define DtLCX_OPER_MIME "mime"
  71. #define DtLCX_OPER_INTERCHANGE_CODESET "interchangeCodeset"
  72. /*$END$*/
  73. /* Functions */
  74. #define _DtLcxCloseDb(io_db) _DtXlateCloseDb(io_db)
  75. int _DtLcxOpenAllDbs(
  76. _DtXlateDb * ret_db);
  77. int _DtLcxXlateOpToStd(
  78. const _DtXlateDb xlationDb,
  79. const char * platform,
  80. const int version,
  81. const char * operation,
  82. const char * opValue,
  83. char * * ret_stdLocale,
  84. char * * ret_stdLangTerr,
  85. char * * ret_stdCodeset,
  86. char * * ret_stdModifier);
  87. int _DtLcxXlateStdToOp(
  88. const _DtXlateDb xlationDb,
  89. const char * platform,
  90. const int version,
  91. const char * operation,
  92. const char * stdLocale,
  93. const char * stdLangTerr,
  94. const char * stdCodeset,
  95. const char * stdModifier,
  96. char * * ret_opValue);
  97. #ifdef __cplusplus
  98. }
  99. #endif
  100. #endif /*_DtLCX_XLATE_LOCALE_I*/
  101. /********* do not put anything below this line ********/