Searched refs:kBin (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/libs/ftl/ |
D | string_test.cpp | 34 EXPECT_EQ(ftl::to_chars(buffer, -42, ftl::Radix::kBin), "-0b101010"); in TEST() 91 static constexpr auto kRadix = ftl::Radix::kBin; 149 EXPECT_EQ(ftl::to_chars(buffer, x, ftl::Radix::kBin), "0b11111111"); in TEST() 154 EXPECT_EQ(ftl::to_chars(buffer, x, ftl::Radix::kBin), "-0b1000000000000000"); in TEST()
|
D | optional_test.cpp | 66 EXPECT_EQ("0b100"s, Optional(4).transform(std::bind(ftl::to_string<int>, _1, ftl::Radix::kBin))); in TEST()
|
/frameworks/native/include/ftl/ |
D | string.h | 28 enum class Radix { kBin = 2, kDec = 10, kHex = 16 }; enumerator 66 const auto prefix = radix == Radix::kBin ? 'b' : 'x';
|
D | flags.h | 186 constexpr auto radix = sizeof(U) == 1 ? Radix::kBin : Radix::kHex; in string()
|
D | enum.h | 297 constexpr auto radix = sizeof(E) == 1 ? Radix::kBin : Radix::kHex;
|