[utils] get_string_script returns a struct rather than modifying a pointer for the length

This commit is contained in:
Al
2015-06-25 10:06:38 -04:00
parent bcee9832b3
commit c376bcef3d
2 changed files with 13 additions and 8 deletions

View File

@@ -15,9 +15,14 @@ typedef struct script_languages {
char *languages[MAX_LANGS];
} script_languages_t;
typedef struct string_script {
script_t script;
size_t len;
} string_script_t;
script_t get_char_script(uint32_t ch);
script_languages_t get_script_languages(script_t script);
script_t string_script(char *str, size_t len, size_t *script_len);
string_script_t get_string_script(char *str, size_t len);
#endif