/base/global/i18n_lite/frameworks/i18n/src/ |
D | measure_format.cpp | 20 MeasureFormat::MeasureFormat(LocaleInfo &localeinfo, I18nStatus &status) in MeasureFormat() 23 status = I18nStatus::IERROR; in MeasureFormat() 31 I18nStatus status = I18nStatus::ISUCCESS; in Init() 36 if (measureFormatImpl == nullptr || status != I18nStatus::ISUCCESS) { in Init() 55 std::string MeasureFormat::Format(double num, std::string unit, I18nStatus &status, MeasureFormatTy… in Format() 58 status = I18nStatus::IERROR; in Format() 64 std::string MeasureFormat::Format(int num, std::string unit, I18nStatus &status, MeasureFormatType … in Format() 67 status = I18nStatus::IERROR; in Format()
|
D | measure_format_impl.cpp | 22 MeasureFormatImpl::MeasureFormatImpl(LocaleInfo &localeinfo, I18nStatus &status) in MeasureFormatImpl() 25 status = I18nStatus::IERROR; in MeasureFormatImpl() 30 if (status != I18nStatus::ISUCCESS || pluralFormat == nullptr) { in MeasureFormatImpl() 31 status = I18nStatus::IERROR; in MeasureFormatImpl() 37 status = I18nStatus::IERROR; in MeasureFormatImpl() 55 …easureFormatImpl::Format(double num, std::string &unit, MeasureFormatType type, I18nStatus &status) in Format() 61 …g MeasureFormatImpl::Format(int num, std::string &unit, MeasureFormatType type, I18nStatus &status) in Format() 68 I18nStatus &status) in FormatInner() 71 if (status != I18nStatus::ISUCCESS) { in FormatInner() 75 if (status != I18nStatus::ISUCCESS) { in FormatInner() [all …]
|
D | plural_format.cpp | 21 PluralFormat::PluralFormat(LocaleInfo &locale, I18nStatus &status) in PluralFormat() 43 I18nStatus status = I18nStatus::ISUCCESS; in Init() 48 if (status != I18nStatus::ISUCCESS) { in Init() 59 int PluralFormat::GetPluralRuleIndex(int number, I18nStatus status) in GetPluralRuleIndex() 70 int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status) in GetPluralRuleIndex()
|
D | date_time_format.cpp | 62 int status = I18nStatus::ISUCCESS; in Init() 69 if (status != I18nStatus::ISUCCESS) { in Init() 94 void DateTimeFormat::Format(const time_t &cal, const string &zoneInfo, string &appendTo, I18nStatus… in Format() 153 std::string &appendTo, I18nStatus &status) in Get12HourTimeWithoutAmpm() 166 I18nStatus &status) in FormatElapsedDuration()
|
D | week_info.cpp | 29 WeekInfo::WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status) in WeekInfo() 35 void WeekInfo::Init(I18nStatus &status) in Init() 51 void WeekInfo::ProcessWeekData(const char *data, I18nStatus &status) in ProcessWeekData()
|
D | number_format.cpp | 32 int status = I18nStatus::ISUCCESS; in Init() 40 if (status != I18nStatus::ISUCCESS) { in Init()
|
D | date_time_format_impl.cpp | 147 I18nStatus &status) const in Format() 158 I18nStatus &status) const in Format() 241 …Impl::Process(const tm &time, string &appendTo, char pre, uint32_t count, I18nStatus &status) const in Process() 243 if ((status != I18nStatus::ISUCCESS) || !data) { in Process() 280 uint32_t count, I18nStatus &status) const in ProcessWeekDayYear() 335 uint32_t count, I18nStatus &status) const in ProcessTime() 439 std::string &appendTo, I18nStatus &status) const in Get12HourTimeWithoutAmpm() 513 I18nStatus &status) const in FormatElapsedDuration() 561 string &appendTo, I18nStatus &status) const in FormatElapsed()
|
D | plural_format_impl.cpp | 22 PluralFormatImpl::PluralFormatImpl(LocaleInfo &locale, I18nStatus &status) in PluralFormatImpl() 71 PluralRules *PluralFormatImpl::GetPluralData(I18nStatus status) const in GetPluralData() 79 int PluralFormatImpl::GetPluralRuleIndex(double number, I18nStatus status) const in GetPluralRuleIndex() 219 int PluralFormatImpl::GetPluralRuleIndex(int number, I18nStatus status) const in GetPluralRuleIndex()
|
D | locale_info.cpp | 283 LocaleInfo LocaleInfo::ForLanguageTag(const char *languageTag, I18nStatus &status) in ForLanguageTag() 295 void LocaleInfo::ParseLanguageTag(LocaleInfo &locale, const char *languageTag, I18nStatus &status) in ParseLanguageTag()
|
/base/global/i18n_lite/frameworks/i18n/include/ |
D | measure_format_impl.h | 31 MeasureFormatImpl(LocaleInfo &localeinfo, I18nStatus &status); 33 std::string Format(double num, std::string &unit, MeasureFormatType type, I18nStatus &status); 34 std::string Format(int num, std::string &unit, MeasureFormatType type, I18nStatus &status); 37 …std::string FormatInner(bool isInteger, std::string &unit, MeasureFormatType type, I18nStatus &sta… 38 int SearchUnits(std::string &target, I18nStatus &status); 39 int ComputePluralIndex(bool isInteger, I18nStatus &status); 40 …g ComputeFormattedUnit(int unitIndex, int pluralIndex, MeasureFormatType type, I18nStatus &status); 41 std::string ComputeFormattedNumber(bool isInteger, I18nStatus &status); 42 MeasureFormatType ConvertType(MeasureFormatType type, I18nStatus &status);
|
D | date_time_format_impl.h | 59 …void Format(const time_t &cal, const std::string &zoneInfo, std::string &apependTo, I18nStatus &st… 74 std::string &appendTo, I18nStatus &status) const; 75 …std::string FormatElapsedDuration(int32_t milliseconds, ElapsedPatternType type, I18nStatus &statu… 79 …onst struct tm &time, const std::string &pattern, std::string &appendTo, I18nStatus &status) const; 81 …void Process(const tm &time, std::string &append, char pre, uint32_t count, I18nStatus &status) c… 82 …void ProcessTime(const tm &time, std::string &append, char pre, uint32_t count, I18nStatus &status… 84 uint32_t count, I18nStatus &status) const; 89 I18nStatus &status) const;
|
D | plural_format_impl.h | 28 PluralFormatImpl(LocaleInfo &locale, I18nStatus &status); 30 int GetPluralRuleIndex(int number, I18nStatus status) const; 31 int GetPluralRuleIndex(double number, I18nStatus status) const; 38 PluralRules *GetPluralData(I18nStatus status) const;
|
/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/ |
D | i18n_test.cpp | 224 I18nStatus status = I18nStatus::ISUCCESS; 242 I18nStatus status = I18nStatus::ISUCCESS; 260 I18nStatus status = I18nStatus::ISUCCESS; 278 I18nStatus status = I18nStatus::ISUCCESS; 297 I18nStatus status = I18nStatus::ISUCCESS; 316 I18nStatus status = I18nStatus::ISUCCESS; 535 I18nStatus status = I18nStatus::ISUCCESS; 574 I18nStatus status = I18nStatus::ISUCCESS; 610 I18nStatus status = I18nStatus::ISUCCESS; 631 I18nStatus status = I18nStatus::ISUCCESS; [all …]
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
D | plural_format.h | 63 PluralFormat(LocaleInfo &locale, I18nStatus &status); 82 int GetPluralRuleIndex(int number, I18nStatus status); 92 int GetPluralRuleIndex(double number, I18nStatus status);
|
D | week_info.h | 31 WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status); 66 void Init(I18nStatus &status); 67 void ProcessWeekData(const char *data, I18nStatus &status);
|
D | measure_format.h | 69 MeasureFormat(LocaleInfo &localeinfo, I18nStatus &status); 93 std::string Format(int num, std::string unit, I18nStatus &status, 110 std::string Format(double num, std::string unit, I18nStatus &status,
|
D | date_time_format.h | 106 …void Format(const time_t &cal, const std::string &zoneInfo, std::string &appendTo, I18nStatus &sta… 168 std::string &appendTo, I18nStatus &status); 178 …std::string FormatElapsedDuration(int32_t milliseconds, ElapsedPatternType type, I18nStatus &statu…
|
D | locale_info.h | 183 static LocaleInfo ForLanguageTag(const char *languageTag, I18nStatus &status); 197 static void ParseLanguageTag(LocaleInfo &locale, const char *languageTag, I18nStatus &status);
|
D | types.h | 51 enum I18nStatus { enum
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | hap_manager.cpp | 74 OHOS::I18N::I18nStatus status = OHOS::I18N::I18nStatus::ISUCCESS; in GetPluralRulesAndSelect() 83 if (status != OHOS::I18N::I18nStatus::ISUCCESS) { in GetPluralRulesAndSelect()
|
/base/global/i18n_lite/ |
D | README_zh.md | 113 I18nStatus status = I18nStatus::ISUCCESS;
|