Home
last modified time | relevance | path

Searched refs:compare_numeric (Results 1 – 6 of 6) sorted by relevance

/external/llvm/unittests/ADT/
DSmallStringTest.cpp188 EXPECT_EQ(-1, SmallString<10>("aab").compare_numeric("aad")); in TEST()
189 EXPECT_EQ( 0, SmallString<10>("aab").compare_numeric("aab")); in TEST()
190 EXPECT_EQ( 1, SmallString<10>("aab").compare_numeric("aaa")); in TEST()
191 EXPECT_EQ(-1, SmallString<10>("aab").compare_numeric("aabb")); in TEST()
192 EXPECT_EQ( 1, SmallString<10>("aab").compare_numeric("aa")); in TEST()
193 EXPECT_EQ(-1, SmallString<10>("1").compare_numeric("10")); in TEST()
194 EXPECT_EQ( 0, SmallString<10>("10").compare_numeric("10")); in TEST()
195 EXPECT_EQ( 0, SmallString<10>("10a").compare_numeric("10a")); in TEST()
196 EXPECT_EQ( 1, SmallString<10>("2").compare_numeric("1")); in TEST()
197 EXPECT_EQ( 0, SmallString<10>("llvm_v1i64_ty").compare_numeric("llvm_v1i64_ty")); in TEST()
[all …]
DStringRefTest.cpp72 EXPECT_EQ(-1, StringRef("aab").compare_numeric("aad")); in TEST()
73 EXPECT_EQ( 0, StringRef("aab").compare_numeric("aab")); in TEST()
74 EXPECT_EQ( 1, StringRef("aab").compare_numeric("aaa")); in TEST()
75 EXPECT_EQ(-1, StringRef("aab").compare_numeric("aabb")); in TEST()
76 EXPECT_EQ( 1, StringRef("aab").compare_numeric("aa")); in TEST()
77 EXPECT_EQ(-1, StringRef("1").compare_numeric("10")); in TEST()
78 EXPECT_EQ( 0, StringRef("10").compare_numeric("10")); in TEST()
79 EXPECT_EQ( 0, StringRef("10a").compare_numeric("10a")); in TEST()
80 EXPECT_EQ( 1, StringRef("2").compare_numeric("1")); in TEST()
81 EXPECT_EQ( 0, StringRef("llvm_v1i64_ty").compare_numeric("llvm_v1i64_ty")); in TEST()
[all …]
/external/llvm/include/llvm/ADT/
DSmallString.h121 int compare_numeric(StringRef RHS) const { in compare_numeric() function
122 return str().compare_numeric(RHS); in compare_numeric()
DStringRef.h173 int compare_numeric(StringRef RHS) const;
/external/llvm/lib/Support/
DStringRef.cpp73 int StringRef::compare_numeric(StringRef RHS) const { in compare_numeric() function in StringRef
/external/llvm/include/llvm/TableGen/
DRecord.h1476 return StringRef(Rec1->getName()).compare_numeric(Rec2->getName()) < 0; in operator()