CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
character_range.h
1
2#ifndef _aspose_system_drawing_character_range_h_
3#define _aspose_system_drawing_character_range_h_
4
5#include "fwd.h"
6#include "defines.h"
7
8namespace System { namespace Drawing {
9
13class ASPOSECPP_SHARED_CLASS CharacterRange
14{
15public:
19 ASPOSECPP_SHARED_API CharacterRange(int32_t first, int32_t length);
21 ASPOSECPP_SHARED_API CharacterRange();
22
24 ASPOSECPP_SHARED_API int32_t get_First() const;
27 ASPOSECPP_SHARED_API void set_First(int32_t first);
28
30 ASPOSECPP_SHARED_API int32_t get_Length() const;
33 ASPOSECPP_SHARED_API void set_Length(int32_t length);
34
38 ASPOSECPP_SHARED_API bool operator==(const CharacterRange& cr) const;
42 ASPOSECPP_SHARED_API bool operator!=(const CharacterRange& cr) const;
43
44private:
46 int32_t m_first;
48 int32_t m_length;
49};
50}}
51
52
53#endif
Represents a range of character positions in a string. This type should be allocated on stack and pas...
Definition: character_range.h:14
CharacterRange(int32_t first, int32_t length)
Constructs a new instance of CharacterRange class that represents the specified range.
void set_Length(int32_t length)
Returns the number of characters in the range represented by the current object.
CharacterRange()
Constructs a new instance of CharacterRange class that represents an empty range.
bool operator!=(const CharacterRange &cr) const
Determines if the current and specified objects represent distinct ranges.
int32_t get_Length() const
Returns the number of characters in the range represented by the current object.
void set_First(int32_t first)
Sets the position of the first character of the range represented by the current object.
bool operator==(const CharacterRange &cr) const
Determines if the current and specified objects represent the same range.
int32_t get_First() const
Returns the position of the first character of the range represented by the current object.
Definition: db_command.h:9