master
getCursorPosition
export function getCursorPosition(format, value, index, isAdd=false, isSub=false) {