src/cx/string.h

changeset 1488
946895d19dde
parent 1426
3a89b31f0724
equal deleted inserted replaced
1487:0ff535033b78 1488:946895d19dde
254 CX_CPPDECL cxstring cx_strcast(const char *str) { 254 CX_CPPDECL cxstring cx_strcast(const char *str) {
255 return cx_str(str); 255 return cx_str(str);
256 } 256 }
257 cx_attr_nodiscard 257 cx_attr_nodiscard
258 CX_CPPDECL cxstring cx_strcast(const unsigned char *str) { 258 CX_CPPDECL cxstring cx_strcast(const unsigned char *str) {
259 return cx_str(static_cast<const char*>(str)); 259 return cx_str(reinterpret_cast<const char*>(str));
260 } 260 }
261 extern "C" { 261 extern "C" {
262 #else 262 #else
263 /** 263 /**
264 * Internal function, do not use. 264 * Internal function, do not use.

mercurial