Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 84) sorted by relevance

1234

/commonlibrary/rust/ylong_json/src/
Dstates.rs425 let str = in parse_number() localVariable
738 let str = "\""; in ut_parse_string() localVariable
749 let str = "abcdefghijklmnopqrstuvwxyz1234567890-=~!@#$%^&*()_+[]{}|<>?:;'\""; in ut_parse_string() localVariable
763 let str = r#"\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t""#; in ut_parse_string() localVariable
781 let str = r#"\uD852\uDF62""#; in ut_parse_string() localVariable
793 let str = "abc"; in ut_parse_string() localVariable
798 let str = r#"\g""#; in ut_parse_string() localVariable
803 let str = r"\"; in ut_parse_string() localVariable
808 let str = r"\uBEEF"; in ut_parse_string() localVariable
812 let str = r"\uZ000"; in ut_parse_string() localVariable
[all …]
Dadapter.rs749 let str = from_utf8_unchecked(slice); in ylong_json_has_object_item() localVariable
1132 let str = str_to_c_char(JSON_TEXT); in ut_ylong_json_parse() localVariable
1145 let str = str_to_c_char("{"); in ut_ylong_json_parse() localVariable
1177 let str = str_to_c_char(JSON_TEXT); in ut_ylong_json_free_string() localVariable
1210 let str = str_to_c_char("{\"array\":[1,2,3]}"); in ut_ylong_json_print_unformatted() localVariable
1243 let str = str_to_c_char(JSON_TEXT); in ut_ylong_json_delete() localVariable
1278 let str = str_to_c_char(JSON_TEXT); in ut_ylong_json_duplicate() localVariable
1797 let str = null(); in ut_ylong_json_create_string() localVariable
1800 let str = str_to_c_char("Hello World"); in ut_ylong_json_create_string() localVariable
1827 let str = str_to_c_char("Hello World"); in ut_ylong_json_is_string() localVariable
[all …]
Dserializer_compact.rs195 _name: &'static str, in serialize_unit_variant()
197 variant: &'static str, // The name of the variant. in serialize_unit_variant()
203 fn serialize_newtype_struct<T>(self, _name: &'static str, value: &T) -> Result<(), Error> in serialize_newtype_struct()
216 _name: &'static str, in serialize_newtype_variant()
218 variant: &'static str, // The name of the variant. in serialize_newtype_variant()
252 _name: &'static str, in serialize_tuple_struct()
262 _name: &'static str, in serialize_tuple_variant()
264 variant: &'static str, // The name of the variant. in serialize_tuple_variant()
284 _name: &'static str, in serialize_struct()
294 _name: &'static str, in serialize_struct_variant()
[all …]
Ddeserializer.rs370 let str = self.de_parse_string()?; in deserialize_str() localVariable
457 _name: &'static str, in deserialize_unit_struct()
468 _name: &'static str, in deserialize_newtype_struct()
521 _name: &'static str, in deserialize_tuple_struct()
568 _name: &'static str, in deserialize_struct()
569 _fields: &'static [&'static str], in deserialize_struct()
580 _name: &'static str, in deserialize_enum()
581 _variants: &'static [&'static str], in deserialize_enum()
835 _fields: &'static [&'static str], in struct_variant()
1044 let str = "null"; in ut_deserialize_struct() localVariable
[all …]
/commonlibrary/c_utils/base/src/
Dstring_ex.cpp29 string UpperStr(const string& str) in UpperStr()
36 string LowerStr(const string& str) in LowerStr()
43 string ReplaceStr(const string& str, const string& src, const string& dst) in ReplaceStr()
59 string TrimStr(const string& str, const char cTrim /*= ' '*/) in TrimStr()
93 void SplitStr(const string& str, const string& sep, vector<string>& strs, bool canEmpty, bool needT… in SplitStr()
116 bool StrToInt(const string& str, int& value) in StrToInt()
134 bool IsNumericStr(const string& str) in IsNumericStr()
149 bool IsAlphaStr(const string& str) in IsAlphaStr()
164 bool IsUpperStr(const string& str) in IsUpperStr()
179 bool IsLowerStr(const string& str) in IsLowerStr()
[all …]
Dfile_ex.cpp356 string str; in StringExistsInFile() local
373 int CountStrInStr(const string& str, const string& subStr) in CountStrInStr()
398 string str; in CountStrInFile() local
/commonlibrary/c_utils/base/test/unittest/common/
Dutils_file_test.cpp82 string str; variable
104 string str; variable
116 string str; variable
131 string str; variable
146 string str; variable
161 string str; variable
583 string str = "abc"; variable
595 string str = NULL_STR; variable
609 string str = "world"; variable
639 string str = "woRld"; variable
[all …]
Dutils_rwlock_test.cpp36 void WriteStr(const string& str) in WriteStr()
47 void ReadStr(string& str) in ReadStr()
/commonlibrary/ets_utils/js_api_module/xml/test/
Dtest_xml.h166 TagEnum XmlTest::ParseTagType(napi_env env, std::string str, int apiVersion) in ParseTagType()
177 std::string XmlTest::SkipText(napi_env env, std::string strXml, std::string str) in SkipText()
421 bool XmlTest::ParseDeclaration(napi_env env, std::string str) in ParseDeclaration()
465 bool XmlTest::ParseStartTag(napi_env env, std::string str) in ParseStartTag()
478 bool XmlTest::ParseEndTagFunction(napi_env env, std::string str) in ParseEndTagFunction()
491 bool XmlTest::ParseTagValueFunc(napi_env env, std::string str, char &c, size_t &start, std::string … in ParseTagValueFunc()
498 std::string XmlTest::DealLengthFuc(napi_env env, std::string str, size_t minimum, std::string pushS… in DealLengthFuc()
507 TagEnum XmlTest::ParseStartTagFuncTest(napi_env env, std::string str, bool xmldecl, bool throwOnRes… in ParseStartTagFuncTest()
517 int XmlTest::SkipCharFunction(napi_env env, std::string str, char expected) in SkipCharFunction()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/dns/
Ddoh.rs124 fn add_doh_server(&mut self, doh_server: &str) { in add_doh_server()
145 authority: &str, in doh_connect()
166 fn get_info(text: &str, port: u16) -> (Vec<SocketAddr>, u64) { in get_info()
183 fn get_answer_str(answer_section: &str, start: usize) -> Option<(usize, &str)> { in get_answer_str()
189 fn get_socket_addr(answer_str: &str, port: u16) -> Option<SocketAddr> { in get_socket_addr()
/commonlibrary/ets_utils/js_api_module/buffer/
Djs_buffer.cpp322 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data())); in WriteString() local
329 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data())); in WriteString() local
341 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data())); in WriteStringLoop() local
354 string str = ""; in Utf16StrToStr() local
368 string str = Utf16StrToStr(value); in WriteString() local
374 string str = Utf16StrToStr(value); in WriteStringLoop() local
439 string str = ""; in GetString() local
468 string str = GetString(value, encodingType); in FillString() local
481 string str = GetString(value, encodingType); in WriteString() local
Dnative_module_buffer.cpp60 string str = ""; in GetStringUtf8() local
75 string str = ""; in GetStringASCII() local
93 static napi_value FromStringUtf8(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf8()
103 static napi_value FromStringASCII(napi_env env, napi_value thisVar, napi_value str, uint32_t size) in FromStringASCII()
120 static napi_value FromStringUtf16LE(napi_env env, napi_value thisVar, napi_value str) in FromStringUtf16LE()
132 static std::string GetStringBase64(napi_env env, napi_value str, EncodingType type) in GetStringBase64()
139 static napi_value FromStringBase64(napi_env env, napi_value thisVar, napi_value str, uint32_t size,… in FromStringBase64()
149 static std::string GetStringHex(napi_env env, napi_value str) in GetStringHex()
156 static napi_value FromStringHex(napi_env env, napi_value thisVar, napi_value str) in FromStringHex()
927 std::string str = buf->ToBase64(start, length); in ToBase64() local
[all …]
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
Dfile_benchmark_test.cpp120 string str; in BENCHMARK_F() local
147 string str; in BENCHMARK_F() local
165 string str; in BENCHMARK_F() local
185 string str; in BENCHMARK_F() local
205 string str; in BENCHMARK_F() local
225 string str; in BENCHMARK_F() local
703 string str = "abc"; in BENCHMARK_F() local
720 string str = NULL_STR; in BENCHMARK_F() local
739 string str = "world"; in BENCHMARK_F() local
780 string str = "woRld"; in BENCHMARK_F() local
[all …]
/commonlibrary/rust/ylong_http/ylong_http/src/
Dpseudo.rs71 pub fn authority(&self) -> Option<&str> { in authority()
91 pub fn method(&self) -> Option<&str> { in method()
111 pub fn path(&self) -> Option<&str> { in path()
131 pub fn scheme(&self) -> Option<&str> { in scheme()
151 pub fn status(&self) -> Option<&str> { in status()
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
Dmimetype.rs99 let str = path in from_path() localVariable
116 pub fn as_str(&self) -> &str { in as_str()
132 pub fn main_type(&self) -> &str { in main_type()
148 pub fn sub_type(&self) -> &str { in sub_type()
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
Dylong_runtime_async_benchmark.rs22 async fn run_client(addr: &str) { in run_client()
38 async fn run_server(addr: &str) { in run_server()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
Dpinning.rs74 pub fn get_digest(&self) -> &str { in get_digest()
124 pub fn add(mut self, uri: &str, digest: &str) -> Self { in add()
154 pub fn add_with_root_strategy(mut self, uri: &str, digest: &str) -> Self { in add_with_root_strategy()
/commonlibrary/ets_utils/js_api_module/buffer/test/
Dtest_napi.cpp516 std::string str = "1234567890"; variable
531 std::string str = "123456789"; variable
552 std::string str = "123456789"; variable
573 std::string str = "123456789"; variable
594 std::string str = "123456789"; variable
616 std::string str = "12345678"; variable
647 std::string str = "1234567890"; variable
672 std::string str = "1234567890"; variable
/commonlibrary/c_utils/base/test/unittest/rust/
Drust_utils_file_test.rs56 let mut str = String::new(); in test_load_string_from_file_001() localVariable
75 let mut str = String::new(); in test_load_string_from_file_002() localVariable
84 let mut str = String::new(); in test_load_string_from_file_003() localVariable
96 let mut str = String::new(); in test_load_string_from_file_004() localVariable
108 let mut str = String::new(); in test_load_string_from_file_005() localVariable
120 let mut str = String::new(); in test_load_string_from_file_006() localVariable
586 let str = "abc".to_string(); in test_count_str_in_file_001() localVariable
596 let str = NULL_STR.to_string(); in test_count_str_in_file_002() localVariable
/commonlibrary/c_utils/base/test/fuzztest/string_fuzzer/
Dstring_fuzzer.cpp34 string str = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in StringTestFunc() local
/commonlibrary/memory_utils/libpurgeablemem/test/
Dpurgeableashmem_test.cpp63 char *str = static_cast<char *>(data); in Build() local
94 char *str = static_cast<char *>(data); in Build() local
125 char *str = static_cast<char *>(data); in Build() local
182 char *str = static_cast<char *>(dataPtr); variable
Dpurgeable_memory_test.cpp119 char *str = (char *)data; in InitData() local
140 char *str = (char *)data; in ModifyData() local
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/
Dmod.rs193 let str = value.to_vec(); in get_content_type_boundary() localVariable
194 let str = trim_ascii(&str); in get_content_type_boundary() localVariable
/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/
Drwlock_benchmark_test.cpp60 void WriteStr(const string& str) in WriteStr()
72 void ReadStr(string& str) in ReadStr()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
Dtest_utils.rs25 pub(crate) fn format_header_str(key: &str, value: &str) -> String { in format_header_str()

1234