Skip to content

Commit

Permalink
Github Issue #184: Added missing definition from the previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryFender committed Jul 6, 2024
1 parent e807f38 commit 5ffc17a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions formatdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,26 @@ void FragmentData::setStatus(FormatSymbol status)
this->status = status;
}

void FormatData::addMaskBit(const int start,const QString &startSymbol,const int end,const QString &endSymbol)
{
int startLen = startSymbol.length();
int endLen = startSymbol.length();

for(int i = start; i < (startLen+start); ++i){
mask.setBit(i,true);
}

for(int j = end; j < (endLen+end); ++j){
mask.setBit(j,true);
}
}

void FormatData::addMaskBitForLinkContent(const int start, const int end, const QString &endSymbol)
{
int endLen = endSymbol.length();

for(int i = start; i < (endLen+end); ++i){
mask.setBit(i,true);
}
}

0 comments on commit 5ffc17a

Please sign in to comment.