[utils] get_string_script returns a struct rather than modifying a pointer for the length
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user