MCPcopy
hub / github.com/csev/py4e / get

Function get

tools/pythonauto/static/codemirrorepl/codemirror.js:1717–1721  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

1715 lineObj = lineObj || getLine(cm.doc, pos.line);
1716 if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
1717 function get(ch, right) {
1718 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left");
1719 if (right) m.left = m.right; else m.right = m.left;
1720 return intoCoordSystem(cm, lineObj, m, context);
1721 }
1722 function getBidi(ch, partPos) {
1723 var part = order[partPos], right = part.level % 2;
1724 if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) {

Callers 2

getBidiFunction · 0.70
cursorCoordsFunction · 0.70

Calls 2

measureCharPreparedFunction · 0.85
intoCoordSystemFunction · 0.70

Tested by

no test coverage detected