Searched refs:langtag (Results 1 – 2 of 2) sorted by relevance
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | g11n.c | 71 char *langtag; in g11n_locale2langtag() local 92 langtag = (char *)xmalloc(LANGTAG_MAX + 1); in g11n_locale2langtag() 94 strncpy(langtag, locale, 2); in g11n_locale2langtag() 95 langtag[2] = '\0'; in g11n_locale2langtag() 104 return (langtag); in g11n_locale2langtag() 108 if (snprintf(langtag, 6, "%.*s-%.*s", 2, locale, 2, in g11n_locale2langtag() 110 return (langtag); in g11n_locale2langtag() 114 return (langtag); in g11n_locale2langtag() 118 g11n_langtag_is_default(char *langtag) in g11n_langtag_is_default() argument 120 return (strcmp(langtag, "i-default") == 0); in g11n_langtag_is_default() [all …]
|
/titanic_44/usr/src/cmd/ssh/include/ |
H A D | g11n.h | 41 uint_t g11n_langtag_is_default(char *langtag); 44 uint_t g11n_langtag_matches_locale(char *langtag, char *locale);
|