MCPcopy
hub / github.com/pocketbase/pocketbase / NewFromString

Function NewFromString

tools/tokenizer/tokenizer.go:27–29  ·  view source on GitHub ↗

NewFromString creates new Tokenizer from the provided string.

(str string)

Source from the content-addressed store, hash-verified

25
26// NewFromString creates new Tokenizer from the provided string.
27func NewFromString(str string) *Tokenizer {
28 return New(strings.NewReader(str))
29}
30
31// NewFromBytes creates new Tokenizer from the provided bytes slice.
32func NewFromBytes(b []byte) *Tokenizer {

Callers 10

initModiferFunction · 0.92
parseFieldsFunction · 0.92
ParseIndexFunction · 0.92
normalizeViewSelectQueryFunction · 0.92
parseMethod · 0.92
extractIdentifiersFunction · 0.92
TestFactoriesFunction · 0.85
TestScanFunction · 0.85
TestScanAllFunction · 0.85
TestTrimCutsetFunction · 0.85

Calls 2

NewReaderMethod · 0.80
NewFunction · 0.70

Tested by 4

TestFactoriesFunction · 0.68
TestScanFunction · 0.68
TestScanAllFunction · 0.68
TestTrimCutsetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…