Home
last modified time | relevance | path

Searched refs:Charset (Results 1 - 25 of 33) sorted by relevance

12

/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DCharsetProviderICU.java13 import java.nio.charset.Charset;
32 * Not a Set or Map, so that we can add different Charset objects with the same name(),
35 private static List<Charset> icuCharsets = Collections.<Charset>emptyList();
45 * Constructs a Charset for the given charset name.
48 * @return Charset object for the given charset name, null if unsupported
52 public final Charset charsetForName(String charsetName){ in charsetForName()
89 public final Charset charsetForName(String charsetName, String classPath) { in charsetForName()
102 public Charset charsetForName(String charsetName, String classPath, ClassLoader loader) { in charsetForName()
158 private static final Charset getCharse in getICUCanonicalName()
[all...]
H A DCharsetICU.java14 import java.nio.charset.Charset;
22 * <p>A subclass of java.nio.Charset for providing implementation of ICU's charset converters.
24 * from UTF-16. You can open a converter with {@link Charset#forName} and {@link #forNameICU}. With that
32 * {@link Charset} documents that,
33 * for charsets listed in the IANA Charset Registry,
43 * <p>This is in conflict with the {@link Charset#name()} requirements.
50 * <p>Same-name charsets are accessible via {@link Charset#forName} or {@link #forNameICU}
53 * <p>{@link Charset} also documents that
57 * <p>Unfortunately, {@link Charset#equals} is final, and
58 * {@link Charset#availableCharset
[all...]
H A DCharsetSelector.java22 import java.nio.charset.Charset;
34 * Charset Selector
58 Charset testCharset = CharsetICU.forNameICU(encodings[i]); in generateSelectorData()
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
H A DConverterPerformanceTest.java18 import java.nio.charset.Charset;
44 CharsetEncoder encoder = Charset.forName(encoding).newEncoder(); in setup()
209 Charset myCharset = Charset.forName(testName); in TestCharsetDecoder()
238 Charset myCharset = Charset.forName(testName); in TestCharsetEncoder()
267 Charset myCharset = new CharsetProviderICU().charsetForName(testName); in TestCharsetDecoderICU()
296 Charset myCharset = new CharsetProviderICU().charsetForName(testName); in TestCharsetEncoderICU()
/third_party/python/Lib/email/
H A Dheader.py21 Charset = _charset.Charset variable
31 USASCII = Charset('us-ascii')
32 UTF8 = Charset('utf-8')
67 parts of the header. Charset is None for non-encoded parts of the header,
175 if charset is not None and not isinstance(charset, Charset):
176 charset = Charset(charset)
215 elif not isinstance(charset, Charset):
216 charset = Charset(charset)
272 Optional charset, if given, should be a Charset instanc
[all...]
H A Dmessage.py20 Charset = _charset.Charset variable
50 # are (charset, language, value). charset is a string, not a Charset
340 if not isinstance(charset, Charset):
341 charset = Charset(charset)
353 charset can be a Charset instance, a string naming a character set, or
354 None. If it is a string it will be converted to a Charset instance.
368 if not isinstance(charset, Charset):
369 charset = Charset(charset)
398 """Return the Charset instanc
[all...]
/third_party/python/Lib/test/test_email/
H A Dtest_asian_codecs.py8 from email.charset import Charset namespace
26 j = Charset(jcode)
27 g = Charset(gcode)
H A Dtest_email.py21 from email.charset import Charset namespace
67 charset = Charset('iso-8859-1')
98 charset = Charset('iso-8859-1')
104 charset = Charset('utf-8')
113 charset = Charset('utf-8')
122 charset = Charset('utf-8')
909 g = Charset("iso-8859-1")
910 cz = Charset("iso-8859-2")
911 utf8 = Charset("utf-8")
1743 # Also accept a Charset instanc
[all...]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
H A DInputFile.java19 import java.nio.charset.Charset;
37 private Charset charset;
111 charset = Charset.forName(encoding); in setEncoding()
/third_party/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/
H A DBuildMetadataCppFromXml.java28 import java.nio.charset.Charset;
219 private static final Charset UTF_8 = Charset.forName("UTF-8");
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-cff1-table.hh313 /* Charset */
440 struct Charset struct
442 /* serialize a fullset Charset */
443 bool serialize (hb_serialize_context_t *c, const Charset &src, unsigned int num_glyphs) in serialize()
447 Charset *dest = c->allocate_size<Charset> (size); in serialize()
453 /* serialize a subset Charset */
460 Charset *dest = c->extend_min (this); in serialize()
1036 charset = &Null (Charset); in init()
1039 charset = &StructAtOffsetOrNull<Charset> (cf in init()
[all...]
/third_party/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
H A DTestCharset.java16 import java.nio.charset.Charset;
50 Charset cs1 = icu.charsetForName("UTF-16BE"); in TestUTF16Converter()
54 Charset cs2 = icu.charsetForName("UTF-16LE"); in TestUTF16Converter()
143 Charset cs1 = icu.charsetForName("UTF-32BE"); in TestUTF32Converter()
147 Charset cs2 = icu.charsetForName("UTF-32LE"); in TestUTF32Converter()
232 Charset icuChar = icu.charsetForName(converter); in runTestASCIIBasedConverter()
486 Charset icuChar = icu.charsetForName(converter); in TestUTF8Converter()
632 Charset icuChar = icu.charsetForName(converter); in TestHZ()
733 Charset icuChar = icu.charsetForName(converter); in TestUTF8Surrogates()
817 Charset icuCha in TestSurrogateBehavior()
[all...]
H A DTestSelection.java24 import java.nio.charset.Charset;
104 Charset testCharset = CharsetICU.forNameICU(enc); in verifyResultUTF16()
120 errln("failure in charset selector! Charset " + enc in verifyResultUTF16()
H A DTestConversion.java14 import java.nio.charset.Charset;
233 Charset charset = null; in FromUnicodeCase()
237 ? (Charset) provider.charsetForName(cc.charset.substring(1), in FromUnicodeCase()
239 : (Charset) provider.charsetForName(cc.charset); in FromUnicodeCase()
256 logln("Skipping test:(" + cc.charset.substring(1) + ") due to ICU Charset not supported at this time"); in FromUnicodeCase()
523 Charset charset = null; in ToUnicodeCase()
528 ? (Charset) provider.charsetForName(cc.charset.substring(1), in ToUnicodeCase()
530 : (Charset) provider.charsetForName(cc.charset); in ToUnicodeCase()
542 logln("Skipping test:(" + cc.charset.substring(1) + ") due to ICU Charset not supported at this time"); in ToUnicodeCase()
/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
H A DBuildMetadataCppFromXmlTest.java33 import java.nio.charset.Charset;
143 private static final Charset UTF_8 = Charset.forName("UTF-8");
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DInternal.java36 import java.nio.charset.Charset;
58 static final Charset UTF_8 = Charset.forName("UTF-8");
59 static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
H A DByteString.java47 import java.nio.charset.Charset;
450 public static ByteString copyFrom(String text, Charset charset) { in copyFrom()
784 return toString(Charset.forName(charsetName)); in toString()
799 public final String toString(Charset charset) { in toString()
809 protected abstract String toStringInternal(Charset charset); in toStringInternal()
1396 protected final String toStringInternal(Charset charset) { in toStringInternal()
H A DNioByteString.java43 import java.nio.charset.Charset;
160 protected String toStringInternal(Charset charset) { in toStringInternal()
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
H A DMetadataFilterCoverageTest.java23 import java.nio.charset.Charset;
38 Charset.forName("UTF-8")));
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/
H A DGenerateTimeZonesMapData.java31 import java.nio.charset.Charset;
68 new BufferedInputStream(input), Charset.forName("UTF-8"))); in parseTextFile()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/testutils/
H A DTestUtils.java33 import java.nio.charset.Charset;
163 Charset cs = CharsetICU.forNameICU(charsetName); in getEncoder()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
H A DXCldrStub.java10 import java.nio.charset.Charset;
342 public static final Charset UTF8 = Charset.forName("utf-8");
348 public static BufferedReader openFile(Class<?> class1, String file, Charset charset) { in openFile()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
H A DXCldrStub.java11 import java.nio.charset.Charset;
380 public static final Charset UTF8 = Charset.forName("utf-8");
386 public static BufferedReader openFile(Class<?> class1, String file, Charset charset) { in openFile()
/third_party/python/Lib/email/mime/
H A Dtext.py9 from email.charset import Charset namespace
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
H A DDetectingViewer.java27 import java.nio.charset.Charset;
312 Charset utf32 = CharsetICU.forNameICU(encoding); in show()

Completed in 24 milliseconds

12