blob: 4ba787fc174dcdd3f976a9ef38cdb4593e8ee32e [file] [log] [blame]
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include 'src/objects/js-segment-iterator-inl.h'
bitfield struct JSSegmentIteratorFlags extends uint31 {
granularity: JSSegmenterGranularity: 2 bit;
}
extern class JSSegmentIterator extends JSObject {
icu_break_iterator: Foreign; // Managed<icu::BreakIterator>
raw_string: String;
unicode_string: Foreign; // Managed<icu::UnicodeString>
flags: SmiTagged<JSSegmentIteratorFlags>;
}
@doNotGenerateCast
@hasSameInstanceTypeAsParent
extern class JSSegmentDataObject extends JSObject {
segment: String;
index: Number;
input: String;
}
@doNotGenerateCast
@hasSameInstanceTypeAsParent
extern class JSSegmentDataObjectWithIsWordLike extends JSSegmentDataObject {
is_word_like: Boolean;
}