Home
last modified time | relevance | path

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

/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/
H A Dmeasure_format_impl.cpp25 status = I18nStatus::IERROR; in MeasureFormatImpl()
31 status = I18nStatus::IERROR; in MeasureFormatImpl()
37 status = I18nStatus::IERROR; in MeasureFormatImpl()
68 I18nStatus &status) in FormatInner()
71 if (status != I18nStatus::ISUCCESS) { in FormatInner()
75 if (status != I18nStatus::ISUCCESS) { in FormatInner()
97 status = I18nStatus::IERROR; in FormatInner()
110 status = I18nStatus::IERROR; in SearchUnits()
124 I18nStatus &status) in ComputeFormattedUnit()
155 status = I18nStatus::IERROR; in ConvertType()
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dnumber_format.cpp32 int status = I18nStatus::ISUCCESS; in Init()
40 if (status != I18nStatus::ISUCCESS) { in Init()
H A 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()
H A Dlocale_info.cpp270 LocaleInfo LocaleInfo::ForLanguageTag(const char *languageTag, I18nStatus &status) in ForLanguageTag()
282 void LocaleInfo::ParseLanguageTag(LocaleInfo &locale, const char *languageTag, I18nStatus &status) in ParseLanguageTag()
/ohos5.0/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
H A 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 …]
/ohos5.0/base/global/i18n_lite/frameworks/i18n/include/
H A 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);
H A 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;
H A 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;
/ohos5.0/base/global/i18n_lite/interfaces/kits/i18n/include/
H A Dplural_format.h63 PluralFormat(LocaleInfo &locale, I18nStatus &status);
82 int GetPluralRuleIndex(int number, I18nStatus status);
92 int GetPluralRuleIndex(double number, I18nStatus status);
H A Dweek_info.h31 WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status);
66 void Init(I18nStatus &status);
67 void ProcessWeekData(const char *data, I18nStatus &status);
H A 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,
H A 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…
H A Dlocale_info.h183 static LocaleInfo ForLanguageTag(const char *languageTag, I18nStatus &status);
197 static void ParseLanguageTag(LocaleInfo &locale, const char *languageTag, I18nStatus &status);
H A Dtypes.h51 enum I18nStatus { enum
/ohos5.0/docs/zh-cn/release-notes/api-diff/v2.2-beta2/
H A Dnative-apidiff-v2.2-beta2.md7 …static LocaleInfo LocaleInfo ::ForLanguageTag(const char *languageTag, I18nStatus &status); | 新增 …
9 … | WeekInfo::WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status); | 新增 …
14 … | int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status); | 新增 …
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Ddate_time_format_module.cpp79 if (status == I18nStatus::IERROR) { in InitNumArray()
92 if ((numStatus == I18nStatus::IERROR) || (result.empty())) { in InitNumArray()
214 I18nStatus status = I18nStatus::ISUCCESS; in Format()
216 if (status == I18nStatus::IERROR) { in Format()
280 I18nStatus status = I18nStatus::ISUCCESS; in FormatDate()
283 if (status == I18nStatus::IERROR) { in FormatDate()
295 if (status == I18nStatus::IERROR) { in FormatDate()
342 I18nStatus status = I18nStatus::ISUCCESS; in FormatTime()
345 if (status == I18nStatus::IERROR) { in FormatTime()
H A Dnumber_format_module.cpp66 if ((numModule->formatter_ == nullptr) || (status == I18nStatus::IERROR)) { in CreateNumberFormat()
117 if (status == I18nStatus::IERROR) { in Format()
/ohos5.0/docs/en/release-notes/api-diff/v2.2-beta2/
H A Dnative-apidiff-v2.2-beta2.md7 …static LocaleInfo LocaleInfo ::ForLanguageTag(const char *languageTag, I18nStatus &status); | Adde…
9 … | WeekInfo::WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status); | Adde…
14 … | int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status); | Added…
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dhap_manager.cpp74 OHOS::I18N::I18nStatus status = OHOS::I18N::I18nStatus::ISUCCESS; in GetPluralRulesAndSelect()
83 if (status != OHOS::I18N::I18nStatus::ISUCCESS) { in GetPluralRulesAndSelect()
/ohos5.0/base/global/i18n_lite/
H A DREADME_zh.md113 I18nStatus status = I18nStatus::ISUCCESS;