22 #ifndef GCN_UTF8STRINGEDITOR_HPP
23 #define GCN_UTF8STRINGEDITOR_HPP
28 #include <guichan.hpp>
54 static int nextChar(
const std::string& text,
int byteOffset);
63 static int prevChar(
const std::string& text,
int byteOffset);
72 static int eraseChar(std::string& text,
int byteOffset);
82 static int insertChar(std::string& text,
int byteOffset,
int ch);
91 static int countChars(
const std::string& text,
int byteOffset);
103 static int getOffset(
const std::string& text,
int charIndex);
108 #endif // !GCN_UTF8STRINGEDITOR_HPP