Skip to content

Commit

Permalink
Github Issue #210: Adding logic to fix this issue where any unicode c…
Browse files Browse the repository at this point in the history
…haracter with value of more than 65535 is stored using surrogate pairs, that is, two consecutive QChars. This throws off the QBitArray being used as mask.
  • Loading branch information
AngryFender committed Oct 24, 2024
1 parent 4f24a0f commit c76e716
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mktextdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ void MkTextDocument::identifyFormatData(QTextBlock &block)
}
}

void MkTextDocument::identifyUnicode(QString &line)
{

}

void MkTextDocument::insertHeadingData( const QString &text, int &index1, FormatData *formatData)
{
if(HEADING1_SYMBOL == text.left(HEADING1_SYMBOL_COUNT)){
Expand Down
1 change: 1 addition & 0 deletions mktextdocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public slots:

void resetAllLoc();
void identifyFormatData(QTextBlock &block);
void identifyUnicode(QString &line);
void insertHeadingData( const QString &text, int &index1, FormatData *formatData);
void insertFormatData(FormatLocation &loc, int &index1, int &index2, int &index3, FormatData *formatData, const QString &test);
void insertFormatCheckBoxData(FormatLocation &loc, int &index1, int &index2, int &index3, FormatData *formatData, const QString &test);
Expand Down

0 comments on commit c76e716

Please sign in to comment.