valueFlatString represents a string value, internally using a []rune for quick indexing.
| 84 | // valueFlatString represents a string value, internally using a []rune for quick |
| 85 | // indexing. |
| 86 | type valueFlatString struct { |
| 87 | valueBase |
| 88 | // We use rune slices instead of strings for quick indexing |
| 89 | value []rune |
| 90 | } |
| 91 | |
| 92 | func (s *valueFlatString) index(i *interpreter, index int) (value, error) { |
| 93 | if 0 <= index && index < s.length() { |
nothing calls this directly
no outgoing calls
no test coverage detected