ObjFW  Check-in [4d892e0db1]

Overview
Comment:Fix -[replaceCharactersInRange:withString:].

The resizing is now done before the memmove() if the new string is
bigger and after the memmove() if the new string is shorter. The added
comment explains why this is necessary.

This also adds a test for -[replaceCharactersInRange:withString:] that
makes the string bigger and another one that makes it smaller again.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4d892e0db130107b9a3dd7b85f5ee9d5cb38588297a4e9a3495c14c85842ec5b
User & Date: js on 2013-07-04 20:49:52
Other Links: manifest | tags
Context
2013-07-05
16:54
Map WSA error codes to standard error codes. check-in: e790f0e1f0 user: js tags: trunk
2013-07-04
20:49
Fix -[replaceCharactersInRange:withString:]. check-in: 4d892e0db1 user: js tags: trunk
14:04
OFBlock: Initialize spinlocks in +[load]. check-in: 8fbc6b4e63 user: js tags: trunk
Changes