Home
last modified time | relevance | path

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

12

/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DPluralFetcher.java35 private HashMap<String, String> map;
36 private HashMap<String, String> decimalMap;
58 String line = ""; in init()
60 String[] temp = getPluralItems(line); in init()
70 String line = ""; in init()
72 String[] temp = getPluralItems(line); in init()
86 public String get(String lan) { in get()
87 String out = map.get(lan); in get()
100 public String getDecimal(String lan) { in getDecimal()
101 String out = decimalMap.get(lan); in getDecimal()
[all …]
DMeasureFormatPatternFetcher.java38 private static final String PATH = "/resource" + FileSystems.getDefault().getSeparator() +
45 private HashMap<String, String> locale2Pattern;
64 public String get(String locale) { in get()
65 String pattern = locale2Pattern.get(locale); in get()
76 String line = ""; in init()
78 String[] temp = getPatterns(line); in init()
88 private String[] getPatterns(String line) { in getPatterns()
89 String[] result = new String[2]; in getPatterns()
90 String trimedLine = line.trim(); in getPatterns()
91 String[] localeAndPatterns = trimedLine.split(" ", 2); // Split into 2 parts in getPatterns()
[all …]
DResourceConfiguration.java68 String method;
71 String pub;
72 String sep;
73 String pointer;
74 String type;
91 public String getMethod() { in getMethod()
118 public String getPub() { in getPub()
127 public String getSep() { in getSep()
136 public String getPointer() { in getPointer()
145 public String getType() { in getType()
[all …]
DDataFetcher.java52 private static final ArrayList<String> SCRIPTS = new ArrayList<>(Arrays.asList(
55 private static final ArrayList<String> DATA_TYPES = new ArrayList<>(Arrays.asList(
63 private static final HashMap<String, Integer> ID_MAP = new HashMap<>(64);
64 private static final HashMap<String, Integer> LOCALES = new HashMap<>();
70 private static final String SEP = File.separator;
84 String line = ""; in addFetchers()
88 String tag = line.trim(); in addFetchers()
99 LOG.log(Level.SEVERE, String.format("wrong languageTag %s", tag)); in addFetchers()
116 private static int processWildcard(String line, ULocale[] availableLocales, int count) { in processWildcard()
117 String tag = line.trim(); in processWildcard()
[all …]
DFetcher.java50 private static HashMap<Integer, String> int2Str = new HashMap<>();
51 private static HashMap<String, Integer> str2Int = new HashMap<>();
61 public ArrayList<String> datas = new ArrayList<>();
64 public Map<String, Integer> idMap;
70 public String languageTag;
72 private String lan; // language
78 private String defaultHourString;
104 public static HashMap<Integer, String> getInt2Str() { in getInt2Str()
113 public static HashMap<String, Integer> getStr2Int() { in getStr2Int()
117 public Fetcher(String tag, ReentrantLock lock, Map<String, Integer> idMap) { in Fetcher() argument
[all …]
DUtils.java44 private static final String AVAILABLE_LINE = "enum AvailableDateTimeFormatPattern {";
45 private static final String AVAILABLE_END_LINE = "};";
47 private static final String PATTERN_INDEX_MASK = "#define PATTERN_INDEX_MASK = 0x0000ffff";
48 …private static final String I18N_MACROS_BEGIN = "// this file should only be included by date_time…
57 public static String getFallback(String languageTag) { in getFallback()
61 String[] split = languageTag.split("-"); in getFallback()
80 public static boolean isValidLanguageTag(String languageTag) { in isValidLanguageTag()
84 String[] items = languageTag.split("-"); in isValidLanguageTag()
116 private static boolean checkLanguage(String lan) { in checkLanguage()
133 private static boolean checkScript(String script) { in checkScript()
[all …]
DLocaleMaskItem.java31 private String languageTag;
32 private String maskString;
38 public LocaleMaskItem(String languageTag, ArrayList<LocaleConfig> configs) { in LocaleMaskItem()
68 public String getLanguageTag() { in getLanguageTag()
76 public String getMaskString() { in getMaskString()
DFileConfig.java46 public static final String NUMBER_SEP = ";";
50 public static final String SEP = "_";
DLocaleConfig.java23 public String name;
31 public LocaleConfig(String str, int nameId, int stringId) { in LocaleConfig()
DStringPool.java33 …private static final String ARABIC_PERCENT = new DecimalFormatSymbols(new ULocale("ar")).getPercen…
38 private HashMap<Integer, String> int2StrMap = new HashMap<>();
40 public StringPool(HashMap<String, Integer> hashMap, int offset) { in StringPool() argument
43 for (Map.Entry<String, Integer> next : hashMap.entrySet()) { in StringPool()
DLocaleList.java33 public LocaleList(int startOffset, HashMap<String, Integer> locales, Map<Integer, in LocaleList() argument
38 for (Map.Entry<String, Integer> next : locales.entrySet()) { in LocaleList()
/base/request/request/download/services/src/
Ddownload_background_notification.cpp39 wantParams.SetParam("fileName", AAFwk::String::Box(filePath)); in PublishDownloadNotification()
40 wantParams.SetParam("title", AAFwk::String::Box("Download")); in PublishDownloadNotification()
/base/hiviewdfx/hichecker/
DREADME_zh.md66 | | GetCustomMessage() : String | 获取更多辅助信息 |
67 | | GetStackTrace() :String | 获取堆栈信息 |
/base/global/i18n/frameworks/intl/src/
Dindex_util.cpp74 std::string IndexUtil::GetIndex(const std::string &String) in GetIndex() argument
80 icu::UnicodeString unicodeString(String.c_str()); in GetIndex()
/base/global/i18n/frameworks/intl/include/
Dindex_util.h33 std::string GetIndex(const std::string &String);
/base/powermgr/power_manager/frameworks/native/
Drunning_lock_info.cpp99 READ_PARCEL_WITH_RET(parcel, String, name_, false); in ReadFromParcel()
124 WRITE_PARCEL_WITH_RET(parcel, String, name_, false); in Marshalling()
/base/powermgr/thermal_manager/services/zidl/src/
Dthermal_action_callback_proxy.cpp45 THERMAL_WRITE_PARCEL_WITH_RET(data, String, iter.first, false); in OnThermalActionChanged()
Dthermal_temp_callback_proxy.cpp45 THERMAL_WRITE_PARCEL_WITH_RET(data, String, iter.first, false); in OnThermalTempChanged()
Dthermal_temp_callback_stub.cpp68 THERMAL_READ_PARCEL_WITH_RET(data, String, type, E_READ_PARCEL_ERROR_THERMAL); in OnThermalTempChangedStub()
Dthermal_action_callback_stub.cpp62 THERMAL_READ_PARCEL_WITH_RET(data, String, type, E_READ_PARCEL_ERROR_THERMAL); in OnThermalActionChangedStub()
/base/telephony/state_registry/
DREADME_zh.md57 | function on(type: String, options: { slotId?: number }, callback: AsyncCallback\<T\>): void; | 开启…
58 | function off(type: String, callback?: AsyncCallback\<T\>): void; | 关闭订阅 |
/base/telephony/ril_adapter/frameworks/src/
Dhril_base_parcel.cpp159 std::string &HrilBaseParcel::String(void) const in String() function in OHOS::Telephony::HrilBaseParcel
168 std::string &str = String(); in ToString()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp37 explicit UString(const std::u16string &String) in UString() argument
39 string_ = std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> {}.to_bytes(String); in UString()
/base/telephony/call_manager/services/call/src/
Dcall_connect_ability.cpp41 wantParams.SetParam("accountNumber", AAFwk::String::Box(std::string(info.accountNumber))); in ConnectAbility()
/base/telephony/ril_adapter/interfaces/innerkits/include/
Dhril_base_parcel.h133 std::string &String(void) const;
203 DesensitizeStringStream dss(String(), StringStream()); in ToString()

12