normalize method
- String s
Normalize a string
Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
See the Rust documentation for normalize_utf8
for more information.
Implementation
String normalize(String s) {
final temp = _FinalizedArena();
final write = _Write();
_icu4x_ComposingNormalizer_normalize_mv1(_ffi, s._utf8AllocIn(temp.arena), write._ffi);
return write.finalize();
}