Home
last modified time | relevance | path

Searched refs:asTstr (Results 1 – 3 of 3) sorted by relevance

/external/libcppbor/src/
Dcppbor.cpp169 if (item->asTstr() != nullptr) { in prettyPrintInternal()
170 out.append(item->asTstr()->value().c_str()); in prettyPrintInternal()
225 map_key->asTstr()->value()) != mapKeysToNotPrint.end()) { in prettyPrintInternal()
341 if (asTstr() != nullptr && other.asTstr() != nullptr) { in operator ==()
342 return *asTstr() == *(other.asTstr()); in operator ==()
/external/libcppbor/tests/
Dcppbor_test.cpp723 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
742 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
761 EXPECT_NE(nullptr, item->asTstr()); in TEST()
769 EXPECT_EQ("hello"s, item->asTstr()->value()); in TEST()
780 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
798 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
820 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
838 EXPECT_EQ(nullptr, item->asTstr()); in TEST()
864 EXPECT_NE(nullptr, item->asTstr()); in TEST()
868 EXPECT_NE(static_cast<Item*>(item->asTstr()), static_cast<Item*>(item->asSemanticTag())); in TEST()
[all …]
/external/libcppbor/include/cppbor/
Dcppbor.h125 virtual Tstr* asTstr() { return nullptr; } in asTstr() function
126 const Tstr* asTstr() const { return const_cast<Item*>(this)->asTstr(); } in asTstr() function
504 using Item::asTstr;
505 Tstr* asTstr() override { return this; } in asTstr() function
800 using Item::asTstr;
801 Tstr* asTstr() override { return mTaggedItem->asTstr(); } in asTstr() function