Lines Matching refs:text_
29 : text_(nullptr), in Text()
52 if (text_ != nullptr) { in ~Text()
53 UIFree(text_); in ~Text()
54 text_ = nullptr; in ~Text()
95 if (text_ != nullptr) { in SetText()
96 if (strcmp(text, text_) == 0) { in SetText()
99 UIFree(text_); in SetText()
100 text_ = nullptr; in SetText()
102 text_ = static_cast<char*>(UIMalloc(textLen + 1)); in SetText()
103 if (text_ == nullptr) { in SetText()
106 if (strncpy_s(text_, textLen + 1, text, textLen) != EOK) { in SetText()
107 UIFree(text_); in SetText()
108 text_ = nullptr; in SetText()
211 …textSize_ = TypedText::GetTextSize(text_, fontId_, fontSize_, style.letterSpace_, style.lineHeight… in ReMeasureTextSize()
253 if ((text_ == nullptr) || (strlen(text_) == 0) || (fontSize_ == 0)) { in OnDraw()
281 … font->GetLineMaxHeight(text_, textLine_[0].lineBytes, fontId_, fontSize_, 0, spannableString_); in Draw()
297 &text_[lineBegin], textLine_[i].lineBytes, fontId_, fontSize_, in Draw()
317 0, opa, style, &text_[lineBegin], lineBytes, in Draw()
330 letterIndex = TypedText::GetUTF8CharacterSize(text_, lineBegin + lineBytes); in Draw()
369 while (j >= 0 && text_[lineBegin + j] == ' ') { in SetLineBytes()
413 if (text_ == nullptr) { in GetLine()
423 while ((begin < textLen) && (text_[begin] != '\0') && (lineNum < MAX_LINE_COUNT)) { in GetLine()
452 while ((begin < textLen) && (text_[begin] != '\0') && (lineNum < MAX_LINE_COUNT)) { in CalculateLineWithEllipsis()
468 return (text_ != nullptr) ? (strlen(text_)) : 0; in GetTextStrLen()
476 …uint16_t nextLineBytes = UIFontAdaptor::GetNextLineAndWidth(&text_[begin], fontId_, fontSize_, let… in GetTextLine()
520 UIFontAdaptor::GetNextLineAndWidth(text_, fontId_, fontSize_, style.letterSpace_, in GetLetterIndexByLinePosition()
535 int16_t textWidth = TypedText::GetTextWidth(text_, fontId_, fontSize_, GetTextStrLen(), in GetPosXByLetterIndex()
543 if (text_ == nullptr) { in GetLetterIndexByPosition()
560 uint32_t textLen = static_cast<uint32_t>(strlen(text_)); in GetLetterIndexByPosition()
563 while ((lineStart < textLen) && (text_[lineStart] != '\0')) { in GetLetterIndexByPosition()
565 …nextLineStart += UIFontAdaptor::GetNextLineAndWidth(&text_[lineStart], fontId_, fontSize_, style.l… in GetLetterIndexByPosition()
583 …UIFontAdaptor::GetNextLineAndWidth(&text_[lineStart], fontId_, fontSize_, style.letterSpace_, widt… in GetLetterIndexByPosition()
605 if (text_ != nullptr && spannableString_ == nullptr) { in SetAbsoluteSizeSpan()
667 …return TypedText::GetTextWidth(text_, GetFontId(), GetFontSize(), strlen(text_), style.letterSpace… in GetMetaTextWidth()