[JSC] Add Intl.NumberFormat.formatRangeToParts
Created attachment 445234 [details] Patch
Created attachment 445248 [details] Patch
Created attachment 445249 [details] Patch
Comment on attachment 445249 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445249&action=review r=me, very nice. > Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:1511 > + auto partValue = jsSubstring(vm, formatted, field.m_range.begin(), field.m_range.end() - field.m_range.begin()); Wonder if we should add a method to WTF::Range for this?
Comment on attachment 445249 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445249&action=review >> Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:1511 >> + auto partValue = jsSubstring(vm, formatted, field.m_range.begin(), field.m_range.end() - field.m_range.begin()); > > Wonder if we should add a method to WTF::Range for this? Added Range::distance method, which is aligned to STL's naming (begin, end, distance).
Committed r286255 (244618@main): <https://commits.webkit.org/244618@main>
<rdar://problem/85829885>