diff options
Diffstat (limited to 'src/basic/utf8.h')
-rw-r--r-- | src/basic/utf8.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/basic/utf8.h b/src/basic/utf8.h index fbd3318987..301c50cc2f 100644 --- a/src/basic/utf8.h +++ b/src/basic/utf8.h @@ -18,8 +18,11 @@ char* utf8_is_valid_n(const char *str, size_t len_bytes) _pure_; static inline char* utf8_is_valid(const char *str) { return utf8_is_valid_n(str, SIZE_MAX); } -char *ascii_is_valid(const char *s) _pure_; -char *ascii_is_valid_n(const char *str, size_t len); + +char* ascii_is_valid_n(const char *str, size_t len) _pure_; +static inline char* ascii_is_valid(const char *str) { + return ascii_is_valid_n(str, SIZE_MAX); +} int utf8_to_ascii(const char *str, char replacement_char, char **ret); |