Lines Matching refs:str
74 CString(const CString &str) { mStr = NULL; set(str.mStr); } in CString() argument
75 explicit CString(const char *str) { mStr = NULL; set(str); } in CString() argument
78 CString& operator=(const CString &str) {
79 return set(str.cstr());
82 CString& set(const char *str) { in set() argument
83 if (str != mStr) { in set()
85 if (str != NULL) { in set()
86 mStr = _strdup(str); in set()
102 CString& setv(const char *str, va_list ap) { in setv() argument
106 size_t len = strlen(str) + 1024; in setv()
108 strcpy(mStr, str); // provide a default in case vsnprintf totally fails in setv()
110 int ret = vsnprintf(mStr, len, str, ap); in setv()
122 strcpy(mStr, str); // provide a default in case vsnprintf totally fails in setv()
127 CString& setf(const char *str, ...) { in setf() argument
130 va_start(ap, str); in setf()
131 setv(str, ap); in setf()
152 CString& add(const char *str) { in add() argument
154 set(str); in add()
156 mStr = (char *)realloc((void *)mStr, strlen(mStr) + strlen(str) + 1); in add()
157 strcat(mStr, str); in add()
162 CString& add(const char *str, int length) { in add() argument
164 set(str, length); in add()
168 strncpy(mStr + l1, str, length); in add()
240 CPath(const CString &str) : CString(str) { } in CPath() argument
241 CPath(const CPath &str) : CString(str) { } in CPath() argument
242 explicit CPath(const char *str) : CString(str) { } in CPath() argument
245 CPath& operator=(const CPath &str) {
246 set(str.cstr());