Home | History | Annotate | Download | only in source

Lines Matching refs:mStr

71     char *mStr;

73 CString() { mStr = NULL; }
74 CString(const CString &str) { mStr = NULL; set(str.mStr); }
75 explicit CString(const char *str) { mStr = NULL; set(str); }
76 CString(const char *start, int length) { mStr = NULL; set(start, length); }
83 if (str != mStr) {
86 mStr = _strdup(str);
95 mStr = (char *)malloc(length + 1);
96 strncpy(mStr, start, length);
97 mStr[length] = 0;
107 mStr = (char *)malloc(len);
108 strcpy(mStr, str); // provide a default in case vsnprintf totally fails
110 int ret = vsnprintf(mStr, len, str, ap);
121 mStr = (char *)realloc((void *)mStr, len);
122 strcpy(mStr, str); // provide a default in case vsnprintf totally fails
141 return mStr;
145 return mStr == NULL || *mStr == 0;
149 return mStr == NULL ? 0 : strlen(mStr);
153 if (mStr == NULL) {
156 mStr = (char *)realloc((void *)mStr, strlen(mStr) + strlen(str) + 1);
157 strcat(mStr, str);
163 if (mStr == NULL) {
166 int l1 = strlen(mStr);
167 mStr = (char *)realloc((void *)mStr, l1 + length + 1);
168 strncpy(mStr + l1, str, length);
169 mStr[l1 + length] = 0;
175 if (mStr == NULL) {
180 for (const char *s = mStr; *s; s++) {
181 if (*s == sep && s != mStr && (last == NULL || s > last+1)) {
190 for (const char *s = mStr; *s; s++) {
192 if (s != mStr && (last == NULL || s > last+1)) {
193 const char *start = last ? last : mStr;
228 if (mStr != NULL) {
229 free((void *)mStr);
230 mStr = NULL;
260 if (n > 0 && s[0] != '\\' && mStr[n-1] != '\\') add("\\");
269 if (mStr == NULL) return false;
270 DWORD attribs = GetFileAttributesA(mStr);
278 if (mStr == NULL) return false;
279 DWORD attribs = GetFileAttributesA(mStr);
287 if (mStr != NULL) {
288 char *pos = strrchr(mStr, '\\');
290 result.set(mStr, pos - mStr);
299 if (mStr != NULL) {
300 char *pos = strrchr(mStr, '\\');
310 if (mStr == NULL) return;
314 // if mStr ends with searchName
315 if (strcmp(mStr + n - sn, searchName) == 0) {
318 mStr = (char *)realloc((void *)mStr, n + sn2 - sn + 1);
320 strcpy(mStr + n - sn, newName);
321 mStr[n + sn2 - sn] = 0;
330 const char *longPath = mStr;
331 if (mStr == NULL) return false;