@@ 29,13 29,13 @@ public:
return _text.size() - _text_offset;
}
- wchar_t peek_char(int offset = 0) const
+ wchar_t peek_char(uint32_t offset = 0) const
{
assert(_text_offset + offset < _text.size());
return _text[_text_offset + offset];
}
- MaskType peek_mask(int offset = 0) const
+ MaskType peek_mask(uint32_t offset = 0) const
{
if (_text_offset + offset >= _text.size()) {
return std::ctype<wchar_t>::blank;
@@ 43,18 43,18 @@ public:
return _masks[_text_offset + offset];
}
- bool at_end(int offset = 0) const
+ bool at_end(uint32_t offset = 0) const
{
return _text_offset + offset >= _text.size();
}
- bool is_newline(int offset = 0) const
+ bool is_newline(uint32_t offset = 0) const
{
wchar_t c = peek_char(offset);
return c == 10 || c == 13;
}
- bool is_space(int offset = 0) const
+ bool is_space(uint32_t offset = 0) const
{
#if defined(_MSC_VER)
if (_text_offset + offset >= _masks.size()) {
@@ 71,7 71,7 @@ public:
#endif
}
- bool is_alpha(int offset = 0) const
+ bool is_alpha(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;
@@ 79,7 79,7 @@ public:
return (_masks[_text_offset + offset] & std::ctype<wchar_t>::alpha) != 0;
}
- bool is_alpha_numeric(int offset = 0) const
+ bool is_alpha_numeric(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;
@@ 87,7 87,7 @@ public:
return (_masks[_text_offset + offset] & std::ctype<wchar_t>::alnum) != 0;
}
- bool is_hex(int offset = 0) const
+ bool is_hex(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;
@@ 95,7 95,7 @@ public:
return (_masks[_text_offset + offset] & std::ctype<wchar_t>::xdigit) != 0;
}
- bool is_digit(int offset = 0) const
+ bool is_digit(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;
@@ 103,7 103,7 @@ public:
return (_masks[_text_offset + offset] & std::ctype<wchar_t>::digit) != 0;
}
- bool is_symbol_start(int offset = 0) const
+ bool is_symbol_start(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;
@@ 111,7 111,7 @@ public:
return is_alpha(offset) || _text[_text_offset + offset] == L'_';
}
- bool is_symbol_content(int offset = 0) const
+ bool is_symbol_content(uint32_t offset = 0) const
{
if (_text_offset + offset >= _masks.size()) {
return false;