Luna::Variant::c_str
const c8 * c_str(const c8 *default_value="") const
Gets the C string of one string variant.
Parameters
-
in default_value
The optional default string to return.
Return value
Returns the string data of one variant if type is VariantType::string. Returns default_value
otherwise.