Home
last modified time | relevance | path

Searched refs:VariableConvertor (Results 1 - 11 of 11) sorted by relevance

/base/global/i18n/interfaces/js/kits/src/
H A Dvariable_convertor.cpp24 bool VariableConvertor::CheckNapiValueType(napi_env env, napi_value value) in CheckNapiValueType()
36 void VariableConvertor::GetOptionValue(napi_env env, napi_value options, const std::string &optionName, in GetOptionValue()
64 bool VariableConvertor::GetBoolOptionValue(napi_env env, napi_value &options, const std::string &optionName, in GetBoolOptionValue()
90 std::string VariableConvertor::GetString(napi_env &env, napi_value &value, int32_t &code) in GetString()
110 bool VariableConvertor::GetStringArrayFromJsParam(napi_env env, napi_value &jsArray, const std::string& valueName, in GetStringArrayFromJsParam()
141 napi_value VariableConvertor::CreateString(napi_env env, const std::string &str) in CreateString()
152 napi_value VariableConvertor::CreateNumber(napi_env env, const int32_t &num) in CreateNumber()
163 void VariableConvertor::VerifyType(napi_env env, const std::string& valueName, const std::string& type, in VerifyType()
H A Dsystem_locale_manager_addon.cpp123 bool isSuccess = VariableConvertor::GetStringArrayFromJsParam(env, argv[0], "languages", languageList); in GetLanguageInfoArray()
162 bool isSuccess = VariableConvertor::GetStringArrayFromJsParam(env, argv[0], "regions", countryList); in GetCountryInfoArray()
218 VariableConvertor::CreateString(env, timezoneCityItem.zoneId)); in CreateTimeZoneCityItem()
224 VariableConvertor::CreateString(env, timezoneCityItem.cityId)); in CreateTimeZoneCityItem()
230 VariableConvertor::CreateString(env, timezoneCityItem.cityDisplayName)); in CreateTimeZoneCityItem()
236 VariableConvertor::CreateNumber(env, timezoneCityItem.offset)); in CreateTimeZoneCityItem()
242 VariableConvertor::CreateString(env, timezoneCityItem.zoneDisplayName)); in CreateTimeZoneCityItem()
249 VariableConvertor::CreateNumber(env, timezoneCityItem.rawOffset)); in CreateTimeZoneCityItem()
270 VariableConvertor::GetOptionValue(env, jsOptions, "locale", localeTag); in GetSortOptionsFromJsParam()
274 bool isSuccess = VariableConvertor in GetSortOptionsFromJsParam()
[all...]
H A Dentity_recognizer_addon.cpp82 localeStr = VariableConvertor::GetString(env, argv[0], code); in constructor()
127 std::string message = VariableConvertor::GetString(env, argv[0], code); in FindEntityInfo()
179 VariableConvertor::CreateNumber(env, begin)); in CreateEntityInfoItem()
185 VariableConvertor::CreateNumber(env, end)); in CreateEntityInfoItem()
191 VariableConvertor::CreateString(env, type)); in CreateEntityInfoItem()
H A Dholiday_manager_addon.cpp92 std::string path = VariableConvertor::GetString(env, argv[0], code); in HolidayManagerConstructor()
133 bool flag = VariableConvertor::CheckNapiValueType(env, argv[0]); in IsHoliday()
164 bool flag = VariableConvertor::CheckNapiValueType(env, argv[0]); in GetHolidayInfoItemArray()
266 VariableConvertor::CreateString(env, holidayItem.baseName)); in CreateHolidayItem()
272 VariableConvertor::CreateNumber(env, holidayItem.year)); in CreateHolidayItem()
278 VariableConvertor::CreateNumber(env, holidayItem.month)); in CreateHolidayItem()
284 VariableConvertor::CreateNumber(env, holidayItem.day)); in CreateHolidayItem()
316 VariableConvertor::CreateString(env, localNames[i].language)); in HolidayLocalNameItem()
322 VariableConvertor::CreateString(env, localNames[i].name)); in HolidayLocalNameItem()
H A Di18n_unicode_addon.cpp115 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsDigitAddon()
146 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsSpaceCharAddon()
177 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsWhiteSpaceAddon()
208 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsRTLCharacterAddon()
239 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsIdeoGraphicAddon()
270 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsLetterAddon()
301 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsLowerCaseAddon()
332 std::string character = VariableConvertor::GetString(env, argv[0], code); in IsUpperCaseAddon()
363 std::string character = VariableConvertor::GetString(env, argv[0], code); in GetTypeAddon()
H A Di18n_timezone_addon.cpp47 if (!VariableConvertor::CheckNapiValueType(env, argv[0])) { in GetI18nTimeZone()
124 zoneID = VariableConvertor::GetString(env, argv[0], code); in I18nTimeZoneConstructor()
233 std::string cityID = VariableConvertor::GetString(env, argv[0], code); in GetCityDisplayName()
237 std::string locale = VariableConvertor::GetString(env, argv[1], code); in GetCityDisplayName()
277 VariableConvertor::VerifyType(env, "longitude", "number", argv[0]); in GetTimezonesByLocation()
278 VariableConvertor::VerifyType(env, "latitude", "number", argv[1]); in GetTimezonesByLocation()
437 if (VariableConvertor::CheckNapiValueType(env, argv[0])) { in GetOffset()
498 if (VariableConvertor::CheckNapiValueType(env, argv[1])) { in GetParameter()
503 bool firstParamFlag = VariableConvertor::CheckNapiValueType(env, argv[0]); in GetParameter()
541 if (!VariableConvertor in GetFirstParameter()
[all...]
H A Di18n_system_addon.cpp313 std::string localeTag = VariableConvertor::GetString(env, argv[0], code); in SetAppPreferredLanguage()
382 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
385 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
388 VariableConvertor::VerifyType(env, "country", "string", argv[0]); in GetDisplayCountryImpl()
392 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
394 VariableConvertor::VerifyType(env, "locale", "string", argv[1]); in GetDisplayCountryImpl()
398 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
403 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
406 return VariableConvertor::CreateString(env, ""); in GetDisplayCountryImpl()
415 return VariableConvertor in GetDisplayCountryImpl()
[all...]
H A Di18n_addon.cpp123 if (VariableConvertor::CheckNapiValueType(env, option)) { in GetOptionMap()
147 VariableConvertor::GetOptionValue(env, argv[0], "unit", fromUnit); in UnitConvert()
149 VariableConvertor::GetOptionValue(env, argv[0], "measureSystem", fromMeasSys); in UnitConvert()
151 VariableConvertor::GetOptionValue(env, argv[1], "unit", toUnit); in UnitConvert()
153 VariableConvertor::GetOptionValue(env, argv[1], "measureSystem", toMeasSys); in UnitConvert()
288 tag = VariableConvertor::GetString(env, argv[1], code); in GetParamOfGetTimePeriodName()
303 std::string localeTag = VariableConvertor::GetString(env, argv, code); in ProcessJsParamLocale()
321 if (!VariableConvertor::GetStringArrayFromJsParam(env, argv, "localeList", localeTagList)) { in ProcessJsParamLocaleList()
418 std::string languageTag = VariableConvertor::GetString(env, argv[0], code); in GetThreeLetterLanguage()
459 std::string regionTag = VariableConvertor in GetThreeLetterRegion()
[all...]
H A Di18n_calendar_addon.cpp195 std::string localeTag = VariableConvertor::GetString(env, argv[0], code); in I18nCalendarConstructor()
561 std::string localeTag = VariableConvertor::GetString(env, argv[0], code); in GetDisplayName()
627 if (!VariableConvertor::CheckNapiValueType(env, argv[0])) { in IsWeekend()
707 std::string calendarType = VariableConvertor::GetString(env, value, code); in GetCalendarType()
720 if (!VariableConvertor::CheckNapiValueType(env, value)) { in SetField()
742 std::string field = VariableConvertor::GetString(env, value, code); in GetAddField()
H A Di18n_normalizer_addon.cpp163 std::string text = VariableConvertor::GetString(env, argv[0], code); in Normalize()
/base/global/i18n/interfaces/js/kits/include/
H A Dvariable_convertor.h26 class VariableConvertor { class

Completed in 16 milliseconds