MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getLineTextUtf8

Method getLineTextUtf8

src/eepp/ui/doc/textdocument.cpp:2082–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080}
2081
2082std::string TextDocument::getLineTextUtf8( Int64 line ) const {
2083 // eeASSERT( line < (Int64)linesCount() );
2084 Lock l( mLinesMutex );
2085 return line >= (Int64)mLines.size() ? std::string() : mLines[line].getText().toUtf8();
2086}
2087
2088void TextDocument::getLineTextToBufferUtf8( Int64 line, std::string& buffer ) const {
2089 // eeASSERT( line < (Int64)linesCount() );

Callers 3

LLMChatUIMethod · 0.80
getPropertyStringMethod · 0.80
tokenizeLineMethod · 0.80

Calls 3

toUtf8Method · 0.80
sizeMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected