Differences From Artifact [68a16bb73e]:
- File
src/OFString.m
— part of check-in
[08ab815c2c]
at
2020-12-21 01:14:13
on branch trunk
— Remove usage of strto(u)ll
It requires errno and every function that uses errno needs to be passed
from the linklib to the Amiga .library, so reducing usage of functions
that require errno is desirable. (user: js, size: 67075) [annotate] [blame] [check-ins using]
To Artifact [0e8c3a02df]:
- File src/OFString.m — part of check-in [1b2efa1f5d] at 2020-12-22 20:09:40 on branch trunk — Correctly handle componentsSeparatedByString: @"" (user: js, size: 67227) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
2240 2241 2242 2243 2244 2245 2246 | options: 0]; } - (OFArray *)componentsSeparatedByString: (OFString *)delimiter options: (int)options { void *pool; | | > > > > > > > | 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 | options: 0]; } - (OFArray *)componentsSeparatedByString: (OFString *)delimiter options: (int)options { void *pool; OFMutableArray *array; const of_unichar_t *characters, *delimiterCharacters; bool skipEmpty = (options & OF_STRING_SKIP_EMPTY); size_t length = self.length; size_t delimiterLength = delimiter.length; size_t last; OFString *component; if (delimiter == nil) @throw [OFInvalidArgumentException exception]; if (delimiter.length == 0) return [OFArray arrayWithObject: self]; array = [OFMutableArray array]; pool = objc_autoreleasePoolPush(); characters = self.characters; delimiterCharacters = delimiter.characters; if (delimiterLength > length) { [array addObject: [[self copy] autorelease]]; |
︙ | ︙ |