MCPcopy Create free account
hub / github.com/apache/arrow / GetLocale

Function GetLocale

cpp/src/arrow/compute/kernels/temporal_internal.h:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static inline Result<std::locale> GetLocale(const std::string& locale) {
108 try {
109 return std::locale(locale.c_str());
110 } catch (const std::runtime_error& ex) {
111 return Status::Invalid("Cannot find locale '", locale, "': ", ex.what());
112 }
113}
114
115struct NonZonedLocalizer {
116 using days_t = sys_days;

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected