Home
last modified time | relevance | path

Searched refs:str_ (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DstringLiteral.cpp30 dumper->Add({{"type", "StringLiteral"}, {"value", str_}}); in Dump()
35 pg->LoadAccumulatorString(this, str_); in Compile()
40 auto search = checker->StringLiteralMap().find(str_); in Check()
45 auto *newStrLiteralType = checker->Allocator()->New<checker::StringLiteralType>(str_); in Check()
46 checker->StringLiteralMap().insert({str_, newStrLiteralType}); in Check()
DstringLiteral.h35 … explicit StringLiteral(util::StringView str) : Literal(AstNodeType::STRING_LITERAL), str_(str) {} in StringLiteral()
39 return str_; in Str()
49 return str_ == other.str_;
59 util::StringView str_;
DtaggedLiteral.h36 : Literal(AstNodeType::TAGGED_LITERAL), str_(str), tag_(tag) in TaggedLiteral()
47 return str_; in Str()
52 return tag_ == other.tag_ && str_ == other.str_;
64 return str_; in Method()
81 util::StringView str_ {};
DnumberLiteral.h37 : Literal(AstNodeType::NUMBER_LITERAL), number_(num), str_(str) in NumberLiteral()
49 return str_; in Str()
72 util::StringView str_; variable
DtaggedLiteral.cpp27 dumper->Add({{"type", "TaggedLiteral"}, {"value", str_}}); in Dump()
/arkcompiler/ets_runtime/ecmascript/
Ddate_parse.cpp272 if (str_->IsDigit()) { in Read()
274 int num = str_->ReadNumber(&len); in Read()
277 if (str_->IsEnd()) { in Read()
280 if (str_->IsChar(':')) { in Read()
281 str_->NextChar(); in Read()
284 if (str_->IsChar('+')) { in Read()
285 str_->NextChar(); in Read()
288 if (str_->IsChar('-')) { in Read()
289 str_->NextChar(); in Read()
292 if (str_->IsChar('.')) { in Read()
[all …]
Ddate_parse.h317 explicit DateProxy(StringReader *str) : str_(str), date_(Read()) {} in DateProxy()
342 StringReader *str_; variable
/arkcompiler/runtime_core/libpandabase/os/
Dstacktrace.cpp56 explicit Tokenizer(const std::string &str) : str_(str), pos_(0) {} in Tokenizer()
60 while (pos_ < str_.length() && str_[pos_] == ' ') { in Next()
63 size_t pos = str_.find(delim, pos_); in Next()
66 token = str_.substr(pos_); in Next()
67 pos_ = str_.length(); in Next()
69 token = str_.substr(pos_, pos - pos_); in Next()
76 std::string str_; member in panda::Tokenizer
/arkcompiler/ets_frontend/es2panda/util/
Dustring.h257 *str_ = str; in UString()
266 if (!str_) { in View()
270 return util::StringView(str_); in View()
275 if (!str_) { in Append()
279 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()
284 if (!str_) { in Append()
288 *str_ += other.Utf8(); in Append()
293 if (!str_) { in Append()
296 *str_ += other; in Append()
302 str_ = allocator_->New<ArenaString>(allocator_->Adapter()); in Alloc()
[all …]
/arkcompiler/runtime_core/libpandafile/
Dfile_items.cpp192 StringItem::StringItem(std::string str, ItemContainer *container) : IndexedItem(container), str_(st… in StringItem()
194 str_.push_back(0); in StringItem()
195 utf16_length_ = utf::MUtf8ToUtf16Size(utf::CStringAsMutf8(str_.data())); in StringItem()
198 for (auto c : str_) { in StringItem()
207 …: IndexedItem(container), str_(reinterpret_cast<const char *>(data.data)), utf16_length_(data.utf… in StringItem()
213 size_t n = str_.size(); in CalculateSize()
230 for (auto c : str_) { in Write()
Dfile_items.h452 return str_; in GetData()
469 std::string str_;