mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 05:48:25 +08:00
38 lines
638 B
C++
38 lines
638 B
C++
#pragma once
|
|
|
|
namespace DocFileFormat
|
|
{
|
|
class CharacterRange
|
|
{
|
|
private:
|
|
int CharacterPosition;
|
|
int CharacterCount;
|
|
|
|
public:
|
|
CharacterRange():
|
|
CharacterPosition(0), CharacterCount(0)
|
|
{
|
|
}
|
|
|
|
CharacterRange( int cp, int ccp ):
|
|
CharacterPosition(0), CharacterCount(0)
|
|
{
|
|
this->CharacterPosition = cp;
|
|
this->CharacterCount = ccp;
|
|
}
|
|
|
|
~CharacterRange()
|
|
{
|
|
}
|
|
|
|
int GetCharacterPosition() const
|
|
{
|
|
return this->CharacterPosition;
|
|
}
|
|
|
|
int GetCharacterCount() const
|
|
{
|
|
return this->CharacterCount;
|
|
}
|
|
};
|
|
} |