Lines Matching refs:length
76 CString(const char *start, size_t length) { mStr = NULL; set(start, length); } in CString() argument
92 CString& set(const char *start, size_t length) { in set() argument
95 mStr = (char *)malloc(length + 1); in set()
96 strncpy(mStr, start, length); in set()
97 mStr[length] = 0; in set()
148 size_t length() const { in length() function
162 CString& add(const char *str, int length) { in add() argument
164 set(str, length); in add()
167 mStr = (char *)realloc((void *)mStr, l1 + length + 1); in add()
168 strncpy(mStr + l1, str, length); in add()
169 mStr[l1 + length] = 0; in add()
243 CPath(const char *start, int length) : CString(start, length) { } in CPath() argument
259 size_t n = length(); in addPath()
311 size_t n = length(); in replaceName()
336 DWORD length = GetShortPathName(longPath, shortPath, lenShort); in toShortPath() local
337 if (length > lenShort) { in toShortPath()
340 lenShort = length; in toShortPath()
341 shortPath = (char *)malloc(length); in toShortPath()
342 length = GetShortPathName(longPath, shortPath, lenShort); in toShortPath()
345 if (length != 0) dest->set(shortPath); in toShortPath()
348 return length != 0; in toShortPath()