Searched refs:cstr (Results 1 – 3 of 3) sorted by relevance
105 tree cstr, elem, index, type; in build_const_char_string() local107 cstr = build_string(len, str); in build_const_char_string()111 TREE_TYPE(cstr) = type; in build_const_char_string()112 TREE_CONSTANT(cstr) = 1; in build_const_char_string()113 TREE_READONLY(cstr) = 1; in build_const_char_string()114 TREE_STATIC(cstr) = 1; in build_const_char_string()115 return cstr; in build_const_char_string()
451 let cstr = c"\xf0\x9f\xa6\x80"; in test_cstr_to_str() localVariable452 let checked_str = cstr.to_str()?; in test_cstr_to_str()459 let cstr = c"\xc3\x28"; in test_cstr_to_str_invalid_utf8() localVariable460 assert!(cstr.to_str().is_err()); in test_cstr_to_str_invalid_utf8()484 let cstr = CStr::from_bytes_with_nul(&bytes)?; in test_cstr_display_all_bytes() localVariable889 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from()892 buf.extend_from_slice(cstr.to_bytes_with_nul(), GFP_KERNEL)?; in try_from()
232 char *cstr = (char *) str; in setup_compute() local 257 cstr = buf; in setup_compute() 261 if (!strcmp(cstr, compute_names[i])) { in setup_compute()