MCPcopy Create free account
hub / github.com/NativeScript/android / decompose_nfc

Function decompose_nfc

test-app/runtime/src/main/cpp/ada/ada.cpp:7880–7891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7878}
7879
7880void decompose_nfc(std::u32string& input) {
7881 /**
7882 * Decompose the domain_name string to Unicode Normalization Form C.
7883 * @see https://www.unicode.org/reports/tr46/#ProcessingStepDecompose
7884 */
7885 auto [decomposition_needed, additional_elements] =
7886 compute_decomposition_length(input);
7887 if (decomposition_needed) {
7888 decompose(input, additional_elements);
7889 }
7890 sort_marks(input);
7891}
7892
7893void compose(std::u32string& input) {
7894 /**

Callers 1

normalizeFunction · 0.85

Calls 3

decomposeFunction · 0.85
sort_marksFunction · 0.85

Tested by

no test coverage detected