MCPcopy Create free account
hub / github.com/chen3feng/toft / as_string

Method as_string

base/string/string_piece.h:159–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 int compare(const StringPiece& x) const;
158
159 std::string as_string() const {
160 return std::string(data() ? data() : "", size());
161 }
162
163 void copy_to_string(std::string* target) const {
164 target->assign(m_ptr, m_length);

Callers 15

TESTFunction · 0.80
StringRemovePrefixFunction · 0.80
StringRemoveSuffixFunction · 0.80
UpperStringFunction · 0.80
LowerStringFunction · 0.80
ReplaceFirstFunction · 0.80
ReplaceAllFunction · 0.80
ReplaceAllCharsFunction · 0.80
StripStringFunction · 0.80
RemoveContinuousBlankFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64