• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libunistring-0.9.3/tests/

Lines Matching defs:locale

23 #include <locale.h>
78 gl_locale_name returns the default locale. */
176 /* Check that gl_locale_name considers the thread locale. */
178 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
179 if (locale != NULL)
181 uselocale (locale);
190 thread locale, and that the name is the right one for each. */
197 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
198 if (locale != NULL)
200 locale = newlocale (category_mask, "de_DE.UTF-8", locale);
201 if (locale != NULL)
205 uselocale (locale);
230 /* Check that gl_locale_name_thread returns NULL when no thread locale is
236 /* Check that gl_locale_name_thread considers the thread locale. */
238 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
239 if (locale != NULL)
243 uselocale (locale);
252 thread locale, and that the name is the right one for each. */
259 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
260 if (locale != NULL)
262 locale = newlocale (category_mask, "de_DE.UTF-8", locale);
263 if (locale != NULL)
267 uselocale (locale);
286 /* Try many locale names in turn, in order to defeat possible caches. */
404 locale_t locale = newlocale (LC_ALL_MASK, choices[j], NULL);
405 available[j] = (locale != NULL);
406 if (locale != NULL)
410 uselocale (locale);
417 freelocale (locale);
436 locale_t locale = newlocale (LC_ALL_MASK, choices[j], NULL);
439 ASSERT (locale != NULL);
440 uselocale (locale);
479 gl_locale_name_posix returns either NULL or the default locale. */
580 /* Check that gl_locale_name_posix ignores the thread locale. */
582 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
583 if (locale != NULL)
590 uselocale (locale);
692 /* Check that gl_locale_name_environ ignores the thread locale. */
694 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
695 if (locale != NULL)
702 uselocale (locale);
719 locale. */
725 /* Check that gl_locale_name_default ignores the thread locale. */
727 locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
728 if (locale != NULL)
730 uselocale (locale);