11cb0ef41Sopenharmony_ci// Copyright 2020 the V8 project authors. All rights reserved.
21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci// found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci#include 'src/objects/js-segment-iterator.h'
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cibitfield struct JSSegmentIteratorFlags extends uint31 {
81cb0ef41Sopenharmony_ci  granularity: JSSegmenterGranularity: 2 bit;
91cb0ef41Sopenharmony_ci}
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciextern class JSSegmentIterator extends JSObject {
121cb0ef41Sopenharmony_ci  icu_break_iterator: Foreign;  // Managed<icu::BreakIterator>
131cb0ef41Sopenharmony_ci  unicode_string: Foreign;      // Managed<icu::UnicodeString>
141cb0ef41Sopenharmony_ci  flags: SmiTagged<JSSegmentIteratorFlags>;
151cb0ef41Sopenharmony_ci}
16