Home
last modified time | relevance | path

Searched refs:Chars (Results 1 – 16 of 16) 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.h283 size_t find_first_of(StringRef Chars, size_t From = 0) const;
293 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
305 size_t find_last_of(StringRef Chars, size_t From = npos) const;
315 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
504 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
505 return drop_front(std::min(Length, find_first_not_of(Chars)));
510 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
511 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
516 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
517 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/llvm/lib/Support/
DStringRef.cpp198 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
201 for (size_type i = 0; i != Chars.size(); ++i) in find_first_of()
202 CharBits.set((unsigned char)Chars[i]); in find_first_of()
223 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
226 for (size_type i = 0; i != Chars.size(); ++i) in find_first_not_of()
227 CharBits.set((unsigned char)Chars[i]); in find_first_not_of()
239 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
242 for (size_type i = 0; i != Chars.size(); ++i) in find_last_of()
243 CharBits.set((unsigned char)Chars[i]); in find_last_of()
264 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
[all …]
DScaledNumber.cpp185 SmallVector<char, 24> Chars; in toStringAPFloat() local
186 Float.toString(Chars, Precision, 0); in toStringAPFloat()
187 return std::string(Chars.begin(), Chars.end()); in toStringAPFloat()
/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/smali/dexlib2/src/main/java/org/jf/dexlib2/base/value/
DBaseCharEncodedValue.java34 import com.google.common.primitives.Chars;
61 return Chars.compare(getValue(), ((CharEncodedValue)o).getValue()); in compareTo()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs225 int len = charsSet.Chars.Length; in ParseSubCharsCommand()
228 char c = charsSet.Chars[j]; in ParseSubCharsCommand()
271 public string Chars = ""; field in SevenZip.CommandLineParser.CommandSubCharsSet
/external/clang/lib/Format/
DBreakableToken.cpp98 for (unsigned Chars = 0;;) { in getStringSplit() local
102 Chars += Advance; in getStringSplit()
105 Chars += encoding::columnWidthWithTabs( in getStringSplit()
106 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
109 if (Chars > MaxSplit || Text.size() == Advance) in getStringSplit()
/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/clang/lib/Lex/
DLexer.cpp1670 unsigned Chars = 1; in LexUDSuffix() local
1677 IsUDSuffix = (Chars == 1 && Buffer[0] == 's') || in LexUDSuffix()
1679 getLangOpts(), StringRef(Buffer, Chars)); in LexUDSuffix()
1683 if (Chars == MaxStandardSuffixLength) in LexUDSuffix()
1687 Buffer[Chars++] = Next; in LexUDSuffix()
/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