Added utf8cpp as a auxiliary helper library.

Added UITooltip::getTooltipPosition.
Fixes in System::Process.
UICodeEditor: Performance improvements in minimap rendering.
ecode: AutoCompleteModule fixes. Added coloring to tooltips from the LSP Client. LSP Client Server parsing improvements.
This commit is contained in:
Martín Lucas Golini
2022-12-24 11:54:21 -03:00
parent 587d552940
commit c61abf37bf
23 changed files with 1379 additions and 61 deletions

View File

@@ -29,7 +29,7 @@ static String textLine( const std::string& fileText, const size_t& fromPos, size
nlStartPtr++;
while ( ++endPtr && *endPtr != '\0' && *endPtr != '\n' ) {
}
relCol = String::utf8StringLength(
relCol = String::utf8Length(
fileText.substr( nlStartPtr - stringStartPtr, startPtr - nlStartPtr ) );
// if the line to substract is massive we only get the fist kilobyte of that line, since the
// line is only shared for visual aid.
@@ -68,7 +68,7 @@ searchInFileHorspool( const std::string& file, const std::string& text, const bo
res.push_back(
{ str,
{ { (Int64)totNl, (Int64)relCol },
{ (Int64)totNl, (Int64)( relCol + String::utf8StringLength( text ) ) } },
{ (Int64)totNl, (Int64)( relCol + String::utf8Length( text ) ) } },
searchRes,
static_cast<Int64>( searchRes + text.size() ) } );
lSearchRes = searchRes;