|
a/src/utils/utf8iter.h |
|
b/src/utils/utf8iter.h |
|
... |
|
... |
101 |
return getvalueat(m_pos, m_cl);
|
101 |
return getvalueat(m_pos, m_cl);
|
102 |
}
|
102 |
}
|
103 |
|
103 |
|
104 |
/** Append current utf-8 possibly multi-byte character to string param.
|
104 |
/** Append current utf-8 possibly multi-byte character to string param.
|
105 |
This needs to be fast. No error checking. */
|
105 |
This needs to be fast. No error checking. */
|
106 |
unsigned int appendchartostring(std::string &out) {
|
106 |
unsigned int appendchartostring(std::string &out) const {
|
107 |
#ifdef UTF8ITER_CHECK
|
107 |
#ifdef UTF8ITER_CHECK
|
108 |
assert(m_cl != 0);
|
108 |
assert(m_cl != 0);
|
109 |
#endif
|
109 |
#endif
|
110 |
out.append(&m_s[m_pos], m_cl);
|
110 |
out.append(&m_s[m_pos], m_cl);
|
111 |
return m_cl;
|
111 |
return m_cl;
|