Rev 4179 | Rev 4205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4179 | Rev 4200 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #ifndef KERN_STRING_H_ |
35 | #ifndef KERN_STRING_H_ |
36 | #define KERN_STRING_H_ |
36 | #define KERN_STRING_H_ |
37 | 37 | ||
38 | #include <typedefs.h> |
38 | #include <typedefs.h> |
39 | 39 | ||
40 | #define UTF8_NO_LIMIT ((index_t) -1) |
40 | #define UTF8_NO_LIMIT ((size_t) -1) |
41 | 41 | ||
42 | extern char invalch; |
42 | extern char invalch; |
43 | 43 | ||
44 | extern wchar_t utf8_decode(const char *str, index_t *index, index_t limit); |
44 | extern wchar_t chr_decode(const char *, size_t *, size_t); |
45 | extern bool utf8_encode(const wchar_t ch, char *str, index_t *index, index_t limit); |
45 | extern bool chr_encode(const wchar_t, char *, size_t *, size_t limit); |
46 | extern size_t utf8_count_bytes(const char *str, count_t count); |
46 | extern size_t utf8_count_bytes(const char *str, count_t count); |
47 | extern bool ascii_check(const wchar_t ch); |
47 | extern bool ascii_check(const wchar_t ch); |
48 | extern bool unicode_check(const wchar_t ch); |
48 | extern bool unicode_check(const wchar_t ch); |
49 | 49 | ||
50 | extern size_t strlen(const char *str); |
50 | extern size_t strlen(const char *str); |