src/ucx/cx/string.h

changeset 645
0c85c4cd0dd8
parent 621
956c03c25edd
equal deleted inserted replaced
644:e96e92e3508f 645:0c85c4cd0dd8
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