(line, start, dir, byUnit)
| 7287 | } |
| 7288 | |
| 7289 | function moveLogically(line, start, dir, byUnit) { |
| 7290 | var target = start + dir; |
| 7291 | if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir; |
| 7292 | return target < 0 || target > line.text.length ? null : target; |
| 7293 | } |
| 7294 | |
| 7295 | // Bidirectional ordering algorithm |
| 7296 | // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm |
no test coverage detected