diff options
author | crupest <crupest@outlook.com> | 2022-01-12 02:30:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-12 02:30:25 +0800 |
commit | 882d843083895f4905571dc273e801ee18fd5984 (patch) | |
tree | 163890b8ccb64b8eff28af558ac803affe392488 /include/cru/common/StringUtil.hpp | |
parent | 01f98ce88950cdb729f5db58bf26f2fffa1c326c (diff) | |
download | cru-882d843083895f4905571dc273e801ee18fd5984.tar.gz cru-882d843083895f4905571dc273e801ee18fd5984.tar.bz2 cru-882d843083895f4905571dc273e801ee18fd5984.zip |
...
Diffstat (limited to 'include/cru/common/StringUtil.hpp')
-rw-r--r-- | include/cru/common/StringUtil.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/common/StringUtil.hpp b/include/cru/common/StringUtil.hpp index a0cb6b0b..27ad4b43 100644 --- a/include/cru/common/StringUtil.hpp +++ b/include/cru/common/StringUtil.hpp @@ -49,7 +49,7 @@ class CodePointIterator { struct past_end_tag_t {}; explicit CodePointIterator(const CharType* ptr, Index size, Index current = 0) - : ptr_(ptr), size_(size), position_(0) {} + : ptr_(ptr), size_(size), position_(current) {} explicit CodePointIterator(const CharType* ptr, Index size, past_end_tag_t) : ptr_(ptr), size_(size), position_(size) {} |