Overview
Comment: | OF{Data,String}+CryptoHashing: Rename methods
This makes it clearer that these return a string and not a hash object. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b5a74319e1c5a56f8f4a3c3611b4abb5 |
User & Date: | js on 2021-04-07 19:22:20 |
Other Links: | manifest | tags |
Context
2021-04-07
| ||
20:39 | Override -[compare:] with a more specific type check-in: 91a4c53bb1 user: js tags: trunk | |
19:22 | OF{Data,String}+CryptoHashing: Rename methods check-in: b5a74319e1 user: js tags: trunk | |
18:44 | Rename OFEnumerating to OFEnumeration check-in: 151e4642fe user: js tags: trunk | |
Changes
Modified src/OFData+CryptoHashing.h from [a5a229d49d] to [eadea66cdb].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | - + - + - + - + - + - + - + | } #endif @interface OFData (CryptoHashing) /** * @brief The MD5 hash of the data as a string. */ |
Modified src/OFData+CryptoHashing.m from [7bd2a07f00] to [9f6c94ab4a].
︙ | |||
54 55 56 57 58 59 60 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | - + - + - + - + - + - + - + | objc_autoreleasePoolPop(pool); return [OFString stringWithCString: cString encoding: OF_STRING_ENCODING_ASCII length: digestSize * 2]; } |
Modified src/OFString+CryptoHashing.h from [562278ea0b] to [a8ec191fe6].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - + - + - + - + - + - + - + | } #endif @interface OFString (CryptoHashing) /** * @brief The MD5 hash of the string as a string. */ |
Modified src/OFString+CryptoHashing.m from [826ee219c6] to [e8341b8291].
︙ | |||
53 54 55 56 57 58 59 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - + - + - + - + - + - + - + | objc_autoreleasePoolPop(pool); return [OFString stringWithCString: cString encoding: OF_STRING_ENCODING_ASCII length: digestSize * 2]; } |
Modified tests/OFDataTests.m from [5c0a7f22cc] to [145ac3ede5].
︙ | |||
164 165 166 167 168 169 170 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | + - + - - + + - + + - - + + + - - + + + - - + + + - - + + + + | EXPECT_EXCEPTION(@"-[subdataWithRange:] failing on out of range #1", OFOutOfRangeException, [immutable subdataWithRange: of_range(7, 1)]) EXPECT_EXCEPTION(@"-[subdataWithRange:] failing on out of range #2", OFOutOfRangeException, [mutable subdataWithRange: of_range(6, 1)]) TEST(@"-[stringByMD5Hashing]", [mutable.stringByMD5Hashing |
︙ |
Modified tests/OFStringTests.m from [e616a01e33] to [bc3d5b4b0a].
︙ | |||
1204 1205 1206 1207 1208 1209 1210 | 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 | - + + - + - + - + - - + + - - - + + + - - - + + + - - - + + + + | TEST(@"-[UTF32String]", (ua = C(@"fööbär🀺").UTF32String) && !memcmp(ua, ucstr + 1, of_string_utf32_length(ucstr) * 4) && (ua = [C(@"fööbär🀺") UTF32StringWithByteOrder: SWAPPED_BYTE_ORDER]) && !memcmp(ua, sucstr + 1, of_string_utf32_length(sucstr) * 4)) #undef SWAPPED_BYTE_ORDER |
︙ |