Differences From Artifact [f214cc2fb6]:
- File
src/OFString_UTF8.m
— part of check-in
[09a0d12bae]
at
2016-06-05 21:17:57
on branch trunk
— Always cast to unsigned char for to{upper,lower}()
This is required as passing something signed to it is an error on
NetBSD, but passing anything else than a char is undefined on Linux. (user: js, size: 28142) [annotate] [blame] [check-ins using]
To Artifact [32973681cc]:
- File src/OFString_UTF8.m — part of check-in [541aab7a03] at 2016-07-03 19:38:35 on branch trunk — -[pathComponents]: Include drive in 1st component (user: js, size: 28441) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 | length: i - last]]; last = i + 1; } } [ret addObject: [OFString stringWithUTF8String: _s->cString + last length: i - last]]; [ret makeImmutable]; objc_autoreleasePoolPop(pool); return ret; } | > > > > > > > > > > > | 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 | length: i - last]]; last = i + 1; } } [ret addObject: [OFString stringWithUTF8String: _s->cString + last length: i - last]]; #ifdef OF_WINDOWS if ([ret count] >= 2 && [[ret objectAtIndex: 0] hasSuffix: @":"]) { OFString *first = [[ret objectAtIndex: 0] stringByAppendingPathComponent: [ret objectAtIndex: 1]]; [ret removeObjectAtIndex: 0]; [ret replaceObjectAtIndex: 0 withObject: first]; } #endif [ret makeImmutable]; objc_autoreleasePoolPop(pool); return ret; } |
︙ | ︙ |