v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JSSegmenter Class Reference

#include <js-segmenter.h>

Inheritance diagram for v8::internal::JSSegmenter:
Collaboration diagram for v8::internal::JSSegmenter:

Public Types

enum class  Granularity { GRAPHEME , WORD , SENTENCE }
 

Public Member Functions

Handle< StringGranularityAsString (Isolate *isolate) const
 
void set_granularity (Granularity granularity)
 
Granularity granularity () const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSSegmenterNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
 
static V8_WARN_UNUSED_RESULT DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSSegmenter > segmenter_holder)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 
static Handle< StringGetGranularityString (Isolate *isolate, Granularity granularity)
 

Detailed Description

Definition at line 34 of file js-segmenter.h.

Member Enumeration Documentation

◆ Granularity

Enumerator
GRAPHEME 
WORD 
SENTENCE 

Definition at line 55 of file js-segmenter.h.

Member Function Documentation

◆ GetAvailableLocales()

const std::set< std::string > & v8::internal::JSSegmenter::GetAvailableLocales ( )
static

Definition at line 170 of file js-segmenter.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetGranularityString()

Handle< String > v8::internal::JSSegmenter::GetGranularityString ( Isolate * isolate,
Granularity granularity )
static

Definition at line 156 of file js-segmenter.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ granularity()

JSSegmenter::Granularity v8::internal::JSSegmenter::granularity ( ) const
inline

Definition at line 38 of file js-segmenter-inl.h.

Here is the caller graph for this function:

◆ GranularityAsString()

Handle< String > v8::internal::JSSegmenter::GranularityAsString ( Isolate * isolate) const

Definition at line 152 of file js-segmenter.cc.

Here is the call graph for this function:

◆ New()

MaybeDirectHandle< JSSegmenter > v8::internal::JSSegmenter::New ( Isolate * isolate,
DirectHandle< Map > map,
DirectHandle< Object > locales,
DirectHandle< Object > options )
static

Definition at line 27 of file js-segmenter.cc.

Here is the call graph for this function:

◆ ResolvedOptions()

DirectHandle< JSObject > v8::internal::JSSegmenter::ResolvedOptions ( Isolate * isolate,
DirectHandle< JSSegmenter > segmenter_holder )
static

Definition at line 125 of file js-segmenter.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_granularity()

void v8::internal::JSSegmenter::set_granularity ( Granularity granularity)
inline

The documentation for this class was generated from the following files: