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
| 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. |
| 57 | type 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 | |
| 75 | type stringIterObject struct { |
| 76 | baseObject |
no outgoing calls
no test coverage detected
searching dependent graphs…