Home
last modified time | relevance | path

Searched refs:I18nStatus (Results 1 – 21 of 21) sorted by relevance

/base/global/i18n_lite/frameworks/i18n/src/
Dmeasure_format.cpp20 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()
Dmeasure_format_impl.cpp22 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 …]
Dplural_format.cpp21 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()
Ddate_time_format.cpp62 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()
Dweek_info.cpp29 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()
Dnumber_format.cpp32 int status = I18nStatus::ISUCCESS; in Init()
40 if (status != I18nStatus::ISUCCESS) { in Init()
Ddate_time_format_impl.cpp147 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()
Dplural_format_impl.cpp22 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()
Dlocale_info.cpp283 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/
Dmeasure_format_impl.h31 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);
Ddate_time_format_impl.h59 …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;
Dplural_format_impl.h28 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/
Di18n_test.cpp224 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/
Dplural_format.h63 PluralFormat(LocaleInfo &locale, I18nStatus &status);
82 int GetPluralRuleIndex(int number, I18nStatus status);
92 int GetPluralRuleIndex(double number, I18nStatus status);
Dweek_info.h31 WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status);
66 void Init(I18nStatus &status);
67 void ProcessWeekData(const char *data, I18nStatus &status);
Dmeasure_format.h69 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,
Ddate_time_format.h106 …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…
Dlocale_info.h183 static LocaleInfo ForLanguageTag(const char *languageTag, I18nStatus &status);
197 static void ParseLanguageTag(LocaleInfo &locale, const char *languageTag, I18nStatus &status);
Dtypes.h51 enum I18nStatus { enum
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_manager.cpp74 OHOS::I18N::I18nStatus status = OHOS::I18N::I18nStatus::ISUCCESS; in GetPluralRulesAndSelect()
83 if (status != OHOS::I18N::I18nStatus::ISUCCESS) { in GetPluralRulesAndSelect()
/base/global/i18n_lite/
DREADME_zh.md113 I18nStatus status = I18nStatus::ISUCCESS;