diff options
Diffstat (limited to 'misc/language.h')
-rw-r--r-- | misc/language.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/misc/language.h b/misc/language.h index 250d39137c..ed57e75d4d 100644 --- a/misc/language.h +++ b/misc/language.h @@ -20,12 +20,11 @@ #ifndef MP_LANGUAGE_H #define MP_LANGUAGE_H -#define LANGUAGE_SCORE_BITS 16 -#define LANGUAGE_SCORE_MAX (1 << LANGUAGE_SCORE_BITS) - -// Where applicable, l1 is the user-specified code and l2 is the code being checked against it -int mp_match_lang_single(const char *l1, const char *l2); +#include "misc/bstr.h" +// Result numerically higher => better match. 0 == no match. +int mp_match_lang(char **langs, const char *lang); char **mp_get_user_langs(void); +bstr mp_guess_lang_from_filename(bstr name, int *lang_start); #endif /* MP_LANGUAGE_H */ |