(line, start, dir, byUnit)
| 8707 | } |
| 8708 | |
| 8709 | function moveLogically(line, start, dir, byUnit) { |
| 8710 | var target = start + dir; |
| 8711 | if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir; |
| 8712 | return target < 0 || target > line.text.length ? null : target; |
| 8713 | } |
| 8714 | |
| 8715 | // Bidirectional ordering algorithm |
| 8716 | // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm |
no test coverage detected