Improve base64 decode and utf8 handling

This commit is contained in:
Shuanglei Tao
2017-02-03 11:23:59 +08:00
parent de75490d3e
commit f0414d30d8
7 changed files with 129 additions and 7 deletions

5
src/index.html vendored

File diff suppressed because one or more lines are too long

View File

@@ -37,7 +37,7 @@ uppercase(char *str) {
}
bool
endswith(const char * str, const char * suffix) {
endswith(const char *str, const char *suffix) {
size_t str_len = strlen(str);
size_t suffix_len = strlen(suffix);
return str_len > suffix_len && !strcmp(str + (str_len - suffix_len), suffix);

View File

@@ -15,7 +15,7 @@ uppercase(char *str);
// Check whether str ends with suffix
bool
endswith(const char * str, const char * suffix);
endswith(const char *str, const char *suffix);
// Get human readable signal string
int