MCPcopy
hub / github.com/DHTMLX/gantt / cmp

Function cmp

samples/common/codehighlight/codemirror.js:986–986  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

984 // Compare two positions, return 0 if they are the same, a negative
985 // number when a is less, and a positive number otherwise.
986 function cmp(a, b) { return a.line - b.line || a.ch - b.ch }
987
988 function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }
989

Callers 15

equalCursorPosFunction · 0.85
maxPosFunction · 0.85
minPosFunction · 0.85
stretchSpansOverChangeFunction · 0.85
removeReadOnlyRangesFunction · 0.85
compareCollapsedMarkersFunction · 0.85
codemirror.jsFile · 0.85
normalizeSelectionFunction · 0.85
adjustForChangeFunction · 0.85
computeReplacedSelFunction · 0.85
addChangeToHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected