Lines Matching refs:start

253 			// Find the end of the HEAD section, or the start of the BODY,
300 // Find the actual start of the URL
415 int32 start, end;
423 // start = view->OffsetAt(view->CurrentLine());
428 // if the text is not the start of a new line, go back
430 for (start = end; start > 0; start--) {
431 if (text[start - 1] == '\n')
438 if (!begin && start < end) {
443 diffMode = diff_mode(text[start]);
445 for (int32 i = start; i < end; i++) {
610 int32 start = 0;
620 fTextView->GetSelection(&start, &finish);
621 if (start != finish)
622 start = finish;
633 for (long i = start; i < count; i++) {
658 else if (start) {
659 start = 0;
696 int32 start, finish;
697 fTextView->GetSelection(&start, &finish);
698 fTextView->AddQuote(start, finish);
703 int32 start, finish;
704 fTextView->GetSelection(&start, &finish);
705 fTextView->RemoveQuote(start, finish);
723 int32 start, finish;
724 fTextView->GetSelection(&start, &finish);
891 int32 start;
927 GetSelection(&start, &end);
928 while (!IsInitialUTF8Byte(ByteAt(--start))) {
929 if (start < 0) {
930 start = 0;
934 if (start >= 0) {
935 Select(start, start);
946 GetSelection(&start, &end);
947 if (start != end)
950 for (end = start + 1; !IsInitialUTF8Byte(ByteAt(end)); end++) {
956 Select(start, end);
973 GetSelection(&start, &end);
974 Select(start - 1, start - 1);
981 GetSelection(&start, &end);
982 if (end > start)
983 start = end;
985 for (end = start + 1; !IsInitialUTF8Byte(ByteAt(end));
992 start = end;
994 Select(start, start);
1008 GetSelection(&start, &end);
1013 Select(start, start);
1021 GetSelection(&start, &end);
1022 if ((start != fLastPosition) && (fYankBuffer)) {
1026 fLastPosition = start;
1034 if (end < start)
1036 if (start == end)
1038 Select(start, end);
1041 strlen(fYankBuffer) + (end - start) + 1);
1048 GetText(start, end - start,
1051 fYankBuffer = (char *)malloc(end - start + 1);
1054 GetText(start, end - start, fYankBuffer);
1127 int32 start;
1154 GetSelection(&start, &end);
1188 Select(start, start + len);
1422 int32 offset, start, end, length;
1428 //Find start and end of word
1429 //FindSpellBoundry(length, offset, &start, &end);
1440 for (start = offset, c = text[start], isAlpha = isalpha(c), isApost = (c=='\'');
1441 (start >= 0) && (isAlpha || (isApost
1442 && (((c = text[start+1]) != 's') || !isCap) && isalpha(c)
1443 && isalpha(text[start-1])));
1444 start--, c = text[start], isAlpha = isalpha(c), isApost = (c == '\'')) {}
1445 start++;
1452 length = end - start;
1454 srcWord.SetTo(text + start, length);
1505 Select(start, start);
1506 Delete(start, end);
1507 Insert(start, menuItem->Label(), len);
1508 Select(start+len, start+len);
1514 int32 start, end;
1516 GetSelection(&start, &end);
1517 FindSpellBoundry(1, start, &start, &end);
1518 CheckSpelling(start, end);
1534 int32 start;
1537 GetSelection(&start, &finish);
1690 GetTextRegion(start, finish, &selectRegion);
1709 int32 start = OffsetAt(where);
1713 if ((start >= enclosure->text_start) && (start < enclosure->text_end)) {
2053 // do this before we start messing with the fonts
2710 int32 start, end;
2711 FindSpellBoundry(length, offset, &start, &end);
2713 DSPELL(printf("Offset %ld, start %ld, end %ld\n", offset, start, end));
2714 DSPELL(printf("\t\"%10.10s...\"\n", text + start));
2716 CheckSpelling(start, end);
2723 TTextView::DeleteText(int32 start, int32 finish)
2732 fUndoBuffer.AddUndo(&Text()[start], finish - start, start, K_DELETED, cursorPos);
2735 fInputMethodUndoBuffer.AddUndo(&Text()[start], finish - start, start,
2739 fUndoBuffer.AddUndo(&Text()[start], finish - start, start, K_DELETED, cursorPos);
2744 BTextView::DeleteText(start, finish);
2746 UpdateSpellMarks(start, start - finish);
2749 FindSpellBoundry(1, start, &s, &e);
2770 TTextView::CheckSpelling(int32 start, int32 end, int32 flags)
2775 int32 nextHighlight = start;
2783 for (next = text + start, endPtr = text + end; next <= endPtr; next++) {
2786 // Alpha signifies the start of a word
2790 //printf("Found word start\n");
2867 int32 start, end, textLength;
2871 for (start = offset - 1; start >= 0
2872 && (isalpha(text[start]) || text[start] == '\''); start--) {}
2874 start++;
2879 *_start = start;
2885 TTextView::FindSpellMark(int32 start, int32 end, spell_mark **_previousMark)
2890 if (spellMark->start < end && spellMark->end > start) {
2909 DSPELL(printf("\tfound: %ld - %ld\n", spellMark->start, spellMark->end));
2914 if (spellMark->start > offset)
2915 spellMark->start += length;
2919 DSPELL(printf("\t-> reset: %ld - %ld\n", spellMark->start, spellMark->end));
2925 TTextView::AddSpellMark(int32 start, int32 end)
2927 DSPELL(printf("AddSpellMark: start = %ld, end = %ld\n", start, end));
2930 spell_mark *spellMark = FindSpellMark(start, end);
2932 if (spellMark->start == start && spellMark->end == end) {
2938 RemoveSpellMark(start, end);
2945 spellMark->start = start;
2947 spellMark->style = RunArray(start, end);
2952 SetFontAndColor(start, end, &font, B_FONT_ALL, &kSpellTextColor);
2963 TTextView::RemoveSpellMark(int32 start, int32 end)
2965 DSPELL(printf("RemoveSpellMark: start = %ld, end = %ld\n", start, end));
2969 spell_mark *spellMark = FindSpellMark(start, end, &lastMark);
2975 DSPELL(printf("\tfound: %ld - %ld\n", spellMark->start, spellMark->end));
2983 if (spellMark->start < start)
2984 start = spellMark->start;
2989 SetRunArray(start, end, spellMark->style);
3007 SetRunArray(spellMark->start, spellMark->end, spellMark->style);
3028 int32 start, end;
3029 GetSelection(&start, &end);
3030 if (start != end)
3031 Select(start, start);
3035 if (start != end)
3036 Select(start, end);
3069 TTextView::AddQuote(int32 start, int32 finish)
3141 // redo the old selection (compute the new start if necessary)
3142 Select(start + quoteLength, finish + (targetLength - textLength));
3149 TTextView::RemoveQuote(int32 start, int32 finish)
3219 bool noSelection = start == finish;
3221 if (start > lineStart + quoteLength)
3222 start -= quoteLength;
3224 start = lineStart;
3227 finish = start;
3234 Select(start, finish);