MCPcopy Create free account
hub / github.com/Tencent/rapidjson / String

Method String

example/capitalize/capitalize.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 bool Double(double d) { return out_.Double(d); }
27 bool RawNumber(const char* str, SizeType length, bool copy) { return out_.RawNumber(str, length, copy); }
28 bool String(const char* str, SizeType length, bool) {
29 buffer_.clear();
30 for (SizeType i = 0; i < length; i++)
31 buffer_.push_back(static_cast<char>(std::toupper(str[i])));
32 return out_.String(&buffer_.front(), length, true); // true = output handler need to copy the string
33 }
34 bool StartObject() { return out_.StartObject(); }
35 bool Key(const char* str, SizeType length, bool copy) { return String(str, length, copy); }
36 bool EndObject(SizeType memberCount) { return out_.EndObject(memberCount); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected