unicode: String API is const byte*.

We still have that char vs byte dichotomy, but majority of string operations
now use byte.
This commit is contained in:
Paul Sokolovsky
2014-06-14 06:18:34 +03:00
parent 2ec38a17d4
commit b0bb458810
3 changed files with 7 additions and 7 deletions

View File

@@ -65,12 +65,12 @@ STATIC const uint8_t attr[] = {
AT_LO, AT_LO, AT_LO, AT_PR, AT_PR, AT_PR, AT_PR, 0
};
unichar utf8_get_char(const char *s) {
unichar utf8_get_char(const byte *s) {
return *s;
}
char *utf8_next_char(const char *s) {
return (char*)(s + 1);
const byte *utf8_next_char(const byte *s) {
return s + 1;
}
bool unichar_isspace(unichar c) {