1 package com.android.healthconnect.controller.utils
2 
3 import java.text.Normalizer
4 import java.util.Locale
5 
6 /** Utility string normalizer. */
7 object NormalizeUtf8 {
8     /** Normalizes via `Form.NFKC` and to lowercase. */
normalizeForMatchnull9     fun normalizeForMatch(input: CharSequence?): String {
10         return Normalizer.normalize(input, Normalizer.Form.NFKC).lowercase(Locale.getDefault())
11     }
12 }
13