Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 995) sorted by relevance

12345678910>>...40

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
DDistinguishedNameParser.java37 private char[] chars; field in DistinguishedNameParser
51 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
62 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 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()
88 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
93 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
94 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
95 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/tls/
DDistinguishedNameParser.java38 private char[] chars; field in DistinguishedNameParser
52 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
63 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 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()
89 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
94 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
95 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
96 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') 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
54 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
65 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 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()
91 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
96 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
97 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
98 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT()
[all …]
/external/rust/crates/rayon/src/
Dstr.rs30 fn find_char_midpoint(chars: &str) -> usize { in find_char_midpoint()
31 let mid = chars.len() / 2; in find_char_midpoint()
36 let (left, right) = chars.as_bytes().split_at(mid); in find_char_midpoint()
49 fn split(chars: &str) -> Option<(&str, &str)> { in split()
50 let index = find_char_midpoint(chars); in split()
52 Some(chars.split_at(index)) in split()
75 chars: self.as_parallel_string(), in par_chars()
90 chars: self.as_parallel_string(), in par_char_indices()
110 chars: self.as_parallel_string(), in par_bytes()
134 chars: self.as_parallel_string(), in par_encode_utf16()
[all …]
/external/llvm-project/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()
95 test(mutating_delimiter(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
96 test(mutating_delimiter2(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
100 const wchar_t chars[] = L"0123456789"; in main() local
[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()
95 test(mutating_delimiter(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
96 test(mutating_delimiter2(), chars, chars+10, "0 1!2\"3#4$5%6&7'8(9"); in main()
100 const wchar_t chars[] = L"0123456789"; in main() local
[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/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/guava/guava/src/com/google/common/io/
DBaseEncoding.java206 public abstract boolean canDecode(CharSequence chars);
215 public final byte[] decode(CharSequence chars) {
217 return decodeChecked(chars);
229 */ final byte[] decodeChecked(CharSequence chars)
231 chars = trimTrailingPadding(chars);
232 byte[] tmp = new byte[maxDecodedSize(chars.length())];
233 int len = decodeTo(tmp, chars);
265 abstract int maxDecodedSize(int chars);
267 abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
269 CharSequence trimTrailingPadding(CharSequence chars) {
[all …]
/external/guava/android/guava/src/com/google/common/io/
DBaseEncoding.java206 public abstract boolean canDecode(CharSequence chars);
215 public final byte[] decode(CharSequence chars) {
217 return decodeChecked(chars);
229 */ final byte[] decodeChecked(CharSequence chars)
231 chars = trimTrailingPadding(chars);
232 byte[] tmp = new byte[maxDecodedSize(chars.length())];
233 int len = decodeTo(tmp, chars);
265 abstract int maxDecodedSize(int chars);
267 abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
269 CharSequence trimTrailingPadding(CharSequence chars) {
[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 …]
/external/rust/crates/unicode-normalization/src/
Dquick_check.rs109 match is_nfc_quick(s.chars()) { in is_nfc()
112 IsNormalized::Maybe => s.chars().eq(s.chars().nfc()), in is_nfc()
119 match is_nfkc_quick(s.chars()) { in is_nfkc()
122 IsNormalized::Maybe => s.chars().eq(s.chars().nfkc()), in is_nfkc()
129 match is_nfd_quick(s.chars()) { in is_nfd()
132 IsNormalized::Maybe => s.chars().eq(s.chars().nfd()), in is_nfd()
139 match is_nfkd_quick(s.chars()) { in is_nfkd()
142 IsNormalized::Maybe => s.chars().eq(s.chars().nfkd()), in is_nfkd()
149 match is_nfc_stream_safe_quick(s.chars()) { in is_nfc_stream_safe()
152 IsNormalized::Maybe => s.chars().eq(s.chars().stream_safe().nfc()), in is_nfc_stream_safe()
[all …]
/external/guava/guava/src/com/google/common/base/
DAscii.java410 char[] chars = string.toCharArray(); in toLowerCase() local
412 char c = chars[i]; in toLowerCase()
414 chars[i] = (char) (c ^ CASE_MASK); in toLowerCase()
417 return String.valueOf(chars); in toLowerCase()
430 public static String toLowerCase(CharSequence chars) { in toLowerCase() argument
431 if (chars instanceof String) { in toLowerCase()
432 return toLowerCase((String) chars); in toLowerCase()
434 char[] newChars = new char[chars.length()]; in toLowerCase()
436 newChars[i] = toLowerCase(chars.charAt(i)); in toLowerCase()
458 char[] chars = string.toCharArray(); in toUpperCase() local
[all …]
/external/guava/android/guava/src/com/google/common/base/
DAscii.java410 char[] chars = string.toCharArray(); in toLowerCase() local
412 char c = chars[i]; in toLowerCase()
414 chars[i] = (char) (c ^ CASE_MASK); in toLowerCase()
417 return String.valueOf(chars); in toLowerCase()
430 public static String toLowerCase(CharSequence chars) { in toLowerCase() argument
431 if (chars instanceof String) { in toLowerCase()
432 return toLowerCase((String) chars); in toLowerCase()
434 char[] newChars = new char[chars.length()]; in toLowerCase()
436 newChars[i] = toLowerCase(chars.charAt(i)); in toLowerCase()
458 char[] chars = string.toCharArray(); in toUpperCase() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DCharArr.java21 private char[] chars; field in CharArr
26 public CharArr(char[] chars) { in CharArr() argument
27 this.chars = chars; in CharArr()
31 return Arrays.toString(chars); in toString()
35 return chars; in getChars()
38 public void setChars(char[] chars) { in setChars() argument
39 this.chars = chars; in setChars()
/external/pdfium/xfa/fgas/layout/
Dcfx_char.cpp266 void ReverseString(std::vector<CFX_Char>* chars, size_t iStart, size_t iCount) { in ReverseString() argument
267 ASSERT(pdfium::IndexInBounds(*chars, iStart)); in ReverseString()
268 ASSERT(iStart + iCount <= chars->size()); in ReverseString()
270 std::reverse(chars->begin() + iStart, chars->begin() + iStart + iCount); in ReverseString()
273 void SetDeferredRunClass(std::vector<CFX_Char>* chars, in SetDeferredRunClass() argument
277 ASSERT(iStart <= chars->size()); in SetDeferredRunClass()
282 (*chars)[i - 1].m_iBidiClass = eValue; in SetDeferredRunClass()
285 void SetDeferredRunLevel(std::vector<CFX_Char>* chars, in SetDeferredRunLevel() argument
289 ASSERT(iStart <= chars->size()); in SetDeferredRunLevel()
294 (*chars)[i - 1].m_iBidiLevel = static_cast<int16_t>(iValue); in SetDeferredRunLevel()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCharsTrieBuilder.java81 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength); in buildCharSequence()
86 if(chars==null) { in buildChars()
87 chars=new char[1024]; in buildChars()
100 chars=null; in clear()
140 if(length>chars.length) { in ensureCapacity()
141 int newCapacity=chars.length; in ensureCapacity()
146 System.arraycopy(chars, chars.length-charsLength, in ensureCapacity()
148 chars=newChars; in ensureCapacity()
162 chars[chars.length-charsLength]=(char)unit; in write()
176 int charsOffset=chars.length-charsLength; in write()
[all …]
DCharsTrie.java134 private CharSequence chars; field in CharsTrie.State
148 state.chars=chars_; in saveState()
168 if(chars_==state.chars && chars_!=null && root_==state.root) { in resetToState()
475 public CharSequence chars; field in CharsTrie.Entry
600 entry_.chars=str_; in next()
642 entry_.chars=str_; in truncateAndStop()
667 entry_.chars=str_; in branchNext()
702 private static int readValue(CharSequence chars, int pos, int leadUnit) { in readValue() argument
707 value=((leadUnit-kMinTwoUnitValueLead)<<16)|chars.charAt(pos); in readValue()
709 value=(chars.charAt(pos)<<16)|chars.charAt(pos+1); in readValue()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCharsTrieBuilder.java78 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength); in buildCharSequence()
83 if(chars==null) { in buildChars()
84 chars=new char[1024]; in buildChars()
96 chars=null; in clear()
136 if(length>chars.length) { in ensureCapacity()
137 int newCapacity=chars.length; in ensureCapacity()
142 System.arraycopy(chars, chars.length-charsLength, in ensureCapacity()
144 chars=newChars; in ensureCapacity()
158 chars[chars.length-charsLength]=(char)unit; in write()
172 int charsOffset=chars.length-charsLength; in write()
[all …]
/external/rust/crates/proc-macro2/src/
Dparse.rs21 off: self.off + _front.chars().count() as u32, in advance()
45 fn chars(&self) -> Chars<'a> { in chars() method
46 self.rest.chars() in chars()
101 let ch = s.chars().next().unwrap(); in skip_whitespace()
146 match input.chars().next() { in word_break()
295 let mut chars = input.char_indices(); in ident_not_raw() localVariable
297 match chars.next() { in ident_not_raw()
303 for (i, ch) in chars { in ident_not_raw()
355 let mut chars = input.char_indices().peekable(); in cooked_string() localVariable
357 while let Some((i, ch)) = chars.next() { in cooked_string()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedStringBuilder.java33 char[] chars; field in FormattedStringBuilder
49 chars = new char[capacity]; in FormattedStringBuilder()
60 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom()
79 return chars[zero + index]; in charAt()
92 return Character.codePointAt(chars, zero, zero + length);
99 return Character.codePointBefore(chars, zero + length, zero);
103 return Character.codePointAt(chars, zero + index, zero + length);
107 return Character.codePointBefore(chars, zero + index, zero);
132 chars[position] = codeUnit;
154 Character.toChars(codePoint, chars, position);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedStringBuilder.java31 char[] chars; field in FormattedStringBuilder
47 chars = new char[capacity]; in FormattedStringBuilder()
58 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom()
77 return chars[zero + index]; in charAt()
90 return Character.codePointAt(chars, zero, zero + length);
97 return Character.codePointBefore(chars, zero + length, zero);
101 return Character.codePointAt(chars, zero + index, zero + length);
105 return Character.codePointBefore(chars, zero + index, zero);
130 chars[position] = codeUnit;
152 Character.toChars(codePoint, chars, position);
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/
DStrings.java52 char[] chars = new char[bytes.length]; in fromUTF8ByteArray() local
53 int len = UTF8.transcodeToUTF16(bytes, chars); in fromUTF8ByteArray()
58 return new String(chars, 0, len); in fromUTF8ByteArray()
145 char[] chars = string.toCharArray(); in toUpperCase() local
147 for (int i = 0; i != chars.length; i++) in toUpperCase()
149 char ch = chars[i]; in toUpperCase()
153 chars[i] = (char)(ch - 'a' + 'A'); in toUpperCase()
159 return new String(chars); in toUpperCase()
174 char[] chars = string.toCharArray(); in toLowerCase() local
176 for (int i = 0; i != chars.length; i++) in toLowerCase()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DStrings.java52 char[] chars = new char[bytes.length]; in fromUTF8ByteArray() local
53 int len = UTF8.transcodeToUTF16(bytes, chars); in fromUTF8ByteArray()
58 return new String(chars, 0, len); in fromUTF8ByteArray()
145 char[] chars = string.toCharArray(); in toUpperCase() local
147 for (int i = 0; i != chars.length; i++) in toUpperCase()
149 char ch = chars[i]; in toUpperCase()
153 chars[i] = (char)(ch - 'a' + 'A'); in toUpperCase()
159 return new String(chars); in toUpperCase()
174 char[] chars = string.toCharArray(); in toLowerCase() local
176 for (int i = 0; i != chars.length; i++) in toLowerCase()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DStrings.java50 char[] chars = new char[bytes.length]; in fromUTF8ByteArray() local
51 int len = UTF8.transcodeToUTF16(bytes, chars); in fromUTF8ByteArray()
56 return new String(chars, 0, len); in fromUTF8ByteArray()
143 char[] chars = string.toCharArray(); in toUpperCase() local
145 for (int i = 0; i != chars.length; i++) in toUpperCase()
147 char ch = chars[i]; in toUpperCase()
151 chars[i] = (char)(ch - 'a' + 'A'); in toUpperCase()
157 return new String(chars); in toUpperCase()
172 char[] chars = string.toCharArray(); in toLowerCase() local
174 for (int i = 0; i != chars.length; i++) in toLowerCase()
[all …]

12345678910>>...40