| 897 | } |
| 898 | |
| 899 | unsigned str_quickhash(const char *str) |
| 900 | { |
| 901 | unsigned hash = 5381; |
| 902 | for(; *str; str++) |
| 903 | hash = ((hash << 5) + hash) + (*str); /* hash * 33 + c */ |
| 904 | return hash; |
| 905 | } |
| 906 | |
| 907 | int str_utf8_encode(char *ptr, int chr) |
| 908 | { |
no outgoing calls
no test coverage detected