MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_locale_name_all

Function check_locale_name_all

crates/stdlib/src/locale.rs:252–259  ·  view source on GitHub ↗
(locale: &str)

Source from the content-addressed store, hash-verified

250 /// Check locale names for LC_ALL (handles semicolon-separated locales)
251 #[cfg(windows)]
252 fn check_locale_name_all(locale: &str) -> bool {
253 for part in locale.split(';') {
254 if !check_locale_name(part) {
255 return false;
256 }
257 }
258 true
259 }
260
261 #[pyfunction]
262 fn setlocale(args: LocaleArgs, vm: &VirtualMachine) -> PyResult {

Callers 1

setlocaleFunction · 0.85

Calls 2

check_locale_nameFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected