| 214 | #endif |
| 215 | |
| 216 | int utf8_length(const std::string& utf8string) |
| 217 | { |
| 218 | utf8_decode decode(utf8string); |
| 219 | int c = 0; |
| 220 | |
| 221 | while (decode.next()) |
| 222 | ++c; |
| 223 | |
| 224 | return c; |
| 225 | } |
| 226 | |
| 227 | int utf8_icmp(const std::string& a, const std::string& b, int n) |
| 228 | { |