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

Method has_locale_format

crates/common/src/format.rs:477–479  ·  view source on GitHub ↗

Returns true if this format spec uses the locale-aware 'n' format type.

(&self)

Source from the content-addressed store, hash-verified

475
476 /// Returns true if this format spec uses the locale-aware 'n' format type.
477 pub fn has_locale_format(&self) -> bool {
478 matches!(self.format_type, Some(FormatType::Number(Case::Lower)))
479 }
480
481 /// Insert locale-aware thousands separators into an integer string.
482 /// Follows CPython's GroupGenerator logic for variable-width grouping.

Callers 3

__format__Method · 0.80
__format__Method · 0.80
__format__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected