Home
last modified time | relevance | path

Searched full:chars (Results 1 – 25 of 4281) sorted by relevance

12345678910>>...172

/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/
DXMLChar.java34 * public. Using the character as an index into the <code>CHARS</code>
56 private static final byte[] CHARS = new byte[1 << 16]; field in XMLChar
98 CHARS[9] = 35;
99 CHARS[10] = 19;
100 CHARS[13] = 19;
101 CHARS[32] = 51;
102 CHARS[33] = 49;
103 CHARS[34] = 33;
104 Arrays.fill(CHARS, 35, 38, (byte) 49 ); // Fill 3 of value (byte) 49 in Arrays.fill() argument
105 CHARS[38] = 1;
[all …]
/external/apache-commons-io/src/test/resources/org/apache/commons/io/
Dtest-file-iso8859-1.bin1 A Test Line. Special chars: ������� �������� �������
2 A Test Line. Special chars: ������� �������� ������
3 A Test Line. Special chars: ������� �������� �����
4 A Test Line. Special chars: ������� �������� ����
5 A Test Line. Special chars: ������� �������� ���
6 A Test Line. Special chars: ������� �������� ��
7 A Test Line. Special chars: ������� �������� �
8 A Test Line. Special chars: ������� ��������
9 A Test Line. Special chars: ������� ��������
10 A Test Line. Special chars: ������� �������
[all …]
Dtest-file-utf8-win-linebr.bin1 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²®
2 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²
3 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±
4 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£
5 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥
6 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ
7 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©
8 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
9 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
10 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ
[all …]
Dtest-file-utf8-cr-only.bin1 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²®
2 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²
3 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±
4 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£
5 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥
6 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ
7 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©
8 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
9 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
10 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ
[all …]
Dtest-file-utf8.bin1 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²®
2 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±²
3 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£±
4 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥£
5 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ¥
6 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©µ
7 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ ©
8 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
9 A Test Line. Special chars: ÄäÜüÖöß ÃáéíïçñÂ
10 A Test Line. Special chars: ÄäÜüÖöß Ãáéíïçñ
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
DDistinguishedNameParser.java37 private char[] chars; field in DistinguishedNameParser
49 // skip preceding space chars, they can present after in nextAT()
51 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
60 // attribute type chars in nextAT()
62 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
73 // skip trailing space chars between attribute type and '=' in nextAT()
75 if (chars[pos] == ' ') { in nextAT()
76 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
79 if (chars[pos] != '=' || pos == length) { in nextAT()
86 // skip space chars between '=' and attribute value in nextAT()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/tls/
DDistinguishedNameParser.java38 private char[] chars; field in DistinguishedNameParser
50 // skip preceding space chars, they can present after in nextAT()
52 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
61 // attribute type chars in nextAT()
63 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
74 // skip trailing space chars between attribute type and '=' in nextAT()
76 if (chars[pos] == ' ') { in nextAT()
77 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
80 if (chars[pos] != '=' || pos == length) { in nextAT()
87 // skip space chars between '=' and attribute value in nextAT()
[all …]
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DDistinguishedNameParser.java40 private char[] chars; field in DistinguishedNameParser
52 // skip preceding space chars, they can present after in nextAT()
54 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
63 // attribute type chars in nextAT()
65 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
76 // skip trailing space chars between attribute type and '=' in nextAT()
78 if (chars[pos] == ' ') { in nextAT()
79 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
82 if (chars[pos] != '=' || pos == length) { in nextAT()
89 // skip space chars between '=' and attribute value in nextAT()
[all …]
/external/rust/crates/protobuf/2.27.1/src/
Dchars.rs14 pub struct Chars(Bytes); struct
16 impl Chars { implementation
18 pub fn new() -> Chars { in new()
19 Chars(Bytes::new()) in new()
23 pub fn from_bytes(bytes: Bytes) -> Result<Chars, str::Utf8Error> { in from_bytes() argument
26 Ok(Chars(bytes)) in from_bytes()
40 impl<'a> From<&'a str> for Chars { implementation
41 fn from(src: &'a str) -> Chars { in from() argument
42 Chars(Bytes::copy_from_slice(src.as_bytes())) in from()
46 impl From<String> for Chars { implementation
[all …]
/external/rust/crates/protobuf/src/
Dchars.rs13 pub struct Chars(Bytes); struct
15 impl Chars { implementation
17 pub const fn new() -> Chars { in new()
18 Chars(Bytes::new()) in new()
27 pub fn from_bytes(bytes: Bytes) -> Result<Chars, str::Utf8Error> { in from_bytes() argument
30 Ok(Chars(bytes)) in from_bytes()
44 impl<'a> From<&'a str> for Chars { implementation
45 fn from(src: &'a str) -> Chars { in from() argument
46 Chars(Bytes::copy_from_slice(src.as_bytes())) in from()
50 impl From<String> for Chars { implementation
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DCharsTest.java38 * Unit test for {@link Chars}.
57 assertThat(Chars.hashCode(value)).isEqualTo(((Character) value).hashCode()); in testHashCode()
63 assertThat(Chars.checkedCast((long) value)).isEqualTo(value); in testCheckedCast()
73 assertThat(Chars.saturatedCast((long) value)).isEqualTo(value); in testSaturatedCast()
75 assertThat(Chars.saturatedCast(GREATEST + 1L)).isEqualTo(GREATEST); in testSaturatedCast()
76 assertThat(Chars.saturatedCast(LEAST - 1L)).isEqualTo(LEAST); in testSaturatedCast()
77 assertThat(Chars.saturatedCast(Long.MAX_VALUE)).isEqualTo(GREATEST); in testSaturatedCast()
78 assertThat(Chars.saturatedCast(Long.MIN_VALUE)).isEqualTo(LEAST); in testSaturatedCast()
83 Chars.checkedCast(value); in assertCastFails()
98 .that(Chars.compare(x, y)) in testCompare()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DCharsTest.java38 * Unit test for {@link Chars}.
57 assertThat(Chars.hashCode(value)).isEqualTo(((Character) value).hashCode()); in testHashCode()
63 assertThat(Chars.checkedCast((long) value)).isEqualTo(value); in testCheckedCast()
73 assertThat(Chars.saturatedCast((long) value)).isEqualTo(value); in testSaturatedCast()
75 assertThat(Chars.saturatedCast(GREATEST + 1L)).isEqualTo(GREATEST); in testSaturatedCast()
76 assertThat(Chars.saturatedCast(LEAST - 1L)).isEqualTo(LEAST); in testSaturatedCast()
77 assertThat(Chars.saturatedCast(Long.MAX_VALUE)).isEqualTo(GREATEST); in testSaturatedCast()
78 assertThat(Chars.saturatedCast(Long.MIN_VALUE)).isEqualTo(LEAST); in testSaturatedCast()
83 Chars.checkedCast(value); in assertCastFails()
98 .that(Chars.compare(x, y)) in testCompare()
[all …]
/external/libcxx/test/std/experimental/iterator/ostream.joiner/ostream.joiner.ops/
Dostream_joiner.op.assign.pass.cpp73 const char chars[] = "0123456789"; in main() local
76 test('X', chars, chars+10, "0X1X2X3X4X5X6X7X8X9"); in main()
78 …test('X', input_iterator<const char*>(chars), input_iterator<const char*>(chars+10), … in main()
80 …test('X', forward_iterator<const char*>(chars), forward_iterator<const char*>(chars+10), … in main()
82 …test('X', random_access_iterator<const char*>(chars), random_access_iterator<const char*>(chars+10… in main()
85 test("Z", chars, chars+10, "0Z1Z2Z3Z4Z5Z6Z7Z8Z9"); in main()
88 test<char, const char *, wchar_t> ('X', chars, chars+10, L"0X1X2X3X4X5X6X7X8X9"); in main()
90 // test<char, const char *, char16_t>('X', chars, chars+10, u"0X1X2X3X4X5X6X7X8X9"); in main()
92 // test<char, const char *, char32_t>('X', chars, chars+10, U"0X1X2X3X4X5X6X7X8X9"); in main()
95 test(mutating_delimiter(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
[all …]
/external/antlr/runtime/C/src/
Dantlr3string.c55 static pANTLR3_UINT8 set8 (pANTLR3_STRING string, const char * chars);
56 static pANTLR3_UINT8 setUTF16_8 (pANTLR3_STRING string, const char * chars);
57 static pANTLR3_UINT8 setUTF16_UTF16 (pANTLR3_STRING string, const char * chars);
65 static pANTLR3_UINT8 setS (pANTLR3_STRING string, pANTLR3_STRING chars);
243 if (string->chars) in stringFree()
245 ANTLR3_FREE(string->chars); in stringFree()
264 string->chars = NULL; in stringInit8()
301 string->chars = NULL; in stringInitUTF16()
339 string->chars = NULL; in stringInitUTF8()
351 return string->factory->newPtr(string->factory, (pANTLR3_UINT8)(string->chars), string->len); in toUTF8_8()
[all …]
/external/cronet/third_party/libc++/src/test/std/experimental/iterator/ostream.joiner/ostream.joiner.ops/
Dostream_joiner.op.assign.pass.cpp73 const char chars[] = "0123456789"; in main() local
76 test('X', chars, chars+10, "0X1X2X3X4X5X6X7X8X9"); in main()
78 …test('X', cpp17_input_iterator<const char*>(chars), cpp17_input_iterator<const char*>(char… in main()
80 …test('X', forward_iterator<const char*>(chars), forward_iterator<const char*>(chars+10), … in main()
82 …test('X', random_access_iterator<const char*>(chars), random_access_iterator<const char*>(chars+10… in main()
85 test("Z", chars, chars+10, "0Z1Z2Z3Z4Z5Z6Z7Z8Z9"); in main()
89 test<char, const char *, wchar_t> ('X', chars, chars+10, L"0X1X2X3X4X5X6X7X8X9"); in main()
94 // test<char, const char *, char16_t>('X', chars, chars+10, u"0X1X2X3X4X5X6X7X8X9"); in main()
96 // test<char, const char *, char32_t>('X', chars, chars+10, U"0X1X2X3X4X5X6X7X8X9"); in main()
99 test(mutating_delimiter(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
[all …]
/external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/
DFormattedStringBuilder.java47 char[] chars; field in FormattedStringBuilder
63 chars = new char[capacity]; in FormattedStringBuilder()
74 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom()
93 return chars[zero + index]; in charAt()
106 return Character.codePointAt(chars, zero, zero + length);
113 return Character.codePointBefore(chars, zero + length, zero);
117 return Character.codePointAt(chars, zero + index, zero + length);
121 return Character.codePointBefore(chars, zero + index, zero);
146 chars[position] = codeUnit;
154 * @return The number of chars added: 1 if the code point is in the BMP, or 2 otherwise.
[all …]
/external/rust/crates/rayon/src/
Dstr.rs31 fn find_char_midpoint(chars: &str) -> usize { in find_char_midpoint()
32 let mid = chars.len() / 2; in find_char_midpoint()
37 let (left, right) = chars.as_bytes().split_at(mid); in find_char_midpoint()
50 fn split(chars: &str) -> Option<(&str, &str)> { in split()
51 let index = find_char_midpoint(chars); in split()
53 Some(chars.split_at(index)) in split()
74 fn par_chars(&self) -> Chars<'_> { in par_chars()
75 Chars { in par_chars()
76 chars: self.as_parallel_string(), in par_chars()
91 chars: self.as_parallel_string(), in par_char_indices()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedStringBuilder.java52 char[] chars; field in FormattedStringBuilder
68 chars = new char[capacity]; in FormattedStringBuilder()
79 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom()
98 return chars[zero + index]; in charAt()
111 return Character.codePointAt(chars, zero, zero + length);
118 return Character.codePointBefore(chars, zero + length, zero);
122 return Character.codePointAt(chars, zero + index, zero + length);
126 return Character.codePointBefore(chars, zero + index, zero);
151 chars[position] = codeUnit;
159 * @return The number of chars added: 1 if the code point is in the BMP, or 2 otherwise.
[all …]
/external/caliper/examples/src/main/java/examples/
DCharacterBenchmark.java33 private char[] chars; field in CharacterBenchmark
36 this.chars = characterSet.chars; in setUp()
44 final char[] chars; field in CharacterBenchmark.CharacterSet
46 this.chars = new char[65536]; in CharacterSet()
48 chars[i] = (char) (i % size); in CharacterSet()
76 Character.digit(chars[ch], 10); in digit()
82 Character.digit((int) chars[ch], 10); in digit()
92 Character.getNumericValue(chars[ch]); in getNumericValue()
98 Character.getNumericValue((int) chars[ch]); in getNumericValue()
108 Character.isDigit(chars[ch]); in isDigit()
[all …]
/external/pdfium/xfa/fgas/layout/
Dcfgas_char.cpp269 void ReverseString(std::vector<CFGAS_Char>* chars, in ReverseString() argument
272 DCHECK(fxcrt::IndexInBounds(*chars, iStart)); in ReverseString()
273 DCHECK(iStart + iCount <= chars->size()); in ReverseString()
275 std::reverse(chars->begin() + iStart, chars->begin() + iStart + iCount); in ReverseString()
278 void SetDeferredRunClass(std::vector<CFGAS_Char>* chars, in SetDeferredRunClass() argument
282 DCHECK(iStart <= chars->size()); in SetDeferredRunClass()
287 (*chars)[i - 1].m_iBidiClass = eValue; in SetDeferredRunClass()
290 void SetDeferredRunLevel(std::vector<CFGAS_Char>* chars, in SetDeferredRunLevel() argument
294 DCHECK(iStart <= chars->size()); in SetDeferredRunLevel()
299 (*chars)[i - 1].m_iBidiLevel = static_cast<int16_t>(iValue); in SetDeferredRunLevel()
[all …]
/external/guava/android/guava/src/com/google/common/io/
DBaseEncoding.java209 public abstract boolean canDecode(CharSequence chars);
218 public final byte[] decode(CharSequence chars) {
220 return decodeChecked(chars);
233 final byte[] decodeChecked(CharSequence chars)
235 chars = trimTrailingPadding(chars);
236 byte[] tmp = new byte[maxDecodedSize(chars.length())];
237 int len = decodeTo(tmp, chars);
271 abstract int maxDecodedSize(int chars);
273 abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
275 CharSequence trimTrailingPadding(CharSequence chars) {
[all …]
/external/guava/guava/src/com/google/common/io/
DBaseEncoding.java209 public abstract boolean canDecode(CharSequence chars);
218 public final byte[] decode(CharSequence chars) {
220 return decodeChecked(chars);
233 final byte[] decodeChecked(CharSequence chars)
235 chars = trimTrailingPadding(chars);
236 byte[] tmp = new byte[maxDecodedSize(chars.length())];
237 int len = decodeTo(tmp, chars);
271 abstract int maxDecodedSize(int chars);
273 abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
275 CharSequence trimTrailingPadding(CharSequence chars) {
[all …]
/external/sdv/vsomeip/third_party/boost/lexical_cast/include/boost/
Dlexical_cast.hpp49 inline Target lexical_cast(const char* chars, std::size_t count) in lexical_cast() argument
52 ::boost::iterator_range<const char*>(chars, chars + count) in lexical_cast()
57 inline Target lexical_cast(const unsigned char* chars, std::size_t count) in lexical_cast() argument
60 ::boost::iterator_range<const unsigned char*>(chars, chars + count) in lexical_cast()
65 inline Target lexical_cast(const signed char* chars, std::size_t count) in lexical_cast() argument
68 ::boost::iterator_range<const signed char*>(chars, chars + count) in lexical_cast()
74 inline Target lexical_cast(const wchar_t* chars, std::size_t count) in lexical_cast() argument
77 ::boost::iterator_range<const wchar_t*>(chars, chars + count) in lexical_cast()
83 inline Target lexical_cast(const char16_t* chars, std::size_t count) in lexical_cast() argument
86 ::boost::iterator_range<const char16_t*>(chars, chars + count) in lexical_cast()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DBigendianEncoding.java92 * Returns the {@code long} value whose base16 representation is stored in the first 16 chars of
93 * {@code chars} starting from the {@code offset}.
95 * @param chars the base16 representation of the {@code long}.
98 static long longFromBase16String(CharSequence chars, int offset) { in longFromBase16String() argument
99 Utils.checkArgument(chars.length() >= offset + LONG_BASE16, "chars too small"); in longFromBase16String()
100 return (decodeByte(chars.charAt(offset), chars.charAt(offset + 1)) & 0xFFL) << 56 in longFromBase16String()
101 | (decodeByte(chars.charAt(offset + 2), chars.charAt(offset + 3)) & 0xFFL) << 48 in longFromBase16String()
102 | (decodeByte(chars.charAt(offset + 4), chars.charAt(offset + 5)) & 0xFFL) << 40 in longFromBase16String()
103 | (decodeByte(chars.charAt(offset + 6), chars.charAt(offset + 7)) & 0xFFL) << 32 in longFromBase16String()
104 | (decodeByte(chars.charAt(offset + 8), chars.charAt(offset + 9)) & 0xFFL) << 24 in longFromBase16String()
[all …]
/external/emma/core/java12/com/vladium/util/
DWCMatcher.java25 final char [] chars = pattern.toCharArray (); // is this faster than using charAt()? in compile() local
26 final int charsLength = chars.length; in compile()
37 final char ch = chars [c]; in compile()
44 chars [patternLength ++] = '*'; in compile()
51 chars [patternLength ++] = ch; in compile()
61 else if (chars [0] == '*') in compile()
62 return new EndsWithMatcher (chars, patternLength); in compile()
63 else if (chars [patternLength - 1] == '*') in compile()
64 return new StartsWithMatcher (chars, patternLength); in compile()
67 return new PatternMatcher (chars, patternLength); in compile()
[all …]

12345678910>>...172