Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/primitives/
DCharsTest.java54 assertEquals(((Character) value).hashCode(), Chars.hashCode(value)); in testHashCode()
60 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast()
70 assertEquals(value, Chars.saturatedCast((long) value)); in testSaturatedCast()
72 assertEquals(GREATEST, Chars.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
73 assertEquals(LEAST, Chars.saturatedCast(LEAST - 1L)); in testSaturatedCast()
74 assertEquals(GREATEST, Chars.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
75 assertEquals(LEAST, Chars.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
80 Chars.checkedCast(value); in assertCastFails()
94 Chars.compare(x, y)); in testCompare()
100 assertFalse(Chars.contains(EMPTY, (char) 1)); in testContains()
[all …]
DCharArrayAsListTest.java49 return Chars.asList(temp); in asList()
/external/llvm/include/llvm/ADT/
DStringRef.h272 size_type find_first_of(StringRef Chars, size_t From = 0) const;
282 size_type find_first_not_of(StringRef Chars, size_t From = 0) const;
294 size_type find_last_of(StringRef Chars, size_t From = npos) const;
304 size_type find_last_not_of(StringRef Chars, size_t From = npos) const;
496 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
497 return drop_front(std::min(Length, find_first_not_of(Chars)));
502 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
503 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
508 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
509 return ltrim(Chars).rtrim(Chars);
DSmallString.h188 size_t find_first_of(StringRef Chars, size_t From = 0) const {
189 return str().find_first_of(Chars, From);
202 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
203 return str().find_first_not_of(Chars, From);
217 StringRef Chars, size_t From = StringRef::npos) const {
218 return str().find_last_of(Chars, From);
/external/llvm/lib/Support/
DStringRef.cpp181 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
184 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
185 CharBits.set((unsigned char)Chars[i]); in find_first_of()
206 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
209 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
210 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
222 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
225 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
226 CharBits.set((unsigned char)Chars[i]); in find_last_of()
247 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
/external/llvm/lib/Analysis/
DProfileInfoLoader.cpp115 std::vector<char> Chars(ArgLength+4); in ProfileInfoLoader() local
118 if (fread(&Chars[0], (ArgLength+3) & ~3, 1, F) != 1) { in ProfileInfoLoader()
123 CommandLines.push_back(std::string(&Chars[0], &Chars[ArgLength])); in ProfileInfoLoader()
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java45 public final class Chars { class
46 private Chars() {} in Chars() method in Chars
351 int result = Chars.compare(left[i], right[i]); in compare()
443 && Chars.indexOf(array, (Character) target, start, end) != -1; in contains()
449 int i = Chars.indexOf(array, (Character) target, start, end); in indexOf()
460 int i = Chars.lastIndexOf(array, (Character) target, start, end); in lastIndexOf()
507 result = 31 * result + Chars.hashCode(array[i]); in hashCode()
/external/guava/guava/src/com/google/common/primitives/
DChars.java47 public final class Chars { class
48 private Chars() {} in Chars() method in Chars
402 int result = Chars.compare(left[i], right[i]); in compare()
494 && Chars.indexOf(array, (Character) target, start, end) != -1; in contains()
500 int i = Chars.indexOf(array, (Character) target, start, end); in indexOf()
511 int i = Chars.lastIndexOf(array, (Character) target, start, end); in lastIndexOf()
558 result = 31 * result + Chars.hashCode(array[i]); in hashCode()
/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/chromium/testing/gmock/test/
Dgmock-internal-utils_test.cc588 typedef std::vector<char> Chars; in TEST() typedef
589 Chars v1; in TEST()
590 const Chars& v2(StlContainerView<Chars>::ConstReference(v1)); in TEST()
594 Chars v3 = StlContainerView<Chars>::Copy(v1); in TEST()
/external/guava/guava/src/com/google/common/hash/
DMessageDigestHashFunction.java20 import com.google.common.primitives.Chars;
138 digest.update(scratch.array(), 0, Chars.BYTES); in putChar()
/external/dbus/dbus/
Ddbus-string.c1793 #define UTF8_GET(Result, Chars, Count, Mask, Len) \ argument
1794 (Result) = (Chars)[0] & (Mask); \
1797 if (((Chars)[(Count)] & 0xc0) != 0x80) \
1803 (Result) |= ((Chars)[(Count)] & 0x3f); \
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg47 "char" : "0", // Chars start out being 0
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg46 "char" : "0" // Chars start out being 0