MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / get_plain_text

Method get_plain_text

src/RichText/TextBox.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::string TextData::get_plain_text() const {
93 if(paragraphs.empty())
94 return "";
95 std::string toRet;
96 for(auto& p : paragraphs) {
97 toRet += p.text;
98 toRet += '\n';
99 }
100 toRet.pop_back();
101 return toRet;
102}
103
104bool TextPosition::operator<(const TextPosition& o) const {
105 return (this->fParagraphIndex < o.fParagraphIndex) || (this->fParagraphIndex == o.fParagraphIndex && this->fTextByteIndex < o.fTextByteIndex);

Callers 1

process_text_pasteMethod · 0.80

Calls 2

emptyMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected