mbfl_language.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * "streamable kanji code filter and converter"
  3. * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
  4. *
  5. * LICENSE NOTICES
  6. *
  7. * This file is part of "streamable kanji code filter and converter",
  8. * which is distributed under the terms of GNU Lesser General Public
  9. * License (version 2) as published by the Free Software Foundation.
  10. *
  11. * This software is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with "streamable kanji code filter and converter";
  18. * if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  19. * Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. * The author of this file:
  22. *
  23. */
  24. /*
  25. * The source code included in this files was separated from mbfilter.h
  26. * by Moriyoshi Koizumi <moriyoshi@php.net> on 20 Dec 2002. The file
  27. * mbfilter.h is included in this package .
  28. *
  29. */
  30. #ifndef MBFL_LANGUAGE_H
  31. #define MBFL_LANGUAGE_H
  32. #include "mbfl_defs.h"
  33. #include "mbfl_encoding.h"
  34. enum mbfl_no_language {
  35. mbfl_no_language_invalid = -1,
  36. mbfl_no_language_neutral,
  37. mbfl_no_language_uni,
  38. mbfl_no_language_min,
  39. mbfl_no_language_catalan, /* ca */
  40. mbfl_no_language_danish, /* da */
  41. mbfl_no_language_german, /* de */
  42. mbfl_no_language_english, /* en */
  43. mbfl_no_language_estonian, /* et */
  44. mbfl_no_language_greek, /* el */
  45. mbfl_no_language_spanish, /* es */
  46. mbfl_no_language_french, /* fr */
  47. mbfl_no_language_italian, /* it */
  48. mbfl_no_language_japanese, /* ja */
  49. mbfl_no_language_korean, /* ko */
  50. mbfl_no_language_dutch, /* nl */
  51. mbfl_no_language_polish, /* pl */
  52. mbfl_no_language_portuguese, /* pt */
  53. mbfl_no_language_swedish, /* sv */
  54. mbfl_no_language_simplified_chinese, /* zh-cn */
  55. mbfl_no_language_traditional_chinese, /* zh-tw */
  56. mbfl_no_language_russian, /* ru */
  57. mbfl_no_language_ukrainian, /* ua */
  58. mbfl_no_language_armenian, /* hy */
  59. mbfl_no_language_turkish, /* tr */
  60. mbfl_no_language_max
  61. };
  62. typedef enum mbfl_no_language mbfl_language_id;
  63. /*
  64. * language
  65. */
  66. typedef struct _mbfl_language {
  67. enum mbfl_no_language no_language;
  68. const char *name;
  69. const char *short_name;
  70. const char *(*aliases)[];
  71. enum mbfl_no_encoding mail_charset;
  72. enum mbfl_no_encoding mail_header_encoding;
  73. enum mbfl_no_encoding mail_body_encoding;
  74. } mbfl_language;
  75. MBFLAPI extern const mbfl_language * mbfl_name2language(const char *name);
  76. MBFLAPI extern const mbfl_language * mbfl_no2language(enum mbfl_no_language no_language);
  77. MBFLAPI extern enum mbfl_no_language mbfl_name2no_language(const char *name);
  78. MBFLAPI extern const char * mbfl_no_language2name(enum mbfl_no_language no_language);
  79. #endif /* MBFL_LANGUAGE_H */