/third_party/rust/crates/rustix/tests/path/ |
H A D | dec_int.rs | 5 assert_eq!(DecInt::new(0).as_ref().to_str().unwrap(), "0"); in test_dec_int() 6 assert_eq!(DecInt::new(-1).as_ref().to_str().unwrap(), "-1"); in test_dec_int() 7 assert_eq!(DecInt::new(789).as_ref().to_str().unwrap(), "789"); in test_dec_int() 9 DecInt::new(i64::MIN).as_ref().to_str().unwrap(), in test_dec_int() 13 DecInt::new(i64::MAX).as_ref().to_str().unwrap(), in test_dec_int() 17 DecInt::new(u64::MAX).as_ref().to_str().unwrap(), in test_dec_int()
|
/third_party/rust/crates/nix/test/common/ |
H A D | mod.rs | 123 println!("{}", uname.sysname().to_str().unwrap()); 124 println!("{}", uname.nodename().to_str().unwrap()); 125 println!("{}", uname.release().to_str().unwrap()); 126 println!("{}", uname.version().to_str().unwrap()); 127 println!("{}", uname.machine().to_str().unwrap()); 130 let fixed_release = &uname.release().to_str().unwrap().to_string()
|
/third_party/rust/crates/nix/test/ |
H A D | test_nmount.rs | 21 .str_opt_owned("fspath", mountpoint.path().to_str().unwrap()) in ok() 22 .str_opt_owned("target", target.path().to_str().unwrap()) in ok() 42 .str_opt_owned("fspath", mountpoint.path().to_str().unwrap()) in bad_fstype() 43 .str_opt_owned("target", target.path().to_str().unwrap()) in bad_fstype()
|
/third_party/skia/third_party/externals/tint/src/diagnostic/ |
H A D | formatter.cc | 28 const char* to_str(Severity severity) { in to_str() function 44 std::string to_str(const Source::Location& location) { in to_str() function 147 prefix.emplace_back(TextAndColor{src.file_path + ":" + to_str(rng.begin), in format() 153 prefix.emplace_back(TextAndColor{to_str(rng.begin), Color::kDefault}); in format() 173 TextAndColor{to_str(diag.severity), severity_color, true}); in format()
|
/third_party/rust/crates/linux-raw-sys/gen/src/ |
H A D | main.rs | 37 assert!(!entry.path().to_str().unwrap().ends_with(".")); in main() 99 let linux_arch = linux_arch_entry.file_name().to_str().unwrap().to_owned(); in main() 132 let mod_name = header_name.file_stem().unwrap().to_str().unwrap(); in main() 147 linux_include.to_str().unwrap(), in main() 148 header_name.to_str().unwrap(), in main() 260 fs::canonicalize(&linux_headers).unwrap().to_str().unwrap()
|
/third_party/python/Tools/stringbench/ |
H A D | stringbench.py | 1216 to_str = STR("\t") 1219 s_replace(from_str, to_str) 1227 to_str = STR("\t") 1230 pat_sub(to_str, s) 1237 to_str = STR(" ") 1240 s_replace(from_str, to_str) 1248 to_str = STR(" ") 1251 pat_sub(to_str, s) 1259 to_str = STR("ATT") 1262 seq_replace(from_str, to_str) [all...] |
/third_party/rust/crates/clang-sys/build/ |
H A D | common.rs | 190 let directory = Pattern::escape(directory.to_str().unwrap()); in search_directory() 197 .map(|f| directory.join(f).to_str().unwrap().to_owned()); in search_directory() 210 let filename = path.file_name()?.to_str().unwrap(); in search_directory() 252 let filename = path.file_name().unwrap().to_str().unwrap(); in search_libclang_directories()
|
H A D | static.rs | 66 let directory = Pattern::escape(directory.as_ref().to_str().unwrap()); in get_clang_libraries() 69 let pattern = directory.join("libclang*.a").to_str().unwrap().to_owned(); in get_clang_libraries()
|
/third_party/rust/crates/rustix/src/path/ |
H A D | arg.rs | 208 self.to_str().ok_or(io::Errno::INVAL) in as_str() 247 OsString::as_os_str(self).to_str().ok_or(io::Errno::INVAL) in as_str() 285 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str() 324 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str() 365 .to_str() in as_str() 404 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str() 445 self.to_str().map_err(|_utf8_err| io::Errno::INVAL) in as_str() 513 self.to_str().map_err(|_utf8_err| io::Errno::INVAL) in as_str() 590 (**self).to_str().ok_or(io::Errno::INVAL) in as_str() 632 self.to_str() in as_str() [all...] |
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | lexer_test.cc | 45 EXPECT_EQ(t.to_str(), "ident"); in TEST_F() 64 EXPECT_EQ(t.to_str(), "ident1"); in TEST_F() 72 EXPECT_EQ(t.to_str(), "ident2"); in TEST_F() 89 EXPECT_EQ(t.to_str(), "ident"); in TEST_F() 107 EXPECT_EQ(t.to_str(), "ident"); in TEST_F() 124 EXPECT_EQ(t.to_str(), "unterminated block comment"); in TEST_F() 271 EXPECT_EQ(t.to_str(), GetParam()); in TEST_P() 351 EXPECT_EQ(t.to_str(), "i32 (0x80000000) too large"); in TEST_F() 360 EXPECT_EQ(t.to_str(), "i32 (-0x8000000F) too small"); in TEST_F() 370 EXPECT_EQ(t.to_str(), in TEST_F() [all...] |
H A D | parser_impl_storage_class_test.cc | 66 EXPECT_EQ(t.to_str(), "not"); in TEST_F()
|
/third_party/rust/crates/bindgen/bindgen-tests/ |
H A D | build.rs | 27 match entry.path().extension().and_then(OsStr::to_str) { in main() 31 .to_str() in main()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | version.rs | 57 .to_str() in version() 68 .to_str() in c_flags() 78 .to_str() in built_on() 88 .to_str() in platform() 98 .to_str() in dir()
|
/third_party/toybox/toys/pending/ |
H A D | awk.c | 2595 static struct zvalue *to_str(struct zvalue *v) in to_str() function 2600 // TODO FIXME Is this needed? (YES -- investigate) Just use to_str()? 2601 #define ENSURE_STR(v) (IS_STR(v) ? (v) : to_str(v)) 2607 zvalue_dup_zstring(to_str(pat)); in rx_zvalue_compile() 2624 if ((r = regexec(rxp, to_str(zvsubject)->vst->str, 0, 0, 0)) != 0) { in match() 2746 if (!IS_RX(zvfs)) to_str(zvfs); in splitter() 2785 set_nf(*rec ? splitter(set_field, 0, rec, to_str(&STACK[FS])) : 0); in build_fields() 2794 zvalue_copy(&tempv, to_str(&STACK[OFS])); in rebuild_field0() 2799 if (FIELD[i].flags) to_str(&FIELD[i]); in rebuild_field0() 2865 to_str( in fixup_fields() [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/ |
H A D | lib.rs | 84 .arg(dir.path().to_str().unwrap()) in run_predicate_script() 118 Some(String::from(PathBuf::from(path).to_str().unwrap())); in test_bindgen()
|
/third_party/rust/crates/regex/bench/src/ffi/ |
H A D | pcre1.rs | 56 unsafe { CStr::from_ptr(errptr).to_str().unwrap().to_owned() }; in new() 67 unsafe { CStr::from_ptr(errptr).to_str().unwrap().to_owned() }; in new()
|
/third_party/rust/crates/rustix/tests/fs/ |
H A D | readdir.rs | 49 let name = err.file_name().to_str().expect("utf8 filename").to_owned(); in read_entries() 71 .to_str() in test_raw_dir()
|
/third_party/skia/third_party/externals/tint/src/ |
H A D | symbol_test.cc | 26 EXPECT_EQ("$1", sym.to_str()); in TEST_F()
|
H A D | symbol.cc | 53 std::string Symbol::to_str() const { in to_str() function in tint::Symbol
|
H A D | symbol.h | 84 std::string to_str() const;
|
/third_party/rust/crates/which-rs/src/ |
H A D | helper.rs | 5 let ext = path.as_ref().extension().and_then(|e| e.to_str()); in has_executable_extension()
|
/third_party/rust/crates/clap/clap_lex/src/ |
H A D | lib.rs | 30 //! let s = s.map(|s| s.to_str().ok_or(s)); 284 let utf8 = inner.to_str(); in new() 341 let flag = flag.to_str().ok_or(flag); in to_long()
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | usage.h | 110 std::string to_str() const;
|
/third_party/rust/crates/glob/src/ |
H A D | lib.rs | 216 let root_len = normalized_pattern.to_str().unwrap().len() - rest.to_str().unwrap().len(); in glob_with() 407 match path.file_name().and_then(|s| s.to_str()) { in next() 700 path.to_str().map_or(false, |s| self.matches(s)) in matches_path() 713 path.to_str() in matches_path_with() 1112 assert!(glob(root_with_device.as_os_str().to_str().unwrap()) in test_absolute_pattern() 1432 assert!(Pattern::new(pattern.to_str().unwrap()).is_ok()); in test_path_join()
|
/third_party/rust/crates/bitflags/tests/ |
H A D | compile.rs | 36 if entry.path().extension().and_then(OsStr::to_str) == Some("beta") { in prepare_stderr_files()
|