utf8().ptr(), "fourty two") == 0; } String Example::test_string_resize(String p_string) const { int orig_len = p_string.length(); p_string.resize(orig_len + 3); char32_t *data = p_string.ptrw(); data[orig_len + 0] = '!'; data[orig_len + 1] = '?'; data[orig...
fn is_zig_cc(path: &Path, cargo_output: &CargoOutput) -> Result<bool, Error> { Ok(run_output( command_new(path)?.arg("--version"), path, // tool detection issues should always be shown as warnings cargo_output, ) .map(|o| String::from_utf8_lossy(&o).contains("ziglang")) ...
fn is_zig_cc(path: &Path, cargo_output: &CargoOutput) -> Result<bool, Error> { Ok(run_output( command_new(path)?.arg("--version"), path, // tool detection issues should always be shown as warnings cargo_output, ) .map(|o| String::from_utf8_lossy(&o).contains("ziglang")) ...
fn is_zig_cc(path: &Path, cargo_output: &CargoOutput) -> Result<bool, Error> { Ok(run_output( command_new(path)?.arg("--version"), path, // tool detection issues should always be shown as warnings cargo_output, ) .map(|o| String::from_utf8_lossy(&o).contains("ziglang")) ...