// String utilities for working with C++ std::string via cxx
// With autocxx, we get native cxx::CxxString support
use ;
/// Helper function to convert a C string to a Rust String
pub unsafe
/// Convert a Rust &str to a C-compatible string
// Note: With autocxx, we can directly use cxx::CxxString which provides:
// - .to_string_lossy() to convert to Rust String
// - .as_bytes() to get the underlying bytes
// - Direct integration with C++ std::string
//
// This is much cleaner than the previous opaque type approach.