core: encoding: add utf-8 functions from b_string to b_wchar interface
This commit is contained in:
@@ -28,4 +28,14 @@ static inline bool b_wchar_is_alnum(b_wchar c)
|
||||
|
||||
BLUE_API bool b_wchar_is_punct(b_wchar c);
|
||||
|
||||
BLUE_API bool b_wchar_utf8_is_valid_scalar(b_wchar c);
|
||||
BLUE_API unsigned int b_wchar_utf8_header_decode(char c);
|
||||
BLUE_API unsigned int b_wchar_utf8_codepoint_size(b_wchar c);
|
||||
BLUE_API b_wchar b_wchar_utf8_codepoint_decode(const char *s);
|
||||
BLUE_API unsigned int b_wchar_utf8_codepoint_encode(b_wchar c, char s[4]);
|
||||
BLUE_API unsigned int b_wchar_utf8_codepoint_stride(const char *s);
|
||||
BLUE_API size_t b_wchar_utf8_codepoint_count(const char *s, size_t nr_bytes);
|
||||
BLUE_API size_t b_wchar_utf8_string_encoded_size(
|
||||
const b_wchar *s, size_t nr_codepoints);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user