/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | resource_manager_test_hap.cpp | 225 int quantity = 1; variable 226 rmc->TestPluralStringById(quantity, "%d apple", false); 227 quantity = 101; 228 rmc->TestPluralStringById(quantity, "%d apples", false); 241 int quantity = 1; variable 242 rmc->TestPluralStringById(quantity, "%d apples", false); 243 quantity = 101; 244 rmc->TestPluralStringById(quantity, "%d apples", false); 257 int quantity = 0; variable 258 rmc->TestPluralStringById(quantity, "zero-0"); [all …]
|
D | resource_manager_test_string.cpp | 556 int quantity = 1; variable 557 rmc->TestPluralStringById(quantity, "%d apple", false); 559 quantity = 101; 560 rmc->TestPluralStringById(quantity, "%d apples", false); 572 int quantity = 1; variable 573 rmc->TestPluralStringById(quantity, "%d apples", false); 575 quantity = 101; 576 rmc->TestPluralStringById(quantity, "%d apples", false); 588 int quantity = 1; variable 589 rmc->TestPluralStringById(quantity, "1 jabłko"); [all …]
|
D | resource_manager_test_common.h | 57 void TestPluralStringById(int quantity, const char *cmp, bool format = false); 59 void TestPluralStringByName(int quantity, const char *cmp, bool format = false);
|
D | resource_manager_test_common.cpp | 131 void ResourceManagerTestCommon::TestPluralStringById(int quantity, const char *cmp, bool format) in TestPluralStringById() argument 138 ret = rm->GetPluralStringByIdFormat(outValue, id, quantity, quantity); in TestPluralStringById() 140 ret = rm->GetPluralStringById(id, quantity, outValue); in TestPluralStringById() 147 void ResourceManagerTestCommon::TestPluralStringByName(int quantity, const char *cmp, bool format) in TestPluralStringByName() argument 153 ret = rm->GetPluralStringByNameFormat(outValue, name, quantity, quantity); in TestPluralStringByName() 155 ret = rm->GetPluralStringByName(name, quantity, outValue); in TestPluralStringByName()
|
D | resource_manager_performance_test.cpp | 582 int quantity[] = {1, 100}; variable 591 rm->GetPluralStringById(id, quantity[i], outValue); 615 int quantity[] = {1, 100}; variable 621 rm->GetPluralStringByName("eat_apple", quantity[i], outValue); 645 int quantity[] = {1, 100}; variable 654 rm->GetPluralStringByIdFormat(outValue, id, quantity[i], quantity[i]); 678 int quantity[] = {1, 100}; variable 684 rm->GetPluralStringByNameFormat(outValue, "eat_apple", quantity[i], quantity[i]);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | resource_manager_test.cpp | 61 void TestPluralStringById(int quantity, const char *cmp, bool format = false) const; 63 void TestPluralStringByName(int quantity, const char *cmp, bool format = false) const; 119 void ResourceManagerTest::TestPluralStringById(int quantity, const char *cmp, bool format) const in TestPluralStringById() argument 125 ret = rm->GetPluralStringByIdFormat(outValue, id, quantity, quantity); in TestPluralStringById() 127 ret = rm->GetPluralStringById(id, quantity, outValue); in TestPluralStringById() 134 void ResourceManagerTest::TestPluralStringByName(int quantity, const char *cmp, bool format) const in TestPluralStringByName() argument 140 ret = rm->GetPluralStringByNameFormat(outValue, name, quantity, quantity); in TestPluralStringByName() 142 ret = rm->GetPluralStringByName(name, quantity, outValue); in TestPluralStringByName() 777 int quantity = 1; variable 778 TestPluralStringById(quantity, "%d apple", false); [all …]
|
D | resource_manager_performance_test.cpp | 570 int quantity[] = {1, 100}; variable 579 rm->GetPluralStringById(id, quantity[i], outValue); 603 int quantity[] = {1, 100}; variable 609 rm->GetPluralStringByName("eat_apple", quantity[i], outValue); 633 int quantity[] = {1, 100}; variable 642 rm->GetPluralStringByIdFormat(outValue, id, quantity[i], quantity[i]); 666 int quantity[] = {1, 100}; variable 672 rm->GetPluralStringByNameFormat(outValue, "eat_apple", quantity[i], quantity[i]);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | resource_manager.h | 53 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue) = 0; 55 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue) = 0; 57 …virtual RState GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...) = … 59 …RState GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...) = 0;
|
D | resource_manager_impl.h | 126 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue); 135 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue); 144 virtual RState GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...); 153 …ual RState GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...); 292 …RState GetPluralString(const HapResource::ValueUnderQualifierDir *vuqd, int quantity, std::string …
|
D | hap_manager.h | 97 std::string GetPluralRulesAndSelect(int quantity);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | resource_manager_impl.cpp | 179 RState ResourceManagerImpl::GetPluralStringById(uint32_t id, int quantity, std::string &outValue) in GetPluralStringById() argument 182 return GetPluralString(vuqd, quantity, outValue); in GetPluralStringById() 185 RState ResourceManagerImpl::GetPluralStringByName(const char *name, int quantity, std::string &outV… in GetPluralStringByName() argument 189 return GetPluralString(vuqd, quantity, outValue); in GetPluralStringByName() 192 …sourceManagerImpl::GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...) in GetPluralStringByIdFormat() argument 196 RState rState = GetPluralString(vuqd, quantity, temp); in GetPluralStringByIdFormat() 202 va_start(args, quantity); in GetPluralStringByIdFormat() 209 …anagerImpl::GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...) in GetPluralStringByNameFormat() argument 214 RState rState = GetPluralString(vuqd, quantity, temp); in GetPluralStringByNameFormat() 220 va_start(args, quantity); in GetPluralStringByNameFormat() [all …]
|
D | hap_manager.cpp | 53 std::string HapManager::GetPluralRulesAndSelect(int quantity) in GetPluralRulesAndSelect() argument 97 int idxRet = pluralFormat->GetPluralRuleIndex(quantity, status); in GetPluralRulesAndSelect()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | resource_manager_impl.h | 172 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue); 181 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue); 190 virtual RState GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...); 199 …ual RState GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...); 547 …RState GetPluralString(const HapResource::ValueUnderQualifierDir *vuqd, int quantity, std::string …
|
D | hap_manager.h | 152 std::string GetPluralRulesAndSelect(int quantity);
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | resource_manager.h | 86 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue) = 0; 88 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue) = 0; 90 …virtual RState GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...) = … 92 …RState GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...) = 0;
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | resource_manager_impl.cpp | 235 RState ResourceManagerImpl::GetPluralStringById(uint32_t id, int quantity, std::string &outValue) in GetPluralStringById() argument 238 return GetPluralString(vuqd, quantity, outValue); in GetPluralStringById() 241 RState ResourceManagerImpl::GetPluralStringByName(const char *name, int quantity, std::string &outV… in GetPluralStringByName() argument 245 return GetPluralString(vuqd, quantity, outValue); in GetPluralStringByName() 248 …sourceManagerImpl::GetPluralStringByIdFormat(std::string &outValue, uint32_t id, int quantity, ...) in GetPluralStringByIdFormat() argument 256 RState rState = GetPluralString(vuqd, quantity, temp); in GetPluralStringByIdFormat() 265 va_start(args, quantity); in GetPluralStringByIdFormat() 272 …anagerImpl::GetPluralStringByNameFormat(std::string &outValue, const char *name, int quantity, ...) in GetPluralStringByNameFormat() argument 281 RState rState = GetPluralString(vuqd, quantity, temp); in GetPluralStringByNameFormat() 290 va_start(args, quantity); in GetPluralStringByNameFormat() [all …]
|
D | hap_manager.cpp | 96 std::string HapManager::GetPluralRulesAndSelect(int quantity) in GetPluralRulesAndSelect() argument 141 icu::UnicodeString us = pluralRules->select(quantity); in GetPluralRulesAndSelect()
|