Lines Matching refs:dstPtr
594 * *dstPtr is modified to refer to the character "count" characters
606 TkTextIndexForwChars(srcPtr, count, dstPtr)
610 TkTextIndex *dstPtr; /* Destination index: gets modified. */
617 TkTextIndexBackChars(srcPtr, -count, dstPtr);
621 *dstPtr = *srcPtr;
622 dstPtr->charIndex += count;
629 for (segPtr = dstPtr->linePtr->segPtr; segPtr != NULL;
639 if (dstPtr->charIndex < lineLength) {
642 dstPtr->charIndex -= lineLength;
643 linePtr = TkBTreeNextLine(dstPtr->linePtr);
645 dstPtr->charIndex = lineLength - 1;
648 dstPtr->linePtr = linePtr;
663 * *dstPtr is modified to refer to the character "count" characters
674 TkTextIndexBackChars(srcPtr, count, dstPtr)
678 TkTextIndex *dstPtr; /* Destination index: gets modified. */
684 TkTextIndexForwChars(srcPtr, -count, dstPtr);
688 *dstPtr = *srcPtr;
689 dstPtr->charIndex -= count;
691 while (dstPtr->charIndex < 0) {
698 lineIndex = TkBTreeLineIndex(dstPtr->linePtr);
701 dstPtr->charIndex = 0;
705 dstPtr->linePtr = TkBTreeFindLine(dstPtr->tree, lineIndex);
708 * Compute the length of the line and add that to dstPtr->charIndex.
711 for (segPtr = dstPtr->linePtr->segPtr; segPtr != NULL;
713 dstPtr->charIndex += segPtr->size;