Overview
Comment: | Skip possible BOMs in OFMutableString. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7aefcd5ede480a43a5d48c7d7ccf4c88 |
User & Date: | js on 2011-04-25 17:14:27 |
Other Links: | manifest | tags |
Context
2011-04-25
| ||
17:28 | Add -[OFDataArray writeToFile:]. check-in: 36e48a23f8 user: js tags: trunk | |
17:14 | Skip possible BOMs in OFMutableString. check-in: 7aefcd5ede user: js tags: trunk | |
16:57 | OFXMLParser: Add support for different encodings and other improvements. check-in: b2dd4f049b user: js tags: trunk | |
Changes
Modified src/OFMutableString.m from [9261f4b9e0] to [0eff2f55bc].
︙ | |||
130 131 132 133 134 135 136 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 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 203 204 205 | - + - + + + + + + - + - + - + + - - - + + + + + - - - + + + + + + + + | [self freeMemory: string]; string = newString; length = newLength; } - (void)setToCString: (const char*)string_ { |
︙ |
Modified tests/OFStringTests.m from [3439386043] to [4e36bc7a86].
︙ | |||
139 140 141 142 143 144 145 | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - - + + | TEST(@"+[stringWithContentsOfURL:encoding]", (s[1] = [OFString stringWithContentsOfURL: [OFURL URLWithString: @"file://testfile.txt"] encoding: OF_STRING_ENCODING_ISO_8859_1]) && [s[1] isEqual: @"testäöü"]) TEST(@"-[appendCStringWithLength:]", |
︙ |