Home | History | Annotate | Download | only in tts

Lines Matching refs:country

1110  *  @country - string with ISO 3 letter country code .
1111 * @variant - string with language variant for that language and country pair.
1114 tts_result TtsEngine::loadLanguage(const char *lang, const char *country, const char *variant)
1124 * @country - string with ISO 3 letter country code.
1125 * @variant - string with language variant for that language and country pair.
1128 tts_result TtsEngine::setLanguage( const char * lang, const char * country, const char * variant )
1130 //LOGI("TtsEngine::setLanguage %s %s %s", lang, country, variant);
1142 then we look for a match on the country.
1145 If match on the language, but no match on the country:
1147 If match on the language, and match on the country:
1148 load the language found for the country match. */
1167 /* Find a match on the country, if there is one. */
1168 if (country != NULL)
1174 && (strcmp(country, picoSupportedCountryIso3[i]) == 0))
1183 /* We didn't find a match on the country, but we had a match on the language.
1185 LOGI("TtsEngine::setLanguage found matching language(%s) but not matching country(%s).",
1186 lang, country);
1190 /* We have a match on both the language and the country. */
1202 * @country - string with ISO 3 letter country code .
1203 * @variant - string with language variant for that language and country pair.
1206 tts_support_result TtsEngine::isLanguageAvailable(const char *lang, const char *country,
1233 // country matching
1234 // if no country specified
1235 if ((country == NULL) || (strlen(country) == 0)) {
1240 // find a match on the country
1243 && (strcmp(country, picoSupportedCountryIso3[i]) == 0)) {
1249 // we didn't find a match on the country, but we had a match on the language
1253 // we have a match on the language and the country
1255 // check installation of matched language + country
1266 * @country - string with current ISO 3 letter country code, empty string if no loaded language.
1270 tts_result TtsEngine::getLanguage(char *language, char *country, char *variant)
1274 strcpy(country, "\0");
1278 strcpy(country, picoSupportedCountryIso3[picoCurrentLangIndex]);