Home | History | Annotate | Download | only in encodings

Lines Matching refs:Encoding

6 // Encoding, where Language is the linguistic convention, and Encoding
7 // contains information on both language encoding and character set.
9 // The language and encoding are both based on Teragram's conventions,
14 // Language/Encoding enums, language/encoding string names (typically
15 // the output from Language Encoding identifier), and language codes
18 // NOTE: Both Language and Encoding enums should always start from
35 // array. The first encoding is the default encoding of the language.
38 // Note: The output encoding array does not include ASCII_7BIT, UTF8
43 const Encoding* EncodingsForLanguage(Language lang);
49 // Given the language, returns the default encoding for the language
50 // via the argument encoding.
53 // false is returned, and encoding is set to UNKNOWN_ENCODING.
56 Encoding *encoding);
61 // Given the encoding, returns a pointer to an array of languages this
62 // encoding supports. Typically, the langs array has at least one
65 // language for that encoding. NULL is returned if the input is
73 // because English (Latin) characters are included in each encoding.
75 const Language* LanguagesForEncoding(Encoding enc);
80 // Given the encoding, returns the default language for that encoding
88 // cases that multiple langauges have the same encoding, for which the
91 bool DefaultLanguageForEncoding(Encoding enc, Language* language);
98 // encoding are compatible. For example, FRENCH and LATIN1 are
103 // (e.g. we can detect a page's encoding as latin1 from metatag info, but
105 // language encoding in Latin1 )
106 // If language is known, but encoding is unknown, return false.
112 bool IsLangEncCompatible(Language lang, Encoding enc);
119 // input encoding. For example, the encoding GB has a dominant
123 // included in each encoding.
125 // If there is no dominant langauge for the encoding, such as Latin1,
128 Language DominantLanguageFromEncoding(Encoding enc);
132 // Given the Language and Encoding, return language code with dialects
133 // (>= 2 letters). Encoding is necessary to disambiguate between
140 const char* LanguageCode(Language lang, Encoding enc);
146 // There are some encoding listed here just because they are commonly
163 // Thus for these type of encoding, before we have the UI support for
164 // their language and have a pretty comprehensive language/encoding
168 // This function checks whether the input encoding is one with
170 bool IsEncodingWithSupportedLanguage(Encoding enc);
207 // 3166-1993 (E). It sets *enc to the encoding that is
210 // This function returns true if we have encoding information for
214 bool EncFromCountryCode(const char* country_code, Encoding* enc);