addStringCaseClosureTo method

bool addStringCaseClosureTo(
  1. String s,
  2. CodePointSetBuilder builder
)

Finds all characters and strings which may casemap to s as their full case folding string and adds them to the set.

Returns true if the string was found

See the Rust documentation for add_string_case_closure_to for more information.

Implementation

bool addStringCaseClosureTo(String s, CodePointSetBuilder builder) {
  final temp = _FinalizedArena();
  final result = _icu4x_CaseMapCloser_add_string_case_closure_to_mv1(_ffi, s._utf8AllocIn(temp.arena), builder._ffi);
  return result;
}