Home | History | Annotate | Download | only in tts

Lines Matching refs:country

1115  *  @country - string with ISO 3 letter country code .
1116 * @variant - string with language variant for that language and country pair.
1119 tts_result TtsEngine::loadLanguage(const char *lang, const char *country, const char *variant)
1129 * @country - string with ISO 3 letter country code.
1130 * @variant - string with language variant for that language and country pair.
1133 tts_result TtsEngine::setLanguage( const char * lang, const char * country, const char * variant )
1135 //ALOGI("TtsEngine::setLanguage %s %s %s", lang, country, variant);
1147 then we look for a match on the country.
1150 If match on the language, but no match on the country:
1152 If match on the language, and match on the country:
1153 load the language found for the country match. */
1172 /* Find a match on the country, if there is one. */
1173 if (country != NULL)
1179 && (strcmp(country, picoSupportedCountryIso3[i]) == 0))
1188 /* We didn't find a match on the country, but we had a match on the language.
1190 ALOGI("TtsEngine::setLanguage found matching language(%s) but not matching country(%s).",
1191 lang, country);
1195 /* We have a match on both the language and the country. */
1207 * @country - string with ISO 3 letter country code .
1208 * @variant - string with language variant for that language and country pair.
1211 tts_support_result TtsEngine::isLanguageAvailable(const char *lang, const char *country,
1238 // country matching
1239 // if no country specified
1240 if ((country == NULL) || (strlen(country) == 0)) {
1245 // find a match on the country
1248 && (strcmp(country, picoSupportedCountryIso3[i]) == 0)) {
1254 // we didn't find a match on the country, but we had a match on the language
1258 // we have a match on the language and the country
1260 // check installation of matched language + country
1271 * @country - string with current ISO 3 letter country code, empty string if no loaded language.
1275 tts_result TtsEngine::getLanguage(char *language, char *country, char *variant)
1279 strcpy(country, "\0");
1283 strcpy(country, picoSupportedCountryIso3[picoCurrentLangIndex]);