Home
last modified time | relevance | path

Searched refs:timeVector (Results 1 - 6 of 6) sorted by relevance

/base/global/i18n/frameworks/intl/src/
H A Drelative_time_format.cpp139 void RelativeTimeFormat::InsertInfo(std::vector<std::vector<std::string>> &timeVector, in InsertInfo() argument
151 timeVector.push_back(info); in InsertInfo()
155 std::vector<std::vector<std::string>> &timeVector, size_t &startIndex, const std::string &unit, in ProcessIntegerField()
160 InsertInfo(timeVector, unit, true, result.substr(startIndex, iter->first - startIndex)); in ProcessIntegerField()
161 InsertInfo(timeVector, unit, true, result.substr(iter->first, iter->second - iter->first)); in ProcessIntegerField()
168 std::vector<std::vector<std::string>> &timeVector) in FormatToParts()
195 InsertInfo(timeVector, unit, false, result.substr(prevIndex, startIndex - prevIndex)); in FormatToParts()
198 ProcessIntegerField(indexMap, timeVector, startIndex, unit, result); in FormatToParts()
200 InsertInfo(timeVector, unit, true, result.substr(startIndex, in FormatToParts()
206 InsertInfo(timeVector, uni in FormatToParts()
154 ProcessIntegerField(const std::map<size_t, size_t> &indexMap, std::vector<std::vector<std::string>> &timeVector, size_t &startIndex, const std::string &unit, const std::string &result) ProcessIntegerField() argument
167 FormatToParts(double number, const std::string &unit, std::vector<std::vector<std::string>> &timeVector) FormatToParts() argument
[all...]
/base/global/i18n/frameworks/intl/include/
H A Drelative_time_format.h53 void FormatToParts(double number, const std::string &unit, std::vector<std::vector<std::string>> &timeVector);
71 void InsertInfo(std::vector<std::vector<std::string>> &timeVector, const std::string &unit, bool isInteger,
74 std::vector<std::vector<std::string>> &timeVector, size_t &startIndex, const std::string &unit,
/base/global/i18n/frameworks/intl/test/fuzztest/relativetimeformat_fuzzer/
H A Drelativetimeformat_fuzzer.cpp43 std::vector<std::vector<std::string>> timeVector; in DoSomethingInterestingWithMyAPI() local
46 formatter.FormatToParts(number2, input, timeVector); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test.cpp1008 vector<vector<string>> timeVector; in HWTEST_F() local
1009 formatter->FormatToParts(number, unit, timeVector); in HWTEST_F()
1010 EXPECT_EQ(timeVector.size(), 5); in HWTEST_F()
1016 formatter->FormatToParts(number, unit, timeVector); in HWTEST_F()
1017 EXPECT_EQ(timeVector.size(), 8); in HWTEST_F()
1023 formatter->FormatToParts(number, unit, timeVector); in HWTEST_F()
1024 EXPECT_EQ(timeVector.size(), 11); in HWTEST_F()
1030 formatter->FormatToParts(number, unit, timeVector); in HWTEST_F()
1031 EXPECT_EQ(timeVector.size(), 14); in HWTEST_F()
1037 formatter->FormatToParts(number, unit, timeVector); in HWTEST_F()
1058 vector<vector<string>> timeVector; HWTEST_F() local
1099 vector<vector<string>> timeVector; HWTEST_F() local
1150 vector<vector<string>> timeVector; HWTEST_F() local
[all...]
/base/global/i18n/interfaces/js/kits/src/
H A Dintl_addon.cpp1438 const std::vector<std::vector<std::string>> &timeVector) in FillInArrayElement()
1440 for (size_t i = 0; i < timeVector.size(); i++) { in FillInArrayElement()
1442 status = napi_create_string_utf8(env, timeVector[i][1].c_str(), NAPI_AUTO_LENGTH, &value); in FillInArrayElement()
1448 status = napi_create_string_utf8(env, timeVector[i][0].c_str(), NAPI_AUTO_LENGTH, &type); in FillInArrayElement()
1450 HILOG_ERROR_I18N("Failed to create string item timeVector[i][0]."); in FillInArrayElement()
1455 if (timeVector[i].size() > unitIndex) { in FillInArrayElement()
1456 status = napi_create_string_utf8(env, timeVector[i][unitIndex].c_str(), NAPI_AUTO_LENGTH, &unit); in FillInArrayElement()
1458 HILOG_ERROR_I18N("Failed to create string item timeVector[i][unitIndex]."); in FillInArrayElement()
1500 std::vector<std::vector<std::string>> timeVector; in FormatToParts() local
1501 obj->relativetimefmt_->FormatToParts(number, unit.data(), timeVector); in FormatToParts()
1437 FillInArrayElement(napi_env env, napi_value &result, napi_status &status, const std::vector<std::vector<std::string>> &timeVector) FillInArrayElement() argument
[all...]
/base/global/i18n/interfaces/js/kits/include/
H A Dintl_addon.h91 const std::vector<std::vector<std::string>> &timeVector);

Completed in 12 milliseconds