summaryrefslogtreecommitdiff
path: root/py/unicode.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-14 06:18:34 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-14 06:22:11 +0300
commitb0bb458810142dac24fc12279c7bc541464a354d (patch)
tree516da6473644b9d1bc186b0b530945069b2d231e /py/unicode.c
parent2ec38a17d4e357f8f12ee6a2643e2dd2ff7a426e (diff)
unicode: String API is const byte*.
We still have that char vs byte dichotomy, but majority of string operations now use byte.
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/unicode.c b/py/unicode.c
index 131ddc810..c8faa5700 100644
--- a/py/unicode.c
+++ b/py/unicode.c
@@ -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) {