#ifndef V8_INTL_SUPPORT
#error Internationalization is expected to be enabled.
#endif
#include "src/objects/js-segments.h"
#include <map>
#include <memory>
#include <string>
#include "src/execution/isolate.h"
#include "src/heap/factory.h"
#include "src/objects/intl-objects.h"
#include "src/objects/js-segment-iterator-inl.h"
#include "src/objects/js-segmenter-inl.h"
#include "src/objects/js-segments-inl.h"
#include "src/objects/managed-inl.h"
#include "src/objects/objects-inl.h"
#include "unicode/brkiter.h"
namespace v8 {
namespace internal {
MaybeHandle<JSSegments> JSSegments::Create(Isolate* isolate,
DirectHandle<JSSegmenter> segmenter,
Handle<String> string) { … }
MaybeHandle<Object> JSSegments::Containing(Isolate* isolate,
DirectHandle<JSSegments> segments,
double n_double) { … }
namespace {
bool CurrentSegmentIsWordLike(icu::BreakIterator* break_iterator) { … }
}
MaybeHandle<JSSegmentDataObject> JSSegments::CreateSegmentDataObject(
Isolate* isolate, JSSegmenter::Granularity granularity,
icu::BreakIterator* break_iterator, DirectHandle<String> input_string,
const icu::UnicodeString& unicode_string, int32_t start_index,
int32_t end_index) { … }
Handle<String> JSSegments::GranularityAsString(Isolate* isolate) const { … }
}
}