Home
last modified time | relevance | path

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

123

/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DPluralFetcher.java42 private HashMap<String, String> map;
43 private HashMap<String, String> decimalMap;
61 String line = ""; in init()
63 String[] temp = getPluralItems(line); in init()
73 String line = ""; in init()
75 String[] temp = getPluralItems(line); in init()
89 public String get(String lan) { in get()
90 String out = map.get(lan); in get()
103 public String getDecimal(String lan) { in getDecimal()
104 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.java70 String method;
73 String pub;
74 String sep;
75 String pointer;
76 String type;
93 public String getMethod() { in getMethod()
120 public String getPub() { in getPub()
129 public String getSep() { in getSep()
138 public String getPointer() { in getPointer()
147 public String getType() { in getType()
[all …]
DDataFetcher.java54 private static final ArrayList<String> SCRIPTS = new ArrayList<>(Arrays.asList(
57 private static final ArrayList<String> DATA_TYPES = new ArrayList<>(Arrays.asList(
65 private static final HashMap<String, Integer> ID_MAP = new HashMap<>(64);
66 private static final HashMap<String, Integer> LOCALES = new HashMap<>();
72 private static final String SEP = File.separator;
92 String line = ""; in addFetchers()
96 String tag = line.trim(); in addFetchers()
107 LOG.log(Level.SEVERE, String.format("wrong languageTag %s", tag)); in addFetchers()
124 private static int processWildcard(String line, ULocale[] availableLocales, int count) { in processWildcard()
125 String tag = line.trim(); in processWildcard()
[all …]
DFetcher.java52 private static HashMap<Integer, String> int2Str = new HashMap<>();
53 private static HashMap<String, Integer> str2Int = new HashMap<>();
65 public final ArrayList<String> datas = new ArrayList<>();
70 public final Map<String, Integer> idMap;
75 public final String languageTag;
78 private String lan; // language
84 private String defaultHourString;
90 public Fetcher(String tag, ReentrantLock lock, Map<String, Integer> idMap) { in Fetcher() argument
92 LOG.log(Level.SEVERE, String.format("wrong languageTag %s", tag)); in Fetcher()
130 public static HashMap<Integer, String> getInt2Str() { in getInt2Str()
[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…
59 public static String getFallback(String languageTag) { in getFallback()
63 String[] split = languageTag.split("-"); in getFallback()
82 public static boolean isValidLanguageTag(String languageTag) { in isValidLanguageTag()
86 String[] items = languageTag.split("-"); in isValidLanguageTag()
118 private static boolean checkLanguage(String lan) { in checkLanguage()
135 private static boolean checkScript(String script) { in checkScript()
[all …]
DLocaleMaskItem.java33 private String languageTag;
34 private String maskString;
43 public LocaleMaskItem(String languageTag, ArrayList<LocaleConfig> configs) { in LocaleMaskItem()
73 public String getLanguageTag() { in getLanguageTag()
81 public String getMaskString() { in getMaskString()
DFileConfig.java52 public static final String NUMBER_SEP = ";";
57 public static final String SEP = "_";
DLocaleConfig.java25 public final String name;
36 public LocaleConfig(String str, int nameId, int stringId) { in LocaleConfig()
DStringPool.java35 …private static final String ARABIC_PERCENT = new DecimalFormatSymbols(new ULocale("ar")).getPercen…
41 private HashMap<Integer, String> int2StrMap = new HashMap<>();
46 public StringPool(HashMap<String, Integer> hashMap, int offset) { in StringPool() argument
48 for (Map.Entry<String, Integer> next : hashMap.entrySet()) { in StringPool()
/base/request/request/services/service/rust/src/
Dtask_config.rs40 pub bundle: String,
41 pub url: String,
42 pub title: String,
43 pub description: String,
44 pub method: String,
45 pub headers: HashMap<String, String>,
46 pub data: String,
47 pub token: String,
48 pub extras: HashMap<String, String>,
Dutils.rs27 pub fn convert_to_string(ptr: *const c_char) -> String { in convert_to_string() argument
37 pub fn hashmap_to_string(map: &HashMap<String, String>) -> String { in hashmap_to_string() argument
45 unsafe { String::from_utf8_unchecked(res) } in hashmap_to_string()
48 pub fn string_to_hashmap(str: &mut String) -> HashMap<String, String> { in string_to_hashmap() argument
49 let mut map = HashMap::<String, String>::new(); in string_to_hashmap()
60 pub fn split_string(str: &mut String) -> std::str::Split<'_, &str> { in split_string()
Dform_item.rs19 pub name: String,
20 pub path: String,
21 pub file_name: String,
22 pub mime_type: String,
54 pub name: String,
55 pub value: String,
Dtask_info.rs20 pub bundle: String,
21 pub url: String,
22 pub data: String,
23 pub token: String,
26 pub title: String,
27 pub description: String,
28 pub mime_type: String,
30 pub extras: HashMap<String, String>,
53 pub path: String,
55 pub message: String,
[all …]
Dprogress.rs32 pub extras: HashMap<String, String>,
54 extras: HashMap::<String, String>::new(), in new()
58 pub fn to_c_struct(&self, sizes: &String, processed: &String, extras: &String) -> CProgress { in to_c_struct() argument
Drequest_service.rs29 string::String,
76 let url: String = data.read()?; in construct()
77 let title: String = data.read()?; in construct()
78 let method: String = data.read()?; in construct()
79 let token: String = data.read()?; in construct()
80 let description: String = data.read()?; in construct()
81 let data_base: String = data.read()?; in construct()
91 let name: String = data.read()?; in construct()
92 let value: String = data.read()?; in construct()
105 let name: String = data.read()?; in construct()
[all …]
Dc_string_wrapper.rs31 pub fn to_string(&self) -> String { in to_string() argument
34 return String::new(); in to_string()
37 let str = unsafe { String::from_utf8_unchecked(bytes.to_vec()) }; in to_string()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_kits_test.cpp40 using String = OHOS::AAFwk::String; typedef
109 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box("test.txt.dlp"));
113 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box(VALUE_KEY_FD_TYPE));
136 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box("test.txt.dlp"));
140 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box(VALUE_KEY_FD_TYPE));
163 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box(VALUE_KEY_FD_TYPE));
186 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box("test.txt"));
190 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box(VALUE_KEY_FD_TYPE));
213 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box(".dlp"));
217 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box(VALUE_KEY_FD_TYPE));
[all …]
/base/update/packaging_tools/zipalign/src/main/java/com/ohos/
DZipAlign.java50 List<String> entryNames = getEntryNamesFromZip(inputZip); in copyFileAndAlignment()
55 …private static void copyFiles(List<String> entryNames, ZipFile in, ZipOutputStream out, long times… in copyFiles()
59 for (String name : entryNames) { in copyFiles()
95 private static int getStoredEntryDataAlignment(String entryData, int defaultAlignment) { in getStoredEntryDataAlignment()
105 private static List<String> getEntryNamesFromZip(ZipFile zipFile) { in getEntryNamesFromZip()
106 List<String> result = new ArrayList<String>(); in getEntryNamesFromZip()
119 public static void main(String[] args) { in main()
125 String inputFilePath = args[0]; in main()
127 String outputFilePath = args[1]; in main()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_plugin.cpp130 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
131 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
132 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("222")); in GetDomainAccountInfo()
138 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
139 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
140 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("555")); in GetDomainAccountInfo()
146 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
147 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
148 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("444")); in GetDomainAccountInfo()
154 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
[all …]
/base/request/request/test/unittest/rust/src/
Dcommon.rs35 headers: HashMap::<String, String>::new(), in construct_download_task()
38 extras: HashMap::<String, String>::new(), in construct_download_task()
73 pub fn remove_files(paths: Vec<String>) { in remove_files() argument
/base/update/updater/services/rust/hash_signed_data/src/
Dhsd.rs22 name: String,
23 signature: String
32 type Error = String;
46 type Error = String;
62 pub fn get_sig_for_file(&self, file_name: &str) -> Result<Vec<u8>, String> in get_sig_for_file() argument
/base/msdp/device_status/rust/data/sys/src/ipc/
Dcoordination.rs62 pub remote_network_id: String,
83 remote_network_id: String::deserialize(parcel)?, in deserialize()
122 pub device_id: String,
141 device_id: String::deserialize(parcel)?, in deserialize()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_cpu_data.cpp34 RETURN_PARCEL_WRITE_HELPER_RET(parcel, String, startTime_, false); in Marshalling()
35 RETURN_PARCEL_WRITE_HELPER_RET(parcel, String, endTime_, false); in Marshalling()
61 RETURN_PARCEL_READ_HELPER_RET(parcel, String, startTime_, false); in ReadFromParcel()
62 RETURN_PARCEL_READ_HELPER_RET(parcel, String, endTime_, false); in ReadFromParcel()
/base/request/request/services/service/rust/src/c_wrapper/source/
Dbackground_notification.cpp37 wantParams.SetParam("fileName", OHOS::AAFwk::String::Box(filepath)); in RequestBackgroundNotify()
39 wantParams.SetParam("title", OHOS::AAFwk::String::Box("Download")); in RequestBackgroundNotify()
41 wantParams.SetParam("title", OHOS::AAFwk::String::Box("Upload")); in RequestBackgroundNotify()

123