Lines Matching defs:Text
77 parseTextOutsideMarkup(takeTo(Line, Element->Text.begin()));
79 advanceTo(Line, Element->Text.end());
124 Element.Text = Line.slice(BeginPos, EndPos);
128 StringRef Content = Element.Text.drop_front(3).drop_back(3);
144 static MarkupNode textNode(StringRef Text) {
146 Node.Text = Text;
153 void MarkupParser::parseTextOutsideMarkup(StringRef Text) {
154 if (Text.empty())
157 while (SGRSyntax.match(Text, &Matches)) {
159 if (Matches.begin()->begin() != Text.begin())
160 Buffer.push_back(textNode(takeTo(Text, Matches.begin()->begin())));
163 advanceTo(Text, Matches.begin()->end());
165 if (!Text.empty())
166 Buffer.push_back(textNode(Text));