MCPcopy Create free account
hub / github.com/microsoft/SandDance / getLeftFormatIndex

Function getLeftFormatIndex

docs/app/js/sanddance-app.js:50892–50897  ·  view source on GitHub ↗
(maskCharData, index)

Source from the content-addressed store, hash-verified

50890 return maskCharData[maskCharData.length - 1].displayIndex;
50891}
50892function getLeftFormatIndex(maskCharData, index) {
50893 for(var i = maskCharData.length - 1; i >= 0; i--){
50894 if (maskCharData[i].displayIndex < index) return maskCharData[i].displayIndex;
50895 }
50896 return maskCharData[0].displayIndex;
50897}
50898function clearRange(maskCharData, selectionStart, selectionCount) {
50899 for(var i = 0; i < maskCharData.length; i++)if (maskCharData[i].displayIndex >= selectionStart) {
50900 if (maskCharData[i].displayIndex >= selectionStart + selectionCount) break;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected