Some functions here have const(char)* as an argument type, which is used to pass strings to C functions. Calling these functions using D strings instead sometimes, but not always works.
I propose that new versions of these functions are added that have D strings as arguments. They will all convert the D strings to C-style strings using getStringz from std.string, and then call the original version of the function. Those that have cost(char)* as their return type will instead have string as their return type when using a D string as an argument.
Some functions here have
const(char)*as an argument type, which is used to pass strings to C functions. Calling these functions using D strings instead sometimes, but not always works.I propose that new versions of these functions are added that have D strings as arguments. They will all convert the D strings to C-style strings using
getStringzfromstd.string, and then call the original version of the function. Those that havecost(char)*as their return type will instead havestringas their return type when using a D string as an argument.