Home
last modified time | relevance | path

Searched refs:Chars (Results 1 – 25 of 104) sorted by relevance

12345

/external/guava/android/guava-tests/test/com/google/common/primitives/
DCharsTest.java51 assertEquals(((Character) value).hashCode(), Chars.hashCode(value)); in testHashCode()
57 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast()
67 assertEquals(value, Chars.saturatedCast((long) value)); in testSaturatedCast()
69 assertEquals(GREATEST, Chars.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
70 assertEquals(LEAST, Chars.saturatedCast(LEAST - 1L)); in testSaturatedCast()
71 assertEquals(GREATEST, Chars.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
72 assertEquals(LEAST, Chars.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
77 Chars.checkedCast(value); in assertCastFails()
90 assertEquals(x + ", " + y, Character.valueOf(x).compareTo(y), Chars.compare(x, y)); in testCompare()
96 assertFalse(Chars.contains(EMPTY, (char) 1)); in testContains()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DCharsTest.java51 assertEquals(((Character) value).hashCode(), Chars.hashCode(value)); in testHashCode()
57 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast()
67 assertEquals(value, Chars.saturatedCast((long) value)); in testSaturatedCast()
69 assertEquals(GREATEST, Chars.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
70 assertEquals(LEAST, Chars.saturatedCast(LEAST - 1L)); in testSaturatedCast()
71 assertEquals(GREATEST, Chars.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
72 assertEquals(LEAST, Chars.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
77 Chars.checkedCast(value); in assertCastFails()
90 assertEquals(x + ", " + y, Character.valueOf(x).compareTo(y), Chars.compare(x, y)); in testCompare()
96 assertFalse(Chars.contains(EMPTY, (char) 1)); in testContains()
[all …]
/external/rust/crates/protobuf/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/unicode-normalization/src/
Dlib.rs65 use core::str::Chars;
132 impl<'a> UnicodeNormalization<Chars<'a>> for &'a str {
134 fn nfd(self) -> Decompositions<Chars<'a>> { in nfd()
139 fn nfkd(self) -> Decompositions<Chars<'a>> { in nfkd()
144 fn nfc(self) -> Recompositions<Chars<'a>> { in nfc()
149 fn nfkc(self) -> Recompositions<Chars<'a>> { in nfkc()
154 fn cjk_compat_variants(self) -> Replacements<Chars<'a>> { in cjk_compat_variants()
159 fn stream_safe(self) -> StreamSafe<Chars<'a>> { in stream_safe()
/external/rust/crates/codespan-reporting/src/term/
Dconfig.rs19 pub chars: Chars,
40 chars: Chars::default(), in default()
204 pub struct Chars { struct
259 impl Default for Chars { argument
260 fn default() -> Chars { in default()
261 Chars::box_drawing() in default()
265 impl Chars { implementation
267 pub fn box_drawing() -> Chars { in box_drawing()
268 Chars { in box_drawing()
297 pub fn ascii() -> Chars { in ascii()
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DTrigram.cpp113 std::string Chars; in generateQueryTrigrams() local
117 Chars.push_back(LowercaseQuery[I]); in generateQueryTrigrams()
118 if (Chars.size() > 3) in generateQueryTrigrams()
119 Chars.erase(Chars.begin()); in generateQueryTrigrams()
120 if (Chars.size() == 3) in generateQueryTrigrams()
121 UniqueTrigrams.insert(Token(Token::Kind::Trigram, Chars)); in generateQueryTrigrams()
/external/rust/crates/remain/src/
Datom.rs11 Chars(&'a str), enumerator
38 (Number(_), Chars(_)) => Ordering::Less, in cmp()
39 (Chars(_), Number(_)) => Ordering::Greater, in cmp()
40 (Chars(l), Chars(r)) => cmp_ignore_case(l, r), in cmp()
137 Some(Atom::Chars(chars)) in next()
/external/llvm/lib/Support/
DStringRef.cpp205 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
208 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
209 CharBits.set((unsigned char)Chars[i]); in find_first_of()
230 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
233 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
234 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
246 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
249 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
250 CharBits.set((unsigned char)Chars[i]); in find_last_of()
271 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
/external/llvm/include/llvm/ADT/
DStringRef.h306 size_t find_first_of(StringRef Chars, size_t From = 0) const;
316 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
328 size_t find_last_of(StringRef Chars, size_t From = npos) const;
338 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
558 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
559 return drop_front(std::min(Length, find_first_not_of(Chars)));
570 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
571 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
582 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
583 return ltrim(Chars).rtrim(Chars);
DSmallString.h185 size_t find_first_of(StringRef Chars, size_t From = 0) const {
186 return str().find_first_of(Chars, From);
199 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
200 return str().find_first_not_of(Chars, From);
214 StringRef Chars, size_t From = StringRef::npos) const {
215 return str().find_last_of(Chars, From);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallString.h185 size_t find_first_of(StringRef Chars, size_t From = 0) const {
186 return str().find_first_of(Chars, From);
199 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
200 return str().find_first_not_of(Chars, From);
214 StringRef Chars, size_t From = StringRef::npos) const {
215 return str().find_last_of(Chars, From);
DStringRef.h401 size_t find_first_of(StringRef Chars, size_t From = 0) const;
413 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
427 size_t find_last_of(StringRef Chars, size_t From = npos) const;
439 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
804 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
805 return drop_front(std::min(Length, find_first_not_of(Chars)));
818 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
819 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
832 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
833 return ltrim(Chars).rtrim(Chars);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSmallString.h184 size_t find_first_of(StringRef Chars, size_t From = 0) const {
185 return str().find_first_of(Chars, From);
198 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
199 return str().find_first_not_of(Chars, From);
213 StringRef Chars, size_t From = StringRef::npos) const {
214 return str().find_last_of(Chars, From);
DStringRef.h410 size_t find_first_of(StringRef Chars, size_t From = 0) const;
422 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
436 size_t find_last_of(StringRef Chars, size_t From = npos) const;
448 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
818 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
819 return drop_front(std::min(Length, find_first_not_of(Chars)));
832 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
833 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
846 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
847 return ltrim(Chars).rtrim(Chars);
/external/llvm-project/llvm/lib/Support/
DGlobPattern.cpp85 StringRef Chars = S.substr(1, End - 1); in scan() local
87 if (Chars.startswith("^") || Chars.startswith("!")) { in scan()
88 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan()
93 return expand(Chars, Original); in scan()
DStringRef.cpp230 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
233 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
234 CharBits.set((unsigned char)Chars[i]); in find_first_of()
255 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
258 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
259 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
271 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
274 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
275 CharBits.set((unsigned char)Chars[i]); in find_last_of()
296 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DGlobPattern.cpp85 StringRef Chars = S.substr(1, End - 1); in scan() local
87 if (Chars.startswith("^") || Chars.startswith("!")) { in scan()
88 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan()
93 return expand(Chars, Original); in scan()
DStringRef.cpp236 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
239 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
240 CharBits.set((unsigned char)Chars[i]); in find_first_of()
261 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
264 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
265 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
277 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
280 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
281 CharBits.set((unsigned char)Chars[i]); in find_last_of()
302 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
/external/llvm-project/clang/test/Analysis/
Dllvm-conventions.cpp89 size_t find_first_of(StringRef Chars, size_t From = 0) const;
91 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
93 size_t find_last_of(StringRef Chars, size_t From = npos) const;
95 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
140 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const;
142 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const;
144 StringRef trim(StringRef Chars = " \t\n\v\f\r") const;
/external/llvm-project/llvm/include/llvm/ADT/
DSmallString.h210 size_t find_first_of(StringRef Chars, size_t From = 0) const {
211 return str().find_first_of(Chars, From);
224 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
225 return str().find_first_not_of(Chars, From);
239 StringRef Chars, size_t From = StringRef::npos) const {
240 return str().find_last_of(Chars, From);
DStringRef.h422 size_t find_first_of(StringRef Chars, size_t From = 0) const;
434 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
448 size_t find_last_of(StringRef Chars, size_t From = npos) const;
460 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
830 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
831 return drop_front(std::min(Length, find_first_not_of(Chars)));
844 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
845 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
858 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
859 return ltrim(Chars).rtrim(Chars);
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp250 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
253 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
254 CharBits.set((unsigned char)Chars[i]); in find_first_of()
275 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
278 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
279 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
291 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
294 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
295 CharBits.set((unsigned char)Chars[i]); in find_last_of()
316 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
/external/llvm/unittests/ADT/
DVariadicFunctionTest.cpp60 int Chars = 0; in StringAppendImpl() local
62 Chars += Args[i]->size(); in StringAppendImpl()
65 return Chars; in StringAppendImpl()
/external/guava/android/guava/src/com/google/common/primitives/
DChars.java49 public final class Chars { class
50 private Chars() {} in Chars() method in Chars
395 int result = Chars.compare(left[i], right[i]); in compare()
546 && Chars.indexOf(array, (Character) target, start, end) != -1; in contains()
553 int i = Chars.indexOf(array, (Character) target, start, end); in indexOf()
565 int i = Chars.lastIndexOf(array, (Character) target, start, end); in lastIndexOf()
617 result = 31 * result + Chars.hashCode(array[i]); in hashCode()
/external/guava/guava/src/com/google/common/primitives/
DChars.java49 public final class Chars { class
50 private Chars() {} in Chars() method in Chars
395 int result = Chars.compare(left[i], right[i]); in compare()
546 && Chars.indexOf(array, (Character) target, start, end) != -1; in contains()
553 int i = Chars.indexOf(array, (Character) target, start, end); in indexOf()
565 int i = Chars.lastIndexOf(array, (Character) target, start, end); in lastIndexOf()
617 result = 31 * result + Chars.hashCode(array[i]); in hashCode()

12345