summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-10-27 13:26:40 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-10-27 13:26:40 +0200
commitee882d9d020f8f0104af8336e64b7202fd6b5949 (patch)
treeb136f0877b62f5e72914dfff90f0eb389279e542 /src/utf8_iterator.hh
parent61c8ef6ce47adf10a2bd0a0465835e8bcfa09609 (diff)
utf8: use CharCount instead of size_t
Diffstat (limited to 'src/utf8_iterator.hh')
-rw-r--r--src/utf8_iterator.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh
index 9bd0241a..464aff3a 100644
--- a/src/utf8_iterator.hh
+++ b/src/utf8_iterator.hh
@@ -47,7 +47,7 @@ public:
return save;
}
- utf8_iterator operator+(int count) const
+ utf8_iterator operator+(CharCount count) const
{
if (count < 0)
return operator-(-count);
@@ -58,7 +58,7 @@ public:
return res;
}
- utf8_iterator operator-(int count) const
+ utf8_iterator operator-(CharCount count) const
{
if (count < 0)
return operator+(-count);
@@ -92,12 +92,12 @@ public:
return m_it >= other.m_it;
}
- size_t operator-(utf8_iterator other) const
+ CharCount operator-(utf8_iterator other) const
{
//assert(other < *this);
check_invariant();
other.check_invariant();
- size_t dist = 0;
+ CharCount dist = 0;
while (other.m_it != m_it)
{
++dist;