1
Fork 0
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:
Idan Horowitz 2022-01-30 20:39:26 +02:00
parent b1d19b5917
commit cea6c81c77
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);
}