Overview
Comment: | Clean up Unicode -> * conversions. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7c26551b673324c22797a275f3aec6c8 |
User & Date: | js on 2014-01-19 14:10:27 |
Other Links: | manifest | tags |
Context
2014-01-19
| ||
14:17 | Add Unicode -> Codepage 437 conversion. check-in: e66defc073 user: js tags: trunk | |
14:10 | Clean up Unicode -> * conversions. check-in: 7c26551b67 user: js tags: trunk | |
12:00 | Add lookup-asm-ppc-macho.S. check-in: d80d091b0e user: js tags: trunk | |
Changes
Modified src/OFString.m from [17a63459d4] to [04e1844f94].
︙ | |||
1007 1008 1009 1010 1011 1012 1013 | 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 | - - - - + - | case 3: case 4: memcpy(cString + j, buffer, len); j += len; break; default: |
︙ |
Modified src/iso_8859_15.m from [25eed555d5] to [efb74e1c28].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + - - - - - - - + + + + + + + - | size_t length, bool lossy) { size_t i; for (i = 0; i < length; i++) { of_unichar_t c = input[i]; |
︙ | |||
85 86 87 88 89 90 91 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | - - + + + + + + + + + + + + + + + + + + + + + | if (lossy) output[i] = '?'; else return false; break; } |
Modified src/windows_1252.m from [efb7bb469a] to [6e0427f4c2].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - - - - - + + + + + + + + - | size_t length, bool lossy) { size_t i; for (i = 0; i < length; i++) { of_unichar_t c = input[i]; |
︙ | |||
140 141 142 143 144 145 146 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | + + + + + + - - + + + | if (lossy) output[i] = '?'; else return false; break; } } else { if OF_UNLIKELY (c >= 0x80 && c <= 0x9F) { if (lossy) output[i] = '?'; else return false; |
Modified tests/OFStringTests.m from [b2e299ece7] to [da479fb931].
︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | + | #include "config.h" #include <stdlib.h> #include <string.h> #include <math.h> #import "OFString.h" #import "OFMutableString_UTF8.h" #import "OFArray.h" #import "OFURL.h" #import "OFAutoreleasePool.h" #import "OFInvalidArgumentException.h" #import "OFInvalidEncodingException.h" #import "OFInvalidFormatException.h" |
︙ | |||
194 195 196 197 198 199 200 | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | OFInvalidEncodingException, [OFString stringWithUTF8String: "\xE0\x80"]) EXPECT_EXCEPTION(@"Detection of invalid UTF-8 encoding #2", OFInvalidEncodingException, [OFString stringWithUTF8String: "\xF0\x80\x80\xC0"]) TEST(@"-[reverse] on UTF-8 strings", |
︙ |