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

Class ClassicLocale

native/thirdpart/flatbuffers/util.h:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217// Use locale independent functions {strtod_l, strtof_l, strtoll_l, strtoull_l}.
218#if defined(FLATBUFFERS_LOCALE_INDEPENDENT) && (FLATBUFFERS_LOCALE_INDEPENDENT > 0)
219 class ClassicLocale {
220 #ifdef _MSC_VER
221 typedef _locale_t locale_type;
222 #else
223 typedef locale_t locale_type; // POSIX.1-2008 locale_t type
224 #endif
225 ClassicLocale();
226 ~ClassicLocale();
227 locale_type locale_;
228 static ClassicLocale instance_;
229 public:
230 static locale_type Get() { return instance_.locale_; }
231 };
232
233 #ifdef _MSC_VER
234 #define __strtoull_impl(s, pe, b) _strtoui64_l(s, pe, b, ClassicLocale::Get())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected