MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _append_modifier

Function _append_modifier

tools/python-3.11.9-amd64/Lib/locale.py:385–394  ·  view source on GitHub ↗
(code, modifier)

Source from the content-addressed store, hash-verified

383 return langname + '.' + encoding
384
385def _append_modifier(code, modifier):
386 if modifier == 'euro':
387 if '.' not in code:
388 return code + '.ISO8859-15'
389 _, _, encoding = code.partition('.')
390 if encoding in ('ISO8859-15', 'UTF-8'):
391 return code
392 if encoding == 'ISO8859-1':
393 return _replace_encoding(code, 'ISO8859-15')
394 return code + '@' + modifier
395
396def normalize(localename):
397

Callers 1

normalizeFunction · 0.85

Calls 2

_replace_encodingFunction · 0.85
partitionMethod · 0.80

Tested by

no test coverage detected