MCPcopy Index your code
hub / github.com/dop251/goja / String

Interface String

string.go:57–73  ·  view source on GitHub ↗

String represents an ECMAScript string Value. Its internal representation depends on the contents of the string, but in any case it is capable of holding any UTF-16 string, either valid or invalid. Instances of this type, as any other primitive values, are goroutine-safe and can be passed between ru

Source from the content-addressed store, hash-verified

55// Instances of this type, as any other primitive values, are goroutine-safe and can be passed between runtimes.
56// Strings can be created using Runtime.ToValue(goString) or StringFromUTF16.
57type String interface {
58 Value
59 CharAt(int) uint16
60 Length() int
61 Concat(String) String
62 Substring(start, end int) String
63 CompareTo(String) int
64 Reader() io.RuneReader
65 utf16Reader() utf16Reader
66 utf16RuneReader() io.RuneReader
67 utf16Runes() []rune
68 index(String, int) int
69 lastIndex(String, int) int
70 toLower() String
71 toUpper() String
72 toTrimmedUTF8() string
73}
74
75type stringIterObject struct {
76 baseObject

Callers 70

CharAtMethod · 0.65
WriteSubstringMethod · 0.65
TestStringFromUTF16Function · 0.65
advanceStringIndexFunction · 0.65
advanceStringIndex64Function · 0.65
writeSubstitutionFunction · 0.65
_stringPadMethod · 0.95
writeErrorStringFunction · 0.95
LengthMethod · 0.65
WriteStringMethod · 0.65

Implementers 1

importedStringstring_imported.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…