mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibJS: Implement the Intl.Segmenter FindBoundary AO
This commit is contained in:
parent
b1d19b5917
commit
cea6c81c77
3 changed files with 82 additions and 0 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue