Lines Matching defs:locale
21 #include <locale.h>
41 * code for your locale at the end of \c usbi_locale_supported[]<br>
114 * This takes a locale string in the default setlocale format: lang[-region]
129 * locale settings, call libusb_setlocale(setlocale(LC_MESSAGES, NULL)),
130 * after your app has done its locale setup.
132 * \param locale locale-string in the form of lang[_country_region][.codeset]
135 * \returns LIBUSB_ERROR_INVALID_PARAM if the locale doesn't meet the requirements
140 int API_EXPORTED libusb_setlocale(const char *locale)
144 if ( (locale == NULL) || (strlen(locale) < 2)
145 || ((strlen(locale) > 2) && (locale[2] != '-') && (locale[2] != '_') && (locale[2] != '.')) )
149 if (strncasecmp(usbi_locale_supported[i], locale, 2) == 0)