![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <js-segmenter.h>
Public Types | |
| enum class | Granularity { GRAPHEME , WORD , SENTENCE } |
Public Member Functions | |
| Handle< String > | GranularityAsString (Isolate *isolate) const |
| void | set_granularity (Granularity granularity) |
| Granularity | granularity () const |
Static Public Member Functions | |
| static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSSegmenter > | New (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options) |
| static V8_WARN_UNUSED_RESULT DirectHandle< JSObject > | ResolvedOptions (Isolate *isolate, DirectHandle< JSSegmenter > segmenter_holder) |
| static V8_EXPORT_PRIVATE const std::set< std::string > & | GetAvailableLocales () |
| static Handle< String > | GetGranularityString (Isolate *isolate, Granularity granularity) |
Definition at line 34 of file js-segmenter.h.
|
strong |
| Enumerator | |
|---|---|
| GRAPHEME | |
| WORD | |
| SENTENCE | |
Definition at line 55 of file js-segmenter.h.
|
static |
Definition at line 170 of file js-segmenter.cc.
|
static |
Definition at line 156 of file js-segmenter.cc.
|
inline |
|
static |
|
static |
Definition at line 125 of file js-segmenter.cc.
|
inline |