Home
last modified time | relevance | path

Searched full:charset (Results 1 – 25 of 11770) sorted by relevance

12345678910>>...471

/external/apache-commons-io/src/main/java/org/apache/commons/io/
DCharsets.java19 import java.nio.charset.Charset;
20 import java.nio.charset.StandardCharsets;
21 import java.nio.charset.UnsupportedCharsetException;
29 …va documentation <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">
53 …* @see <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard …
59 …// This class should only contain Charset instances for required encodings. This guarantees that i…
63 private static final SortedMap<String, Charset> STANDARD_CHARSET_MAP;
66 …final SortedMap<String, Charset> standardCharsetMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
82 …* @see <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard …
83 * @deprecated Use Java 7's {@link java.nio.charset.StandardCharsets}
[all …]
/external/flac/src/share/utf8/
Dcharset_test.c26 #include "charset.h"
28 void test_any(struct charset *charset) in test_any() argument
33 assert(charset); in test_any()
37 assert(charset_mbtowc(charset, 0, 0, 0) == 0); in test_any()
38 assert(charset_mbtowc(charset, 0, 0, 1) == 0); in test_any()
39 assert(charset_mbtowc(charset, 0, (char *)(-1), 0) == 0); in test_any()
41 assert(charset_mbtowc(charset, 0, "a", 0) == 0); in test_any()
42 assert(charset_mbtowc(charset, 0, "", 1) == 0); in test_any()
43 assert(charset_mbtowc(charset, 0, "b", 1) == 1); in test_any()
44 assert(charset_mbtowc(charset, 0, "", 2) == 0); in test_any()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DCharsets.java20 import java.nio.charset.Charset;
21 import java.nio.charset.UnsupportedCharsetException;
26 * Provides utilities for {@link Charset}.
29 * Package private since Apache Commons IO already provides a Charsets because {@link Charset} is in
30 * {@code java.nio.charset}.
38 * Returns the given {@code charset} or the default Charset if {@code charset} is null.
40 * @param charset a Charset or null.
41 * @return the given {@code charset} or the default Charset if {@code charset} is null.
43 static Charset toCharset(final Charset charset) { in toCharset() argument
44 return charset == null ? Charset.defaultCharset() : charset; in toCharset()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DCharSetTest.java33 * Unit tests {@link org.apache.commons.lang3.CharSet}.
39 assertTrue(Modifier.isPublic(CharSet.class.getModifiers())); in testClass()
40 assertFalse(Modifier.isFinal(CharSet.class.getModifiers())); in testClass()
45 assertSame(CharSet.EMPTY, CharSet.getInstance( (String) null)); in testGetInstance()
46 assertSame(CharSet.EMPTY, CharSet.getInstance("")); in testGetInstance()
47 assertSame(CharSet.ASCII_ALPHA, CharSet.getInstance("a-zA-Z")); in testGetInstance()
48 assertSame(CharSet.ASCII_ALPHA, CharSet.getInstance("A-Za-z")); in testGetInstance()
49 assertSame(CharSet.ASCII_ALPHA_LOWER, CharSet.getInstance("a-z")); in testGetInstance()
50 assertSame(CharSet.ASCII_ALPHA_UPPER, CharSet.getInstance("A-Z")); in testGetInstance()
51 assertSame(CharSet.ASCII_NUMERIC, CharSet.getInstance("0-9")); in testGetInstance()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DCharsets.java21 import java.nio.charset.Charset;
22 import java.nio.charset.StandardCharsets;
27 …entation <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
54 …* @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard …
61 …// This class should only contain Charset instances for required encodings. This guarantees that i…
66 * Returns the given Charset or the default Charset if the given Charset is null.
68 * @param charset
69 * A charset or null.
70 * @return the given Charset or the default Charset if the given Charset is null
72 public static Charset toCharset(final Charset charset) { in toCharset() argument
[all …]
/external/python/cpython2/Lib/email/
Dheader.py20 from email.charset import Charset
30 USASCII = Charset('us-ascii')
31 UTF8 = Charset('utf-8')
33 # Match encoded-word strings in the form =?charset?q?Hello_World?=
36 (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
62 """Decode a message header value without converting charset.
64 Returns a list of (decoded_string, charset) pairs containing each of the
65 decoded parts of the header. Charset is None for non-encoded parts of the
93 charset, encoding = [s.lower() for s in parts[0:2]]
112 if decoded and decoded[-1][1] == charset:
[all …]
/external/abseil-cpp/absl/strings/
Dcharset.h16 // File: charset.h
19 // This file contains absl::CharSet, a fast, bit-vector set of 8-bit unsigned
24 // constexpr absl::CharSet kJustX = absl::CharSet::Char('x');
25 // constexpr absl::CharSet kMySymbols = absl::CharSet("$@!");
26 // constexpr absl::CharSet kLetters = absl::CharSet::Range('a', 'z');
31 // constexpr absl::CharSet kLettersAndNumbers =
32 // absl::CharSet::Range('a', 'z') | absl::CharSet::Range('0', '9');
37 // constexpr absl::CharSet kLettersAndWhitespace =
38 // absl::CharSet::AsciiAlphabet() | absl::CharSet::AsciiWhitespace();
42 // absl::CharSet hex_letters("abcdef");
[all …]
Dcharset_test.cc15 #include "absl/strings/charset.h"
29 constexpr absl::CharSet everything_map = ~absl::CharSet();
30 constexpr absl::CharSet nothing_map = absl::CharSet();
33 const absl::CharSet also_nothing_map(""); in TEST()
44 const absl::CharSet symbols(absl::string_view("&@#@^!@?", 5)); in TEST()
55 const absl::CharSet lets(absl::string_view("^abcde", 3)); in TEST()
56 const absl::CharSet lets2(absl::string_view("fghij\0klmnop", 10)); in TEST()
57 const absl::CharSet lets3("fghij\0klmnop"); in TEST()
70 std::string Members(const absl::CharSet& m) { in Members()
89 constexpr absl::CharSet kEmpty = absl::CharSet(); in TEST()
[all …]
/external/cronet/third_party/abseil-cpp/absl/strings/
Dcharset.h16 // File: charset.h
19 // This file contains absl::CharSet, a fast, bit-vector set of 8-bit unsigned
24 // constexpr absl::CharSet kJustX = absl::CharSet::Char('x');
25 // constexpr absl::CharSet kMySymbols = absl::CharSet("$@!");
26 // constexpr absl::CharSet kLetters = absl::CharSet::Range('a', 'z');
31 // constexpr absl::CharSet kLettersAndNumbers =
32 // absl::CharSet::Range('a', 'z') | absl::CharSet::Range('0', '9');
37 // constexpr absl::CharSet kLettersAndWhitespace =
38 // absl::CharSet::AsciiAlphabet() | absl::CharSet::AsciiWhitespace();
42 // absl::CharSet hex_letters("abcdef");
[all …]
Dcharset_test.cc15 #include "absl/strings/charset.h"
29 constexpr absl::CharSet everything_map = ~absl::CharSet();
30 constexpr absl::CharSet nothing_map = absl::CharSet();
33 const absl::CharSet also_nothing_map(""); in TEST()
44 const absl::CharSet symbols(absl::string_view("&@#@^!@?", 5)); in TEST()
55 const absl::CharSet lets(absl::string_view("^abcde", 3)); in TEST()
56 const absl::CharSet lets2(absl::string_view("fghij\0klmnop", 10)); in TEST()
57 const absl::CharSet lets3("fghij\0klmnop"); in TEST()
70 std::string Members(const absl::CharSet& m) { in Members()
89 constexpr absl::CharSet kEmpty = absl::CharSet(); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dcharset.h16 // File: charset.h
19 // This file contains absl::CharSet, a fast, bit-vector set of 8-bit unsigned
24 // constexpr absl::CharSet kJustX = absl::CharSet::Char('x');
25 // constexpr absl::CharSet kMySymbols = absl::CharSet("$@!");
26 // constexpr absl::CharSet kLetters = absl::CharSet::Range('a', 'z');
31 // constexpr absl::CharSet kLettersAndNumbers =
32 // absl::CharSet::Range('a', 'z') | absl::CharSet::Range('0', '9');
37 // constexpr absl::CharSet kLettersAndWhitespace =
38 // absl::CharSet::AsciiAlphabet() | absl::CharSet::AsciiWhitespace();
42 // absl::CharSet hex_letters("abcdef");
[all …]
Dcharset_test.cc15 #include "absl/strings/charset.h"
29 constexpr absl::CharSet everything_map = ~absl::CharSet();
30 constexpr absl::CharSet nothing_map = absl::CharSet();
33 const absl::CharSet also_nothing_map(""); in TEST()
44 const absl::CharSet symbols(absl::string_view("&@#@^!@?", 5)); in TEST()
55 const absl::CharSet lets(absl::string_view("^abcde", 3)); in TEST()
56 const absl::CharSet lets2(absl::string_view("fghij\0klmnop", 10)); in TEST()
57 const absl::CharSet lets3("fghij\0klmnop"); in TEST()
70 std::string Members(const absl::CharSet& m) { in Members()
89 constexpr absl::CharSet kEmpty = absl::CharSet(); in TEST()
[all …]
/external/icu/icu4j/main/charset/src/main/java/com/ibm/icu/charset/
DCharsetICU.java10 package com.ibm.icu.charset;
14 import java.nio.charset.Charset;
15 import java.nio.charset.IllegalCharsetNameException;
16 import java.nio.charset.UnsupportedCharsetException;
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…
31 * <p>Note that {@link #name()} cannot always return a unique charset name.
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.
[all …]
/external/python/cpython3/Lib/email/
Dheader.py20 from email import charset as _charset
21 Charset = _charset.Charset variable
31 USASCII = Charset('us-ascii')
32 UTF8 = Charset('utf-8')
34 # Match encoded-word strings in the form =?charset?q?Hello_World?=
37 (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
62 """Decode a message header value without converting charset.
64 Returns a list of (string, charset) pairs containing each of the decoded
65 parts of the header. Charset is None for non-encoded parts of the header,
77 return [(_charset._encode(string, str(charset)), str(charset))
[all …]
/external/jsoup/src/main/java/org/jsoup/nodes/
DDocument.java16 import java.nio.charset.Charset;
17 import java.nio.charset.CharsetEncoder;
248 * Sets the charset used in this document. This method is equivalent
249 * to {@link OutputSettings#charset(java.nio.charset.Charset)
250 * OutputSettings.charset(Charset)} but in addition it updates the
251 * charset / encoding element within the document.
254 * {@link #updateMetaCharsetElement(boolean) meta charset update}.</p>
256 * <p>If there's no element with charset / encoding information yet it will
257 * be created. Obsolete charset / encoding definitions are removed!</p>
262 * <li><b>Html:</b> <i>&lt;meta charset="CHARSET"&gt;</i></li>
[all …]
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java26 …* href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</…
29 …* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard ch…
36 …* Encodes the given string into a sequence of bytes using the ISO-8859-1 charset, storing the resu…
43 …* Thrown when the charset is missing, which should be never according the the Java spe…
44 …* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard ch…
52 …* Encodes the given string into a sequence of bytes using the US-ASCII charset, storing the result…
59 …* Thrown when the charset is missing, which should be never according the the Java spe…
60 …* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard ch…
68 …* Encodes the given string into a sequence of bytes using the UTF-16 charset, storing the result i…
75 …* Thrown when the charset is missing, which should be never according the the Java spe…
[all …]
/external/libcups/test/
D4.2-cups-printer-ops.test20 ATTR charset attributes-charset utf-8
30 EXPECT attributes-charset
43 ATTR charset attributes-charset utf-8
51 EXPECT attributes-charset
64 ATTR charset attributes-charset utf-8
72 EXPECT attributes-charset
85 ATTR charset attributes-charset utf-8
93 EXPECT attributes-charset
106 ATTR charset attributes-charset utf-8
119 EXPECT attributes-charset
[all …]
D4.3-job-ops.test20 ATTR charset attributes-charset utf-8
41 ATTR charset attributes-charset utf-8
52 EXPECT attributes-charset
66 ATTR charset attributes-charset utf-8
75 EXPECT attributes-charset
91 ATTR charset attributes-charset utf-8
105 EXPECT attributes-charset
120 ATTR charset attributes-charset utf-8
129 EXPECT attributes-charset
145 ATTR charset attributes-charset utf-8
[all …]
D4.1-requests.test4 # attributes-charset
25 EXPECT attributes-charset
30 NAME "Charset Attribute"
37 ATTR charset attributes-charset utf-8
43 EXPECT attributes-charset
61 EXPECT attributes-charset
66 NAME "Language + Charset Attributes"
74 ATTR charset attributes-charset utf-8
80 EXPECT attributes-charset
85 NAME "Charset + Language Attributes"
[all …]
/external/cronet/third_party/icu/source/i18n/unicode/
Ducsdet.h36 * \brief C API: Charset Detection API
39 * charset or encoding of character data in an unknown text format.
43 * process will attempt to identify the charset that best matches the characteristics
47 * For best accuracy in charset detection, the input data should be primarily
52 * An alternative to the ICU Charset Detector is the
60 * Structure representing a charset detector
68 * from a charset detection operation.
74 * Open a charset detector.
78 * @return the newly opened charset detector.
85 * Close a charset detector. All storage and any other resources
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ducsdet.h36 * \brief C API: Charset Detection API
39 * charset or encoding of character data in an unknown text format.
43 * process will attempt to identify the charset that best matches the characteristics
47 * For best accuracy in charset detection, the input data should be primarily
52 * An alternative to the ICU Charset Detector is the
60 * Structure representing a charset detector
68 * from a charset detection operation.
74 * Open a charset detector.
78 * @return the newly opened charset detector.
85 * Close a charset detector. All storage and any other resources
[all …]
/external/icu/libandroidicu/include/unicode/
Ducsdet.h36 * \brief C API: Charset Detection API
39 * charset or encoding of character data in an unknown text format.
43 * process will attempt to identify the charset that best matches the characteristics
47 * For best accuracy in charset detection, the input data should be primarily
52 * An alternative to the ICU Charset Detector is the
60 * Structure representing a charset detector
68 * from a charset detection operation.
74 * Open a charset detector.
78 * @return the newly opened charset detector.
85 * Close a charset detector. All storage and any other resources
[all …]
/external/icu/libicu/cts_headers/unicode/
Ducsdet.h36 * \brief C API: Charset Detection API
39 * charset or encoding of character data in an unknown text format.
43 * process will attempt to identify the charset that best matches the characteristics
47 * For best accuracy in charset detection, the input data should be primarily
52 * An alternative to the ICU Charset Detector is the
60 * Structure representing a charset detector
68 * from a charset detection operation.
74 * Open a charset detector.
78 * @return the newly opened charset detector.
85 * Close a charset detector. All storage and any other resources
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DMediaTypeTest.java20 import java.nio.charset.Charset;
21 import java.nio.charset.IllegalCharsetNameException;
22 import java.nio.charset.UnsupportedCharsetException;
38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); in testParse()
41 assertEquals("UTF-8", mediaType.charset().name()); in testParse()
42 assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString()); in testParse()
43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))); in testParse()
45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode()); in testParse()
50 assertMediaType("application/atom+xml; charset=utf-8"); in testValidParse()
55 assertMediaType("text/plain; charset=utf-16"); in testValidParse()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DMediaType.java18 import java.nio.charset.Charset;
37 private final String charset; field in MediaType
39 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() argument
43 this.charset = charset; in MediaType()
56 String charset = null; in parse() local
63 if (name == null || !name.equalsIgnoreCase("charset")) continue; in parse()
67 if (charset != null && !charsetParameter.equalsIgnoreCase(charset)) { in parse()
70 charset = charsetParameter; in parse()
73 return new MediaType(string, type, subtype, charset); in parse()
93 * Returns the charset of this media type, or null if this media type doesn't
[all …]

12345678910>>...471