MCPcopy Index your code
hub / github.com/formatjs/formatjs / segment

Method segment

packages/intl-segmenter/segmenter.ts:263–266  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

261 }
262
263 segment(input: string): SegmentIterator {
264 checkReceiver(this, 'segment')
265 return new SegmentIterator(this, input)
266 }
267
268 resolvedOptions(): SegmenterResolvedOptions {
269 checkReceiver(this, 'resolvedOptions')

Callers 7

hasEmojiFunction · 0.80
extractEmojisFunction · 0.80
runFunction · 0.80
word.test.tsFile · 0.80
sentence.test.tsFile · 0.80
isWordLike.test.tsFile · 0.80
grapheme.test.tsFile · 0.80

Calls 1

checkReceiverFunction · 0.70

Tested by

no test coverage detected