Differences From Artifact [74051613f4]:
- File src/OFURLEncoding.m — part of check-in [4fa95c938d] at 2009-06-05 18:30:15 on branch trunk — Rename -[url{De,En}codedString] to -[stringByURL{De,En}coding]. (user: js, size: 2342) [annotate] [blame] [check-ins using]
To Artifact [39517d09e4]:
- File src/OFURLEncoding.m — part of check-in [92d8754e02] at 2009-07-16 23:02:41 on branch trunk — Also handle '+' in -[stringByURLDecoding]. (user: js, size: 2387) [annotate] [blame] [check-ins using]
︙ | |||
78 79 80 81 82 83 84 85 86 87 88 89 90 91 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | + + | andSize: length + 1]; for (st = 0, i = 0, c = 0; *s; s++) { switch (st) { case 0: if (*s == '%') st = 1; else if (*s == '+') ret_c[i++] = ' '; else ret_c[i++] = *s; break; case 1: case 2: if (*s >= '0' && *s <= '9') c += (*s - '0') * (st == 1 ? 16 : 1); |
︙ |