Home | History | Annotate | Download | only in compact_lang_det
      1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef ENCODINGS_COMPACT_LANG_DET_LETTERSCRIPT_ENUM_H__
      6 #define ENCODINGS_COMPACT_LANG_DET_LETTERSCRIPT_ENUM_H__
      7 
      8 enum UnicodeLScript {
      9   ULScript_Common,
     10   ULScript_Latin,
     11   ULScript_Greek,
     12   ULScript_Cyrillic,
     13   ULScript_Armenian,
     14   ULScript_Hebrew,
     15   ULScript_Arabic,
     16   ULScript_Syriac,
     17   ULScript_Thaana,
     18   ULScript_Devanagari,
     19   ULScript_Bengali,
     20   ULScript_Gurmukhi,
     21   ULScript_Gujarati,
     22   ULScript_Oriya,
     23   ULScript_Tamil,
     24   ULScript_Telugu,
     25   ULScript_Kannada,
     26   ULScript_Malayalam,
     27   ULScript_Sinhala,
     28   ULScript_Thai,
     29   ULScript_Lao,
     30   ULScript_Tibetan,
     31   ULScript_Myanmar,
     32   ULScript_Georgian,
     33   ULScript_HanCJK,
     34   ULScript_Ethiopic,
     35   ULScript_Cherokee,
     36   ULScript_Canadian_Aboriginal,
     37   ULScript_Ogham,
     38   ULScript_Runic,
     39   ULScript_Khmer,
     40   ULScript_Mongolian,
     41   ULScript_Yi,
     42   ULScript_Old_Italic,
     43   ULScript_Gothic,
     44   ULScript_Deseret,
     45   ULScript_Inherited,
     46   ULScript_Tagalog,
     47   ULScript_Hanunoo,
     48   ULScript_Buhid,
     49   ULScript_Tagbanwa,
     50   ULScript_Limbu,
     51   ULScript_Tai_Le,
     52   ULScript_Linear_B,
     53   ULScript_Ugaritic,
     54   ULScript_Shavian,
     55   ULScript_Osmanya,
     56   ULScript_Cypriot,
     57   ULScript_Buginese,
     58   ULScript_Coptic,
     59   ULScript_New_Tai_Lue,
     60   ULScript_Glagolitic,
     61   ULScript_Tifinagh,
     62   ULScript_Syloti_Nagri,
     63   ULScript_Old_Persian,
     64   ULScript_Kharoshthi,
     65   ULScript_Balinese,
     66   ULScript_Cuneiform,
     67   ULScript_Phoenician,
     68   ULScript_Phags_Pa,
     69   ULScript_Nko,
     70 
     71   // Unicode 5.1
     72   ULScript_Sundanese,
     73   ULScript_Lepcha,
     74   ULScript_Ol_Chiki,
     75   ULScript_Vai,
     76   ULScript_Saurashtra,
     77   ULScript_Kayah_Li,
     78   ULScript_Rejang,
     79   ULScript_Lycian,
     80   ULScript_Carian,
     81   ULScript_Lydian,
     82   ULScript_Cham,
     83   ULScript_NUM_SCRIPTS
     84 };
     85 
     86 
     87 static const UnicodeLScript UNKNOWN_LSCRIPT = ULScript_Common;
     88 
     89 
     90 // Return the name corresponding to the script ls, e.g. "Latin".
     91 // It is a fatal error if ls is not a valid UnicodeLScript.
     92 const char* UnicodeLScriptName(const UnicodeLScript ls);
     93 
     94 
     95 // Return the 4-letter code corresponding to the script ls, e.g. "Latn".
     96 // It is a fatal error if ls is not a valid UnicodeLScript.
     97 const char* UnicodeLScriptCode(const UnicodeLScript ls);
     98 
     99 #endif  // ENCODINGS_COMPACT_LANG_DET_LETTERSCRIPT_ENUM_H__
    100