(str, i)
| 48 | } |
| 49 | |
| 50 | function charLengthAt(str, i) { |
| 51 | if (str.length <= i) { |
| 52 | // Pretend to move to the right. This is necessary to autocomplete while |
| 53 | // moving to the right. |
| 54 | return 1; |
| 55 | } |
| 56 | return StringPrototypeCodePointAt(str, i) >= kUTF16SurrogateThreshold ? 2 : 1; |
| 57 | } |
| 58 | |
| 59 | /* |
| 60 | Some patterns seen in terminal key escape codes, derived from combos seen |
no outgoing calls
no test coverage detected
searching dependent graphs…