Differences From Artifact [66c9692dfd]:
- File src/OFString.m — part of check-in [4b8666fe15] at 2008-11-30 15:17:09 on branch trunk — Clean up imports. (user: js, size: 3821) [annotate] [blame] [check-ins using]
To Artifact [a1f83fb4fc]:
- File src/OFString.m — part of check-in [9c420c6cc3] at 2008-12-06 15:14:05 on branch trunk — Rename cString to getCString, as this needs to be generated. (user: js, size: 3824) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
84 85 86 87 88 89 90 | wmemcpy(string, str, length + 1); } } return self; } | | | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | wmemcpy(string, str, length + 1); } } return self; } - (char*)getCString { char *str; size_t len; if ((len = wcstombs(NULL, string, 0)) == (size_t)-1) { /* FIXME: Throw exception */ return NULL; |
︙ | ︙ |