Home
last modified time | relevance | path

Searched refs:kBin (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/libs/ftl/
Dstring_test.cpp34 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()
Doptional_test.cpp66 EXPECT_EQ("0b100"s, Optional(4).transform(std::bind(ftl::to_string<int>, _1, ftl::Radix::kBin))); in TEST()
/frameworks/native/include/ftl/
Dstring.h28 enum class Radix { kBin = 2, kDec = 10, kHex = 16 }; enumerator
66 const auto prefix = radix == Radix::kBin ? 'b' : 'x';
Dflags.h186 constexpr auto radix = sizeof(U) == 1 ? Radix::kBin : Radix::kHex; in string()
Denum.h297 constexpr auto radix = sizeof(E) == 1 ? Radix::kBin : Radix::kHex;