string8专题

C++ String16/String8与const char*及char*与vector相互转换(五十一)

1.代码示例  1.String16转const char*String16 name16 = String16("Hello World");String8 name8 = String8(name16);const char *buffer = name8.string();验证:printf("buffer = %s\n",buffer);注意:String16.string()