Lines Matching refs:text

335 CopyQuotes(const char *text, size_t length, char *outText, size_t &outLength)
342 if (text[i] == quote[0])
344 else if (text[i] != ' ' && text[i] != '\t')
388 specified text.
421 // the following line works only reliable when text wrapping is set to
425 const char *text = view->Text();
428 // if the text is not the start of a new line, go back
431 if (text[start - 1] == '\n')
440 // if there was no text in this line, there may come
443 diffMode = diff_mode(text[start]);
446 if (is_quote_char(text[i]))
448 else if (text[i] != ' ' && text[i] != '\t') {
465 // set styles for all qoute levels in the text to be inserted
618 const char *text = fTextView->Text();
623 if (!count || text == NULL)
634 if (text[i] == lc || text[i] == uc) {
636 const char *t = text + i;
649 // Select the text if it worked
660 text = fTextView->Text();
740 const char *text = fTextView->Text();
745 if (length && text[length - 1] == '\n')
861 // update the text run array safely with new font
1019 if (mods & B_CONTROL_KEY) { // ^k kill text from cursor to e-o-line
1072 case 0x19: // ^y yank text
1141 if (!strncasecmp(type, "text/", 5) && size > 0) {
1143 char *text = (char *)malloc(size);
1144 if (text == NULL) {
1148 if (file.Read(text, size) < B_OK) {
1150 free(text);
1161 if (text[loop] == '\n') {
1162 Insert(&text[offset], loop - offset + 1);
1164 } else if (text[loop] == '\r') {
1165 text[loop] = '\n';
1166 Insert(&text[offset], loop - offset + 1);
1168 && (text[loop + 1] == '\n'))
1173 free(text);
1298 } else if (strcasecmp(replyType, "text/plain") == 0) {
1299 // create a plain text file, stuff it with
1300 // the url as text
1346 } else if (!strcasecmp(replyType, "text/plain")) {
1347 // create a plain text file, stuff it with the
1348 // email as text
1423 const char *text = Text();
1425 if (isalpha(text[offset])) {
1436 (first >= 0) && (((c = text[first]) == '\'') || isalpha(c));
1438 isCap = isupper(text[++first]);
1440 for (start = offset, c = text[start], isAlpha = isalpha(c), isApost = (c=='\'');
1442 && (((c = text[start+1]) != 's') || !isCap) && isalpha(c)
1443 && isalpha(text[start-1])));
1444 start--, c = text[start], isAlpha = isalpha(c), isApost = (c == '\'')) {}
1447 for (end = offset, c = text[end], isAlpha = isalpha(c), isApost = (c == '\'');
1449 && (((c = text[end + 1]) != 's') || !isCap) && isalpha(c)));
1450 end++, c = text[end], isAlpha = isalpha(c), isApost = (c == '\'')) {}
1454 srcWord.SetTo(text + start, length);
1617 clip->AddData("text/plain", B_MIME_TYPE,
1655 dragMessage.AddString("be:filetypes", "text/plain");
1669 dragMessage.AddString("be:filetypes", "text/plain");
1755 TTextView::LoadMessage(BEmailMessage *mail, bool quoteIt, const char *text)
1765 if (text)
1766 Insert(text, strlen(text));
1770 text != NULL, true,
1939 strcpy(type, "text/x-email");
1941 strcpy(type, "text/plain");
2032 const char *text = Text();
2041 // Just add the text as a whole if we can, or ...
2043 body->AppendText(text);
2050 char *saveText = strdup(text);
2073 numberOfCharacters = BString(text).CountChars();
2077 be_fixed_font->GetHasGlyphs(text, numberOfCharacters, boolArray);
2084 fFont.GetHasGlyphs(text, numberOfCharacters, boolArray);
2098 // calculate a text rect that is 72 columns wide
2112 BString textStr(text);
2113 FindURL(text, 0, nextUrlAt, nextUrlLength, NULL);
2130 for (; text[pos]; pos++) {
2131 if (isalnum(text[pos]) || isspace(text[pos]))
2134 if (text[pos] && isspace(text[pos]) && text[pos] != '\n')
2141 // URL to make sure the rest of the text is properly wrapped
2144 if (text[pos] == '\n')
2150 CopyQuotes(text + startOffset, lineLength, buffer + strlen(buffer), quoteLength);
2154 text = Text();
2157 textStr = BString(text);
2158 FindURL(text, endOffset, nextUrlAt, nextUrlLength, NULL);
2160 if (text[endOffset - 1] != ' '
2161 && text[endOffset - 1] != '\n'
2162 && text[endOffset] == ' ') {
2169 memcpy(content + contentLength, text + startOffset, lineLength);
2174 if ((text[endOffset - 1] != '\n') && (i < numLines - 1)) {
2179 CopyQuotes(text + startOffset, lineLength, content + contentLength, quoteLength);
2189 // reset the text rect and font
2314 // const char *text;
2315 // if (body && (text = body->Text()) != NULL)
2316 // Insert(text, strlen(text), false);
2520 if (body->MIMEType(&type) == B_OK && type == "text/html") {
2526 // TODO: is it correct to assume that the text is in Latin-1?
2549 body = NULL; // to add the HTML text as enclosure
2701 const char *text = Text();
2704 || isalpha(text[offset + 1])
2705 || (!isalpha(text[offset]) && text[offset] != '\'')
2714 DSPELL(printf("\t\"%10.10s...\"\n", text + start));
2772 const char *text = Text();
2783 for (next = text + start, endPtr = text + end; next <= endPtr; next++) {
2821 wordOffset = word - text;
2868 const char *text = Text();
2872 && (isalpha(text[start]) || text[start] == '\''); start--) {}
2877 && (isalpha(text[end]) || text[end] == '\''); end++) {}
2988 // reset old text run array
3006 // reset old text run array
3081 const char *text = Text();
3082 while (text[lineEnd] && text[lineEnd] != '\n')
3088 char *text = (char *)malloc(textLength + 1);
3089 if (text == NULL)
3092 GetText(lineStart, textLength, text);
3100 if (text[index] == '\n' || index == textLength - 1) {
3108 free(text);
3118 memcpy(&target[targetLength], &text[lastLine], lineLength);
3125 // replace with quoted text
3126 free(text);
3160 const char *text = Text();
3161 while (text[lineEnd] && text[lineEnd] != '\n')
3173 text += lineStart;
3178 while (index + lineLength < length && text[lineLength] != '\n')
3182 if (text[lineLength] == '\n' && index + lineLength + 1 < length)
3185 if (!strncmp(text, QUOTE, quoteLength)) {
3191 text += quoteLength;
3199 memcpy(&target[index], text, lineLength);
3201 text += lineLength;
3280 char *text;
3283 status = fUndoBuffer.Undo(&text, &length, &offset, &history, &cursorPos);
3294 BTextView::Insert(offset, text, length);
3300 status = fUndoBuffer.Undo(&text, &length, &offset, &history, &cursorPos);
3302 BTextView::Insert(offset, text, length);
3329 char *text;
3333 status = fUndoBuffer.Redo(&text, &length, &offset, &history, &cursorPos, &replaced);
3339 BTextView::Insert(offset, text, length);
3346 fUndoBuffer.Redo(&text, &length, &offset, &history, &cursorPos, &replaced);
3347 BTextView::Insert(offset, text, length);