MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsAvailableLocale

Function IsAvailableLocale

src/test/fuzz/locale.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool IsAvailableLocale(const std::string& locale_identifier)
28{
29 try {
30 (void)std::locale(locale_identifier);
31 } catch (const std::runtime_error&) {
32 return false;
33 }
34 return true;
35}
36} // namespace
37
38FUZZ_TARGET(locale)

Callers 1

FUZZ_TARGETFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected