diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/utf8.c | 8 | ||||
-rw-r--r-- | src/common/utf8.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/common/utf8.c b/src/common/utf8.c index ddd51ee..625f705 100644 --- a/src/common/utf8.c +++ b/src/common/utf8.c @@ -70,7 +70,7 @@ decode(uint32_t* state, uint32_t* codep, uint32_t byte) { bool -blogc_utf8_validate(const uint8_t *str, size_t len) +bc_utf8_validate(const uint8_t *str, size_t len) { uint32_t codepoint; uint32_t state = 0; @@ -83,14 +83,14 @@ blogc_utf8_validate(const uint8_t *str, size_t len) bool -blogc_utf8_validate_str(bc_string_t *str) +bc_utf8_validate_str(bc_string_t *str) { - return blogc_utf8_validate((uint8_t*) str->str, str->len); + return bc_utf8_validate((uint8_t*) str->str, str->len); } size_t -blogc_utf8_skip_bom(const uint8_t *str, size_t len) +bc_utf8_skip_bom(const uint8_t *str, size_t len) { if (len < 3) return 0; diff --git a/src/common/utf8.h b/src/common/utf8.h index b37a97d..206b3a9 100644 --- a/src/common/utf8.h +++ b/src/common/utf8.h @@ -14,8 +14,8 @@ #include <stdint.h> #include "utils.h" -bool blogc_utf8_validate(const uint8_t *str, size_t len); -bool blogc_utf8_validate_str(bc_string_t *str); -size_t blogc_utf8_skip_bom(const uint8_t *str, size_t len); +bool bc_utf8_validate(const uint8_t *str, size_t len); +bool bc_utf8_validate_str(bc_string_t *str); +size_t bc_utf8_skip_bom(const uint8_t *str, size_t len); #endif /* _UTF_8_H */ |