Returns true if this format spec uses the locale-aware 'n' format type.
(&self)
| 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. |
no outgoing calls
no test coverage detected