Returns the substring of `s` within the given character range.
(s: &str, start: usize, end: usize)
| 90 | |
| 91 | /// Returns the substring of `s` within the given character range. |
| 92 | fn slice_by_char_range(s: &str, start: usize, end: usize) -> &str { |
| 93 | let start = char_index_to_byte_index(s, start); |
| 94 | let end = char_index_to_byte_index(s, end); |
| 95 | &s[start..end] |
| 96 | } |
| 97 | |
| 98 | /// Parses the numeric prefix in `s` according to BASIC's `VAL` rules. |
| 99 | fn parse_numeric_prefix(s: &str) -> f64 { |
no test coverage detected