Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/io/
DStringStream.cpp24 StringInputStream::StringInputStream(StringPiece str) : str_(str), offset_(0u) { in StringInputStream()
28 if (offset_ == str_.size()) { in Next()
32 *data = str_.data() + offset_; in Next()
33 *size = str_.size() - offset_; in Next()
34 offset_ = str_.size(); in Next()
51 return str_.size(); in TotalSize()
64 if (offset + byte_count > str_.size()) { in ReadFullyAtOffset()
67 memcpy(data, str_.data() + offset, byte_count); in ReadFullyAtOffset()
72 : str_(str), in StringOutputStream()
102 return str_->size() + buffer_offset_; in ByteCount()
[all …]
DStringStream.h54 android::StringPiece str_; variable
85 std::string* str_; variable
/frameworks/base/tools/aapt2/text/
DUtf8Iterator.cpp28 : str_(str), current_pos_(0), next_pos_(0), current_codepoint_(0) { in Utf8Iterator()
34 int32_t result = utf32_from_utf8_at(str_.data(), str_.size(), current_pos_, &next_pos_); in DoNext()
DUtf8Iterator.h45 android::StringPiece str_; variable
/frameworks/base/tools/aapt2/util/
DUtil.h176 std::string str_;
185 return str_; in ToString()
193 return str_.empty(); in IsEmpty()
233 android::StringPiece str_; variable
DUtil.cpp394 const char* end = str_.end(); in operator ++()
426 : str_(s), separator_(sep), token_(tok), end_(end) { in iterator()