diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-05-22 17:47:34 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-05-22 17:47:34 +0200 |
commit | 498fadc735df509ef0a864db1e93d2120d8eb9ee (patch) | |
tree | 8d322b8736c615cc0ba51c9b40ad30d3a9668480 /include/helper.h | |
parent | 8091558ed8234914b398fe288aaccfe9770dac9c (diff) |
Remove the is_ascii mess.
Diffstat (limited to 'include/helper.h')
-rw-r--r-- | include/helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/helper.h b/include/helper.h index cca31cc0..e48b6d7f 100644 --- a/include/helper.h +++ b/include/helper.h @@ -32,8 +32,8 @@ int helper_parse_setup ( char * string, char ***output, int *length, ... ); * * @returns a newly allocated 2 dimensional array of strings. */ -char **tokenize ( const char *input, int case_sensitive ); -void tokenize_free ( char ** tokens ); +GRegex **tokenize ( const char *input, int case_sensitive ); +void tokenize_free ( GRegex ** tokens ); /** * @param key The key to search for @@ -97,7 +97,7 @@ int find_arg ( const char * const key ); * * @returns 1 when matches, 0 otherwise */ -int token_match ( char **tokens, const char *input, int not_ascii, int case_sensitive ); +int token_match ( GRegex **tokens, const char *input); /** * @param cmd The command to execute. * @@ -160,6 +160,6 @@ unsigned int levenshtein ( const char *needle, const char *haystack ); */ char * rofi_force_utf8 ( gchar *data ); char * rofi_latin_to_utf8_strdup ( const char *input, gssize length ); -PangoAttrList *token_match_get_pango_attr ( char **tokens, const char *input, PangoAttrList *retv ); +PangoAttrList *token_match_get_pango_attr ( GRegex **tokens, const char *input, PangoAttrList *retv ); /*@}*/ #endif // ROFI_HELPER_H |