Changeset 36425 in vbox
- Timestamp:
- Mar 25, 2011 12:33:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/ministring.h
r35567 r36425 198 198 199 199 /** 200 * String length in UTF-8 codepoints. 201 * 202 * As opposed to length(), which returns the length in bytes, this counts the number 203 * of UTF-8 codepoints. This is *not* cached so calling this is expensive. 200 * String length in unicode codepoints. 201 * 202 * As opposed to length(), which returns the length in bytes, this counts 203 * the number of unicode codepoints. This is *not* cached so calling this 204 * is expensive. 204 205 * 205 206 * @returns Number of codepoints in the member string. 206 207 */ 207 size_t u tf8length() const208 size_t uniLength() const 208 209 { 209 210 return m_psz ? RTStrUniLen(m_psz) : 0;
Note:
See TracChangeset
for help on using the changeset viewer.