class String { char *Ptr; uint32 str_length,Alloced_length; bool alloced; public: inline char *c_ptr() { if (!Ptr || Ptr[str_length]) /* Should be safe */ (void) realloc(str_length); //可能给Ptr分配内存 return Ptr; } };