stringByFoldingWithOptions method

NSString stringByFoldingWithOptions(
  1. int options, {
  2. NSLocale? locale,
})

stringByFoldingWithOptions:locale:

Implementation

NSString stringByFoldingWithOptions(int options, {NSLocale? locale}) {
  objc.checkOsVersionInternal(
    'NSString.stringByFoldingWithOptions:locale:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 5, 0)),
  );
  final $ret = _objc_msgSend_11cbyu0(
    object$.ref.pointer,
    _sel_stringByFoldingWithOptions_locale_,
    options,
    locale?.ref.pointer ?? ffi.nullptr,
  );
  return NSString.fromPointer($ret, retain: true, release: true);
}