Home
last modified time | relevance | path

Searched refs:text (Results 1 - 18 of 18) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http/src/body/
H A Dtext.rs24 /// `TextBody` is used to represent the body of plain text type.
38 /// let text = "Hello World";
39 /// let body = TextBody::from_bytes(text.as_bytes());
91 /// let text = "Hello World";
92 /// let mut body = TextBody::from_bytes(text.as_bytes());
111 /// let text = "Hello World";
112 /// let mut body = TextBody::from_bytes(text.as_bytes());
139 /// let text = "Hello World";
140 /// let body = TextBody::from_bytes(text.as_bytes());
250 /// let (text, lef
[all...]
H A Dmod.rs37 //! - [`TextBody`]: `TextBody` represents a plain-text body.
47 mod text; modules
56 pub use text::{Text, TextBody, TextBodyDecoder};
98 /// [`TextBody`]: super::text::TextBody
155 /// [`TextBody`]: super::text::TextBody
219 /// [`TextBody`]: super::text::TextBody
289 /// [`TextBody`]: super::text::TextBody
332 /// C ; type = text ;end = !\r\n\
335 /// accept:text/html\r\n\r\n\
344 /// "text/htm
[all...]
/commonlibrary/rust/ylong_http/ylong_http/src/
H A Dheaders.rs34 //! headers.insert("Accept", "text/html").unwrap();
39 //! "text/html"
296 /// let mut value = HeaderValue::from_bytes(b"text/html").unwrap();
299 /// assert_eq!(value.to_string().unwrap(), "text/html, application/xml");
319 /// let value = HeaderValue::from_bytes(b"text/html").unwrap();
320 /// assert_eq!(value.to_string().unwrap(), "text/html");
346 /// let mut value = HeaderValue::from_bytes(b"text/html").unwrap();
347 /// let other = HeaderValue::from_bytes(b"text/plain").unwrap();
350 /// assert_eq!(value.to_string().unwrap(), "text/html, text/plai
[all...]
/commonlibrary/rust/ylong_json/tests/
H A Dsdv_adapter_test.rs178 let text = str_to_c_char(RFC7159_EXAMPLE1); in sdv_adapter_parse_and_print()
182 text, in sdv_adapter_parse_and_print()
204 // 析构 text in sdv_adapter_parse_and_print()
205 let _ = CString::from_raw(text); in sdv_adapter_parse_and_print()
225 let text = str_to_c_char(TEXT); in sdv_adapter_parse_memory_check()
227 let json = ylong_json_parse(text, &msg as *const *mut c_char as *mut *mut c_char); in sdv_adapter_parse_memory_check()
228 let _ = Box::from_raw(text); in sdv_adapter_parse_memory_check()
/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs.cpp286 char* text = JSI::GetStringProperty(args, TEXT); in ExecuteWriteTextFile() local
290 if ((text == nullptr) || (ret != NATIVE_SUCCESS)) { in ExecuteWriteTextFile()
294 ret = WriteTextFile(g_uriFullPath, text, strlen(text), append); in ExecuteWriteTextFile()
301 JSI::ReleaseString(text); in ExecuteWriteTextFile()
327 char* text = reinterpret_cast<char *>(malloc(readLen + 1)); in ReadTextInner() local
328 if (text == nullptr) { in ReadTextInner()
332 ret = ReadFileImpl(g_uriFullPath, text, readLen, position, &actualLen); in ReadTextInner()
334 free(text); in ReadTextInner()
337 text[actualLe in ReadTextInner()
404 void* text = malloc(info.st_size + 1); ReadArrayFileInner() local
[all...]
H A Dnativeapi_fs_impl.c326 int ReadFileImpl(const char* fileName, void* text, size_t len, unsigned int position, size_t* actualLen) in ReadFileImpl() argument
328 if (!IsValidPath(fileName) || (text == NULL)) { in ReadFileImpl()
361 int readLen = read(fileHandle, text, len); in ReadFileImpl()
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dhttp_body.rs59 pub(crate) fn text(len: u64, pre: &[u8], io: BoxStreamData) -> Self {
105 Kind::Text(ref mut text) => text.data(buf), in data()
135 let (text, rem) = self.decoder.decode(&buf[..read]); in data()
137 match (text.is_complete(), rem.is_empty()) { in data()
165 let (text, rem) = self.decoder.decode(&buf[read..read + filled]); in data()
168 match (text.is_complete(), rem.is_empty()) { in data()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dhttp_body.rs122 Kind::Text(ref mut text) => text.data(cx, buf), in poll_data()
166 Kind::Text(ref mut text) => text.io.as_mut(), in drop()
330 let (text, rem) = self.decoder.decode(&buf[..read]); in read_remaining()
333 match (text.is_complete(), rem.is_empty()) { in read_remaining()
375 let (text, rem) = self.decoder.decode(read_buf.filled()); in poll_read_io()
379 match (text.is_complete(), rem.is_empty()) { in poll_read_io()
592 C ; type = text ;end = !\r\n\
595 accept:text/htm
784 let mut text = HttpBody::new( global() variables
806 let mut text = HttpBody::new( global() variables
[all...]
H A Dresponse.rs39 pub async fn text(mut self) -> Result<String, HttpClientError> {
/commonlibrary/utils_lite/js/builtin/filekit/include/
H A Dnativeapi_fs_impl.h42 int ReadFileImpl(const char* fileName, void* text, size_t len, unsigned int position, size_t* actualLen);
/commonlibrary/ets_utils/js_api_module/xml/
H A Dnative_module_xml.cpp340 std::string text; in SetText() local
341 XmlSerializer::DealNapiStrValue(env, args[0], text); in SetText()
342 object->SetText(text); in SetText()
360 std::string text; in SetDocType() local
361 XmlSerializer::DealNapiStrValue(env, args[0], text); in SetDocType()
362 object->SetDocType(text); in SetDocType()
H A Djs_xml.h106 void SetText(const std::string &text);
111 * @param text The parameter is the content of the DocType property.
113 void SetDocType(const std::string &text);
245 * Get the text content of the current event.
247 * @param info The parameter is to return the text content of the current event.
259 * Determines whether the current text event contains only space characters.
261 * @param info The parameter is to returns true, the current text event contains only space characters.
H A Djs_xml.cpp257 void XmlSerializer::SetText(const std::string &text) in SetText() argument
264 WriteEscaped(text); in SetText()
321 void XmlSerializer::SetDocType(const std::string &text) in SetDocType() argument
331 out_ += "<!DOCTYPE " + text + ">"; in SetDocType()
/commonlibrary/rust/ylong_json/src/
H A Dstates.rs91 // If the text is not finished, return TrailingBytes Error.
843 // 3.Enters a value (text terminated prematurely, illegal) and return the corresponding Error. in ut_parse_number()
940 // 3.Enters a value (text terminated prematurely, illegal) and return the corresponding Error. in ut_parse_array()
999 // 3.Enters a value (text terminated prematurely, illegal) and return the corresponding Error. in ut_parse_object()
1069 let text = r#" in ut_recursion_limit()
1079 let mut deserializer = Deserializer::new_from_slice(text.as_ref()); in ut_recursion_limit()
1083 let text = r#" in ut_recursion_limit()
1093 let mut deserializer = Deserializer::new_from_slice(text.as_ref()); in ut_recursion_limit()
1102 let text = str.as_bytes(); in ut_recursion_limit()
1103 let mut deserializer = Deserializer::new_from_slice(text); in ut_recursion_limit()
[all...]
H A Dadapter.rs37 /// Parses a JSON text string.
1131 // Passes in the correct syntax text string. in ut_ylong_json_parse()
1144 // Passes in the incorrect syntax text string. in ut_ylong_json_parse()
3061 let text = str_to_c_char(TEXT); in ut_ylong_json_get_all_object_items()
3063 let object = ylong_json_parse(text, &mut err_msg as *mut *mut c_char); in ut_ylong_json_get_all_object_items()
3064 let _ = Box::from_raw(text); in ut_ylong_json_get_all_object_items()
3133 let text = str_to_c_char(TEXT); in ut_ylong_json_for_each_object_item()
3135 let object = ylong_json_parse(text, err_msg); in ut_ylong_json_for_each_object_item()
3136 let _ = Box::from_raw(text); in ut_ylong_json_for_each_object_item()
3182 let text in ut_ylong_json_get_object_node()
[all...]
H A Dvalue.rs42 /// There are 6 types of values that appear in Json text:
57 /// “A Json value must be an object, an array, a number, a string, or a text string of false, null, or true.”
686 /// Gets the text from an object that implements the Read trait provided in fmt()
702 /// Reads the text from a type that can be converted to [u8] and Trys to deserialize it to a Json instance. in fmt()
708 /// let text = r#" in fmt()
713 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
717 pub fn from_text<T: AsRef<[u8]>>(text: T) -> Result<Self, Error> { in fmt()
718 let mut deserializer = Deserializer::new_from_slice(text.as_ref()); in fmt()
728 /// let text = r#"{ in fmt()
732 /// let value = JsonValue::from_text(text in fmt()
[all...]
/commonlibrary/ets_utils/js_api_module/convertxml/
H A Djs_convertxml.h38 std::string text = "_text"; member
78 * To convert XML text to JavaScript object.
98 * To convert XML text to JavaScript object.
101 * @param strXml A string of XML text.
H A Djs_convertxml.cpp31 strResult = "text"; in GetNodeType()
216 SetKeyValue(env, elementsObject, options_.text, in SetEndInfo()
221 SetKeyValue(env, elementsObject, options_.text, curContent); in SetEndInfo()
441 case 3: // 3:text in SetDefaultKey()
442 options_.text = strRecv; in SetDefaultKey()

Completed in 18 milliseconds