62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
length = 0;
wstring = NULL;
return self;
}
newlen = wcslen(wstr);
if ((newstr = [self getMem: (newlen + 1) * sizeof(wchar_t)]) == NULL)
return nil;
memcpy(newstr, wstr, (newlen + 1) * sizeof(wchar_t));
if (wstring != NULL)
[self freeMem: wstring];
length = newlen;
wstring = newstr;
|
|
<
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
length = 0;
wstring = NULL;
return self;
}
newlen = wcslen(wstr);
newstr = [self getMem: (newlen + 1) * sizeof(wchar_t)];
memcpy(newstr, wstr, (newlen + 1) * sizeof(wchar_t));
if (wstring != NULL)
[self freeMem: wstring];
length = newlen;
wstring = newstr;
|