diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 03:03:57 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 03:03:57 +0200 |
commit | d66ebfab3458172bd435b00c51e8b09e2510b4d4 (patch) | |
tree | 157220d08f8005a7f91e321394d5f10d97ffb693 /src/common | |
parent | ba38817ab8dd3606de9e5d40c83c8f8d185f671b (diff) | |
download | blogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.tar.gz blogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.tar.bz2 blogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.zip |
s/blogc_utf8_/bc_utf8_/g
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 */ |