MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / nfc_equal

Function nfc_equal

04-text-byte/normeq.py:34–35  ·  view source on GitHub ↗
(str1, str2)

Source from the content-addressed store, hash-verified

32from unicodedata import normalize
33
34def nfc_equal(str1, str2):
35 return normalize('NFC', str1) == normalize('NFC', str2)
36
37def fold_equal(str1, str2):
38 return (normalize('NFC', str1).casefold() ==

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected