LibJS: Implement the Intl.Segmenter FindBoundary AO

This commit is contained in:
Idan Horowitz 2022-01-30 20:39:26 +02:00
commit cea6c81c77
Notes: sideshowbarker 2024-07-17 19:54:53 +09:00
3 changed files with 82 additions and 0 deletions

View file

@ -36,4 +36,10 @@ private:
SegmenterGranularity m_segmenter_granularity { SegmenterGranularity::Grapheme }; // [[SegmenterGranularity]]
};
enum class Direction {
Before,
After,
};
double find_boundary(Segmenter const&, Utf16View const&, double start_index, Direction, Optional<Vector<size_t>>& boundaries_cache);
}