Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/io/
DStringStream.cpp24 StringInputStream::StringInputStream(const 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()
55 : str_(str), in StringOutputStream()
85 return str_->size() + buffer_offset_; in ByteCount()
95 str_->append(buffer_.get(), buffer_offset_); in FlushImpl()
DStringStream.h53 android::StringPiece str_; variable
84 std::string* str_; variable
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Ddatapiece.cc168 if (str_ == "Infinity") return std::numeric_limits<double>::infinity(); in ToDouble()
169 if (str_ == "-Infinity") return -std::numeric_limits<double>::infinity(); in ToDouble()
170 if (str_ == "NaN") return std::numeric_limits<double>::quiet_NaN(); in ToDouble()
181 if (str_ == "Infinity") return std::numeric_limits<float>::infinity(); in ToFloat()
182 if (str_ == "-Infinity") return -std::numeric_limits<float>::infinity(); in ToFloat()
183 if (str_ == "NaN") return std::numeric_limits<float>::quiet_NaN(); in ToFloat()
206 return str_.ToString(); in ToString()
209 Base64Escape(str_, &base64); in ToString()
235 return StrCat("\"", str_.ToString(), "\""); in ValueAsStringOrDefault()
238 WebSafeBase64Escape(str_, &base64); in ValueAsStringOrDefault()
[all …]
Ddatapiece.h88 str_(StringPiecePod::CreateFromStringPiece(value)), in DataPiece()
93 str_(StringPiecePod::CreateFromStringPiece(value)), in DataPiece()
113 return str_; in str()
192 StringPiecePod str_; member
/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.h178 std::string str_;
187 return str_; in ToString()
195 return str_.empty(); in IsEmpty()
246 android::StringPiece str_; variable
DUtil.cpp469 const char* end = str_.end(); in operator ++()
501 : str_(s), separator_(sep), token_(tok), end_(end) {} in iterator()