Searched refs:Tstr (Results 1 – 5 of 5) sorted by relevance
/external/libcppbor/tests/ |
D | cppbor_test.cpp | 130 EXPECT_EQ("\x60"s, Tstr("").toString()); in TEST() 131 EXPECT_EQ("\x61\x61"s, Tstr("a").toString()); in TEST() 132 EXPECT_EQ("\x61\x41"s, Tstr("A").toString()); in TEST() 133 EXPECT_EQ("\x64\x49\x45\x54\x46"s, Tstr("IETF").toString()); in TEST() 134 EXPECT_EQ("\x62\x22\x5c"s, Tstr("\"\\").toString()); in TEST() 135 EXPECT_EQ("\x62\xc3\xbc"s, Tstr("\xc3\xbc").toString()); in TEST() 136 EXPECT_EQ("\x63\xe6\xb0\xb4"s, Tstr("\xe6\xb0\xb4").toString()); in TEST() 137 EXPECT_EQ("\x64\xf0\x90\x85\x91"s, Tstr("\xf0\x90\x85\x91").toString()); in TEST() 138 EXPECT_EQ("\x64\x01\x02\x03\x04"s, Tstr("\x01\x02\x03\x04").toString()); in TEST() 332 EXPECT_EQ("\x60"s, details::makeItem(new Tstr(string()))->toString()); in TEST() [all …]
|
/external/libcppbor/include/cppbor/ |
D | cppbor.h | 61 class Tstr; variable 125 virtual Tstr* asTstr() { return nullptr; } in asTstr() 126 const Tstr* asTstr() const { return const_cast<Item*>(this)->asTstr(); } in asTstr() 476 class Tstr : public Item { 481 explicit Tstr(std::string v) : mValue(std::move(v)) {} in Tstr() function 484 explicit Tstr(const std::string_view& v) : mValue(v) {} in Tstr() function 487 explicit Tstr(const char* v) : mValue(std::string(v)) {} in Tstr() function 493 explicit Tstr(const std::pair<I1, I2>& pair) : mValue(pair.first, pair.second) {} in Tstr() function 499 Tstr(I1 begin, I2 end) : mValue(begin, end) {} in Tstr() function 501 bool operator==(const Tstr& other) const& { return mValue == other.mValue; } [all …]
|
/external/libcppbor/ |
D | README.md | 33 * `Tstr` corresponds to major type 3, a text string. 53 `std::pair<char iterator, char iterator>` convert to `Tstr`. 86 This creates a map with two entries, with `Tstr` keys "Outer1" and 88 `Array` containing a `Map` and a `Tstr`. The "Outer2" entry has a 93 C++ or C string, a `Tstr` entry is added. Where the caller provides
|
/external/libcppbor/src/ |
D | cppbor.cpp | 405 uint8_t* Tstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() 411 void Tstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
|
D | cppbor_parse.cpp | 257 return handleString<Tstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
|