| 237 | #endif // !FLATBUFFERS_LOCALE_INDEPENDENT |
| 238 | |
| 239 | std::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 | |
| 247 | bool SetGlobalTestLocale(const char *locale_name, std::string *_value) { |
| 248 | const auto the_locale = setlocale(LC_ALL, locale_name); |
nothing calls this directly
no test coverage detected