mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04: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
|
@ -25,11 +25,15 @@ public:
|
|||
|
||||
Utf16View segments_string() const { return m_segments_string.view(); }
|
||||
|
||||
Optional<Vector<size_t>>& boundaries_cache() const { return m_boundaries_cache; }
|
||||
|
||||
private:
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
Segmenter& m_segments_segmenter; // [[SegmentsSegmenter]]
|
||||
Utf16String m_segments_string; // [[SegmentsString]]
|
||||
|
||||
mutable Optional<Vector<size_t>> m_boundaries_cache;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue