# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie # SPDX-License-Identifier: MIT """String handling shared by the index writer and the normalizer.""" def fold_case(value: str) -> str: """Unicode default case folding, as winget's `Utility::FoldCase` does with ICU. `str.casefold` is the same full default folding (ß becomes ss, and so on) that `ucasemap_utf8FoldCase` performs with `U_FOLD_CASE_DEFAULT`. """ return value.casefold()