MCPcopy Index your code
hub / github.com/csev/py4e / moveLogically

Function moveLogically

tools/pythonauto/static/codemirror/codemirror.js:5921–5925  ·  view source on GitHub ↗
(line, start, dir, byUnit)

Source from the content-addressed store, hash-verified

5919 }
5920
5921 function moveLogically(line, start, dir, byUnit) {
5922 var target = start + dir;
5923 if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir;
5924 return target < 0 || target > line.text.length ? null : target;
5925 }
5926
5927 // Bidirectional ordering algorithm
5928 // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm

Callers 1

moveVisuallyFunction · 0.70

Calls 1

isExtendingCharFunction · 0.70

Tested by

no test coverage detected