Lines Matching defs:index2

366     TkTextIndex index1, index2;
410 argv[0], " compare index1 op index2\"", (char *) NULL);
415 || (TkTextGetIndex(interp, textPtr, argv[4], &index2)
420 relation = TkTextIndexCmp(&index1, &index2);
482 argv[0], " delete index1 ?index2?\"", (char *) NULL);
512 argv[0], " get index1 ?index2?\"", (char *) NULL);
521 index2 = index1;
522 TkTextIndexForwChars(&index2, 1, &index2);
523 } else if (TkTextGetIndex(interp, textPtr, argv[3], &index2)
528 if (TkTextIndexCmp(&index1, &index2) >= 0) {
537 if (index1.linePtr == index2.linePtr) {
540 if (index2.charIndex == index1.charIndex) {
543 last2 = index2.charIndex - index1.charIndex + offset;
594 &index2);
598 TkBTreeTag(&index1, &index2, oldTagArrayPtr[i], 0);
608 TkBTreeTag(&index1, &index2,
612 index1 = index2;
944 TkTextIndex index, index2;
983 TkTextIndexForwChars(&index, 1, &index2);
984 TkTextChanged(textPtr, &index, &index2);
1135 TkTextIndex index1, index2;
1146 if (TkTextGetIndex(textPtr->interp, textPtr, index2String, &index2)
1151 index2 = index1;
1152 TkTextIndexForwChars(&index2, 1, &index2);
1159 if (TkTextIndexCmp(&index1, &index2) >= 0) {
1176 line2 = TkBTreeLineIndex(index2.linePtr);
1182 oldIndex2 = index2;
1183 TkTextIndexBackChars(&oldIndex2, 1, &index2);
1189 arrayPtr = TkBTreeGetTags(&index2, &arraySize);
1192 TkBTreeTag(&index2, &oldIndex2, arrayPtr[i], 0);
1207 TkTextChanged(textPtr, &index1, &index2);
1209 if (TkTextIndexCmp(&index2, &textPtr->topIndex) >= 0) {
1229 } else if (index2.linePtr == textPtr->topIndex.linePtr) {
1239 if (index1.linePtr != index2.linePtr) {
1240 charIndex -= index2.charIndex;
1242 charIndex -= (index2.charIndex - index1.charIndex);
1245 TkBTreeDeleteChars(&index1, &index2);
1463 TkTextIndex index, index2;
1478 TkTextIndexForwChars(&index, 1, &index2);
1479 TkTextChanged(textPtr, &index, &index2);
1987 TkTextIndex index1, index2;
2019 Tcl_AppendResult(interp, "Usage: ", argv[0], " dump ?-all -text -mark -tag -window? ?-command script? index ?index2?", NULL);
2024 Tcl_AppendResult(interp, "Usage: ", argv[0], " dump ?-all -text -mark -tag -window? ?-command script? index ?index2?", NULL);
2029 Tcl_AppendResult(interp, "Usage: ", argv[0], " dump ?-all -text -mark -tag -window? ?-command script? index ?index2?", NULL);
2042 TkTextIndexForwChars(&index1, 1, &index2);
2044 if (TkTextGetIndex(interp, textPtr, argv[arg], &index2) != TCL_OK) {
2051 if (TkTextIndexCmp(&index1, &index2) >= 0) {
2054 if (index1.linePtr == index2.linePtr) {
2056 index1.charIndex, index2.charIndex, lineno, command);
2063 if (linePtr == index2.linePtr) {
2069 DumpLine(interp, textPtr, what, index2.linePtr, 0,
2070 index2.charIndex, lineno, command);
2076 DumpLine(interp, textPtr, what & ~TK_DUMP_TEXT, index2.linePtr,