(i *interpreter, index int)
| 90 | } |
| 91 | |
| 92 | func (s *valueFlatString) index(i *interpreter, index int) (value, error) { |
| 93 | if 0 <= index && index < s.length() { |
| 94 | return makeValueString(string(s.value[index])), nil |
| 95 | } |
| 96 | return nil, i.Error(fmt.Sprintf("Index %d out of bounds, not within [0, %v)", index, s.length())) |
| 97 | } |
| 98 | |
| 99 | func (s *valueFlatString) getRunes() []rune { |
| 100 | return s.value |
nothing calls this directly
no test coverage detected