/ohos5.0/foundation/ability/idl_tool/test/unittest/util_string_test/ |
H A D | util_string_test.cpp | 62 EXPECT_EQ(String().IndexOf(String("name"), 1), -1); 63 EXPECT_EQ(String("name").IndexOf(String(), 1), -1); 94 EXPECT_FALSE(String().StartsWith(String("name"))); 95 EXPECT_FALSE(String("name").StartsWith(String())); 113 EXPECT_FALSE(String().EndsWith(String("name"))); 114 EXPECT_FALSE(String("name").EndsWith(String())); 118 EXPECT_TRUE(String("name").EndsWith(String(""))); 133 EXPECT_STREQ(String().ToLowerCase(), String()); 150 EXPECT_STREQ(String().ToUpperCase(), String()); 202 EXPECT_STREQ(name.Replace(String(".."), String("||")), String("n||a||m||e")); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/tools/ |
H A D | unpacking-tool.md | 122 … UncompressEntrance | UncompressResult parseApp(String appPath,String parseMode,String deviceType,… 123 …e | UncompressResult parseApp(InputStream input,String parseMode,String deviceType,String hapName,… 158 | deviceConfig | Map\<String,DeviceConfig> | 标识设备信息 | 存储类型为Map\<… 187 | labels | HashMap\<String, String> | 标识多语言应用程序AppJson的标签。 | NA | 188 | descriptions | HashMap\<String, String> | 标识多语言应用程序AppJson的说明。 | NA | 307 | reasons | HashMap\<String, String> | 当申请的权限为user_grant权限时此字段必填,描述申请权限的原因 | NA | 324 | labels | HashMap\<String, String> | 标识多语言下ShortCut对用户显示的名称 | NA | 495 | labels | HashMap\<String, String> | 标识多语言应用程序DefPermission的标签 | NA | 496 | descriptions | HashMap\<String, String> | 标识多语言应用程序DefPermission的说明 | NA | 509 | descriptions | HashMap\<String, String> | 标识多语言应用程序DefinePermission的说明 |… [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/ |
H A D | table.rs | 96 queue: VecDeque<(Field, String)>, 140 value: &String, in have_enough_space() argument 310 2 => Some((Field::Other(String::from("age")), String::from("0"))), in field() 313 String::from("0"), in field() 329 29 => Some((Field::Other(String::from("accept")), String::from("*/*"))), in field() 352 String::from("*"), in field() 450 60 => Some((Field::Other(String::from("vary")), String::from("origin"))), in field() 478 String::from("*"), in field() 508 83 => Some((Field::Other(String::from("alt-svc")), String::from("clear"))), in field() 513 86 => Some((Field::Other(String::from("early-data")), String::from("1"))), in field() [all …]
|
/ohos5.0/foundation/ability/idl_tool/codegen/ |
H A D | cpp_code_emitter.h | 106 const String& prefix); 140 const String& prefix); 143 const String& prefix); 146 const String& prefix); 180 String FileName(const String& name); 182 String GetFilePath(const String& fpnp); 184 String GetFilePathNoPoint(const String& fpnp); 186 String GetNamespace(const String& fpnp); 188 String MacroName(const String& name); 190 String CppFullName(const String& name); [all …]
|
H A D | ts_code_emitter.h | 88 const String& prefix); 99 const String& prefix); 102 const String& prefix); 105 const String& prefix); 108 const String& prefix); 117 const String& prefix); 147 const String& prefix); 159 String FileName(const String& name); 161 String MethodName(const String& name); 163 String ConstantName(const String& name); [all …]
|
H A D | rust_code_emitter.h | 53 String TrimDot(const String& fpnp); 55 String GeneratePath(const String& fpnp); 61 String GetCodeFromMethod(const char* name); 63 String GetNameFromParameter(const char* name); 79 String ConvertType(MetaType* mt, bool pt = false); 84 const String& name, const String& prefix); 87 const String& name, const String& prefix); 90 const String& name, const String& prefix); 93 const String& name, const String& prefix); 96 const String& name, const String& prefix); [all …]
|
H A D | code_emitter.h | 71 String directory_; 72 String interfaceName_; 73 String interfaceFullName_; 74 String proxyName_; 75 String proxyFullName_; 76 String stubName_; 77 String stubFullName_; 78 String deathRecipientName_; 79 String domainId_; 80 String logTag_; [all …]
|
/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | string.h | 23 class String { 25 String() {} in String() function 31 String(const String& other); 33 String(String&& other); 35 ~String(); 99 String Replace(const String& target, const String& replacement) const; 103 String& operator=(const String& other); 105 String& operator=(String&& other); 109 String operator+=(const String& other) const; 124 inline String operator+(const String& string1, const char* string2) [all …]
|
H A D | string.cpp | 111 String::String(const char* string) in String() function in OHOS::Idl::String 144 String::String(const String& other) in String() function in OHOS::Idl::String 150 String::String(String&& other) in String() function in OHOS::Idl::String 156 String::String(int size) in String() function in OHOS::Idl::String 164 String::~String() in ~String() 448 String String::ToLowerCase() const 467 String String::ToUpperCase() const 550 String String::Replace(const String& target, const String& replacement) const 593 String& String::operator=(const String& other) in operator =() 605 String& String::operator=(String&& other) in operator =() [all …]
|
H A D | options.h | 33 String hitraceTag; 34 String logTag; 35 String domainId; 177 String program_; 178 String sourceFile_; 179 String metadataFile_; 180 String targetLanguage_; 182 String illegalOptions_; 183 String hitraceTag_; 184 String domainId_; [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/ |
H A D | encoder.rs | 117 String::from("GET"), in ut_hpack_encoder() 130 String::from("GET"), in ut_hpack_encoder() 132 String::from("http"), in ut_hpack_encoder() 134 String::from("/"), in ut_hpack_encoder() 146 String::from("GET"), in ut_hpack_encoder() 148 String::from("http"), in ut_hpack_encoder() 150 String::from("/"), in ut_hpack_encoder() 164 String::from("GET"), in ut_hpack_encoder() 194 String::from("302"), in ut_hpack_encoder() 210 String::from("307"), in ut_hpack_encoder() [all …]
|
H A D | table.rs | 91 queue: VecDeque<(Header, String)>, 254 21 => Some(Header::Other(String::from("age"))), in header_name() 300 fn header(index: usize) -> Option<(Header, String)> { in header() argument 304 4 => Some((Header::Path, String::from("/"))), in header() 317 String::from("gzip, deflate"), in header() 412 Other(String), 432 pub(crate) fn into_string(self) -> String { in into_string() argument 435 Header::Method => String::from(":method"), in into_string() 436 Header::Path => String::from(":path"), in into_string() 437 Header::Scheme => String::from(":scheme"), in into_string() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/wlan/ |
H A D | interface_i_hostapd_interface.md | 24 | [SetApPasswd](#setappasswd) ([in] String ifName, [in] String pass, [in]int id) | 设置个人热点密码 | 25 | [SetApName](#setapname) ([in] String ifName, [in] String name, [in] int id) | 设置个人热点名称 | 35 | [DisassociateSta](#disassociatesta) ([in] String ifName, [in] String mac, [in] int id) | 断开指定的STA… 38 | [HostApdShellCmd](#hostapdshellcmd) ([in] String ifName, [in] String cmd) | 用于处理Hostapd的cmd命令 | 47 IHostapdInterface::DelMacFilter ([in] String ifName, [in] String mac, [in] int id ) 102 IHostapdInterface::DisassociateSta ([in] String ifName, [in] String mac, [in] int id ) 157 IHostapdInterface::GetStaInfos ([in] String ifName, [out] String buf, [in] int size, [in] int id ) 186 IHostapdInterface::HostApdShellCmd ([in] String ifName, [in] String cmd ) 352 IHostapdInterface::SetApName ([in] String ifName, [in] String name, [in] int id ) 380 IHostapdInterface::SetApPasswd ([in] String ifName, [in] String pass, [in] int id ) [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/unittest/cpp_code_emitter_test/ |
H A D | cpp_code_emitter_test.cpp | 126 const String inputStr1("abc"); 127 const String expectStr1("abc"); 173 const String prefix("const "); 199 const String prefix("const "); 224 const String prefix("const "); 249 const String prefix("const "); 274 const String prefix("const "); 299 const String prefix("const "); 1190 String prefix = "const"; 1321 String prefix = "const"; [all …]
|
/ohos5.0/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
H A D | PluralFetcher.java | 42 private HashMap<String, String> map; 43 private HashMap<String, String> decimalMap; 61 String line = ""; in init() 73 String 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() 111 private static String[] getPluralItems(String line) { in getPluralItems() 112 String[] ret = new String[2]; in getPluralItems() 117 return new String[0]; in getPluralItems() [all …]
|
H A D | DataFetcher.java | 92 String line = ""; in addFetchers() 125 String tag = line.trim(); in processWildcard() 161 String fallbackData = null; in countData() 215 private static int localeCompare(String locale1, String locale2) { in localeCompare() 217 String script1 = ""; in localeCompare() 218 String region1 = ""; in localeCompare() 231 String script2 = ""; in localeCompare() 232 String region2 = ""; in localeCompare() 244 String lang1 = locale1Parts[0]; in localeCompare() 245 String lang2 = locale2Parts[0]; in localeCompare() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | pseudo.rs | 23 authority: Option<String>, 24 method: Option<String>, 25 path: Option<String>, 26 scheme: Option<String>, 27 status: Option<String>, 102 pub fn set_path(&mut self, path: Option<String>) { in set_path() argument 259 pseudo.method = Some(String::from("method")); in ut_pseudo_headers_contains_method() 325 pseudo.path = Some(String::from("path")); in ut_pseudo_headers_contains_path() 341 pseudo.path = Some(String::from("path")); in ut_pseudo_headers_path() 356 pseudo.set_path(Some(String::from("path"))); in ut_pseudo_headers_set_path() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/ |
H A D | pseudo.rs | 23 authority: Option<String>, 24 method: Option<String>, 25 path: Option<String>, 26 scheme: Option<String>, 27 status: Option<String>, 101 pub fn set_path(&mut self, path: Option<String>) { in set_path() argument 258 pseudo.method = Some(String::from("method")); in ut_pseudo_headers_contains_method() 324 pseudo.path = Some(String::from("path")); in ut_pseudo_headers_contains_path() 340 pseudo.path = Some(String::from("path")); in ut_pseudo_headers_path() 355 pseudo.set_path(Some(String::from("path"))); in ut_pseudo_headers_set_path() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/tests/ |
H A D | sdv_adapt_serde_test.rs | 31 title: String, 43 url: String, 120 address: String, 122 city: String, 124 state: String, 277 string1: String, 278 string2: String, 279 string3: String, 280 string4: String, 355 mem1: String, [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/rust/ |
H A D | directory_ex.rs | 48 pub fn RustGetCurrentProcFullFileName() -> String; in RustGetCurrentProcFullFileName() 51 pub fn RustGetCurrentProcPath() -> String; in RustGetCurrentProcPath() 54 pub fn RustExtractFilePath(fileFullName: &String) -> String; in RustExtractFilePath() argument 57 pub fn RustExtractFileName(fileFullName: &String) -> String; in RustExtractFileName() argument 61 pub fn RustExtractFileExt(fileName: &String) -> String; in RustExtractFileExt() argument 65 pub fn RustExcludeTrailingPathDelimiter(path: &String) -> String; in RustExcludeTrailingPathDelimiter() argument 69 pub fn RustIncludeTrailingPathDelimiter(path: &String) -> String; in RustIncludeTrailingPathDelimiter() argument 72 pub fn RustGetDirFiles(path: &String, files: &mut Vec<String>); in RustGetDirFiles() argument 98 pub fn RustPathToRealPath(path: &String, realPath: &mut String) -> bool; in RustPathToRealPath() argument
|
H A D | file_ex.rs | 24 pub fn RustLoadStringFromFile(filePath: &String, content: &mut String) -> bool; in RustLoadStringFromFile() argument 27 pub fn RustSaveStringToFile(filePath: &String, content: &String, truncated: bool) -> bool; in RustSaveStringToFile() argument 30 pub fn RustLoadStringFromFd(fd: i32, content: &mut String) -> bool; in RustLoadStringFromFd() 33 pub fn RustSaveStringToFd(fd: i32, content: &String) -> bool; in RustSaveStringToFd() 36 pub fn RustLoadBufferFromFile(filePath: &String, content: &mut Vec<c_char>) -> bool; in RustLoadBufferFromFile() argument 40 filePath: &String, in RustSaveBufferToFile() argument 46 pub fn RustFileExists(fileName: &String) -> bool; in RustFileExists() 50 fileName: &String, in RustStringExistsInFile() argument 51 subStr: &String, in RustStringExistsInFile() argument 56 pub fn RustCountStrInFile(fileName: &String, subStr: &String, caseSensitive: bool) -> i32; in RustCountStrInFile() argument
|
/ohos5.0/docs/en/application-dev/tools/ |
H A D | unpacking-tool.md | 122 … UncompressEntrance | UncompressResult parseApp(String appPath,String parseMode,String deviceType,… 123 …e | UncompressResult parseApp(InputStream input,String parseMode,String deviceType,String hapName,… 187 | labels | HashMap\<String, String> | Labels of the application in multiple… 188 | descriptions | HashMap\<String, String> | Descriptions of the application in mu… 221 | descriptions | HashMap\<String, String> | Description of the HAP. … 324 | labels | HashMap\<String, String> | Shortcut names displayed to users in multiple languages. … 495 | labels | HashMap\<String, String> | Labels of the default permission in multiple language… 496 | descriptions | HashMap\<String, String> | Descriptions of the default permission in multiple la… 509 | descriptions | HashMap\<String, String> | Descriptions of the defined permission in mul… 510 | labels | HashMap\<String, String> | Labels of the defined permission in multiple … [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/ril/ |
H A D | _setup_data_call_result_info_v10.md | 29 | String [address](#address) | 网络地址 | 30 | String [dns](#dns) | 域名服务地址 | 31 | String [dnsSec](#dnssec) | 备用域名服务地址 | 32 | String [gateway](#gateway) | 网关地址 | 53 String SetupDataCallResultInfo::address 73 String SetupDataCallResultInfo::dns 83 String SetupDataCallResultInfo::dnsSec 103 String SetupDataCallResultInfo::gateway 123 String SetupDataCallResultInfo::netPortName 143 String SetupDataCallResultInfo::pCscfSecAddr [all …]
|
H A D | _setup_data_call_result_info_v11.md | 29 | String [address](#address) | 网络地址 | 30 | String [dns](#dns) | 域名服务地址 | 31 | String [dnsSec](#dnssec) | 备用域名服务地址 | 32 | String [gateway](#gateway) | 网关地址 | 53 String SetupDataCallResultInfo::address 73 String SetupDataCallResultInfo::dns 83 String SetupDataCallResultInfo::dnsSec 103 String SetupDataCallResultInfo::gateway 123 String SetupDataCallResultInfo::netPortName 143 String SetupDataCallResultInfo::pCscfSecAddr [all …]
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | directory_ex.h | 29 rust::String RustGetCurrentProcFullFileName(); 30 rust::String RustGetCurrentProcPath(); 31 rust::String RustExtractFilePath(const rust::String& fileFullName); 32 rust::String RustExtractFileName(const rust::String& fileFullName); 33 rust::String RustExtractFileExt(const rust::String& fileName); 34 rust::String RustExcludeTrailingPathDelimiter(const rust::String& path); 35 rust::String RustIncludeTrailingPathDelimiter(const rust::String& path); 36 bool RustPathToRealPath(const rust::String& path, rust::String& realPath); 37 void RustGetDirFiles(const rust::String& path, rust::vec<rust::String>& files);
|