compare method
Compare two strings.
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 compare_utf16
for more information.
Implementation
int compare(String left, String right) {
final temp = _FinalizedArena();
final result = _icu4x_Collator_compare_utf16_mv1(_ffi, left._utf16AllocIn(temp.arena), right._utf16AllocIn(temp.arena));
return result;
}