MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / RemoveStringQuotes

Function RemoveStringQuotes

native/thirdpart/flatbuffers/util.cpp:239–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237#endif // !FLATBUFFERS_LOCALE_INDEPENDENT
238
239std::string RemoveStringQuotes(const std::string &s) {
240 auto ch = *s.c_str();
241 return ((s.size() >= 2) && (ch == '\"' || ch == '\'') &&
242 (ch == string_back(s)))
243 ? s.substr(1, s.length() - 2)
244 : s;
245}
246
247bool SetGlobalTestLocale(const char *locale_name, std::string *_value) {
248 const auto the_locale = setlocale(LC_ALL, locale_name);

Callers

nothing calls this directly

Calls 4

string_backFunction · 0.85
lengthMethod · 0.80
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected