ObjFW  History of src/OFMutableString_UTF8.m of 1b3d035041679e19

History of the file that is called src/OFMutableString_UTF8.m at check-in 1b3d035041679e19

2019-06-17
02:33
Deleted: Remove underscores from class names (check-in: [17d57e01ff] user: js, branch: trunk, size: 0)
2019-04-22
16:53
[8884971f0c] part of check-in [0b962df002] OFString_UTF8: Improved range checks (check-in: [0b962df002] user: js, branch: trunk, size: 20302) [annotate] [blame] [check-ins using] [diff]
2019-03-08
00:35
[afad633464] part of check-in [bceb7ed4c9] Use dot syntax (check-in: [bceb7ed4c9] user: js, branch: trunk, size: 20301) [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
[b9817e13bd] part of check-in [0509d7a844] Update copyright (check-in: [0509d7a844] user: js, branch: trunk, size: 20344) [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
[532a216bc1] part of check-in [7e5c81e186] Update copyright notice (check-in: [7e5c81e186] user: js, branch: trunk, size: 20338) [annotate] [blame] [check-ins using] [diff]
2017-11-04
21:09
[f1c7e94219] part of check-in [9f3a4dfbc0] OFString: Improve freeWhenDone in case of error (check-in: [9f3a4dfbc0] user: js, branch: trunk, size: 20315) [annotate] [blame] [check-ins using] [diff]
2017-10-22
15:05
[7d0da4b4a5] part of check-in [a06354b42a] Make Apple GCC with -Wshadow happy (check-in: [a06354b42a] user: js, branch: trunk, size: 20010) [annotate] [blame] [check-ins using] [diff]
14:09
[688bb89a18] part of check-in [31c0f5b89e] Make Apple GCC with -Wshadow happy (check-in: [31c0f5b89e] user: js, branch: 0.90, size: 19996) [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
[4eb8ccee47] part of check-in [2f4e0df8be] Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (check-in: [2f4e0df8be] user: js, branch: trunk, size: 20072) [annotate] [blame] [check-ins using] [diff]

2017-09-28
23:02
[fc29ab31f7] part of check-in [2de9660312] Enable -Wnullable-to-nonnull-conversion and adjust (check-in: [2de9660312] user: js, branch: trunk, size: 20193) [annotate] [blame] [check-ins using] [diff]
2017-06-10
11:46
[4a3385c744] part of check-in [dbdc125802] macros.h: Add of_ascii_isspace() (check-in: [dbdc125802] user: js, branch: trunk, size: 20058) [annotate] [blame] [check-ins using] [diff]
2017-05-21
21:28
[247368600b] part of check-in [6b77a5dd8b] Prefix private methods with of_ instead of OF_

This matches Apple's style. (check-in: [6b77a5dd8b] user: js, branch: trunk, size: 20592) [annotate] [blame] [check-ins using] [diff]

2017-05-07
20:10
[841b1b06a7] part of check-in [4af49a13c3] Small code style change

Casts are now written like types in variable declarations. (check-in: [4af49a13c3] user: js, branch: trunk, size: 20592) [annotate] [blame] [check-ins using] [diff]

2017-05-01
11:52
[b3fb2f4d74] part of check-in [80fbe5a1e2] OFMutableString_UTF8: Fix several bugs (check-in: [80fbe5a1e2] user: js, branch: trunk, size: 20576) [annotate] [blame] [check-ins using] [diff]
2017-04-09
12:02
[a6a227ab67] part of check-in [8433da5605] Add a missing const (check-in: [8433da5605] user: js, branch: trunk, size: 20076) [annotate] [blame] [check-ins using] [diff]
2017-03-12
00:58
[7a27106bbd] part of check-in [696bc0d890] OFMutableString: Check more arguments for nil (check-in: [696bc0d890] user: js, branch: trunk, size: 20070) [annotate] [blame] [check-ins using] [diff]
2017-02-04
17:45
[921a7c0237] part of check-in [5a31a537a1] Fix typos in comments and strings found by aspell (check-in: [5a31a537a1] user: js, branch: trunk, size: 19903) [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
[4f45ba9beb] part of check-in [44f45c2e35] Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. (check-in: [44f45c2e35] user: js, branch: trunk, size: 19902) [annotate] [blame] [check-ins using] [diff]

2016-03-13
11:19
[f55475cd25] part of check-in [5e2ef97c35] Change of_string_utf8_decode() API

It now returns <= 0 on error, with negative values being the number of
bytes it would have needed * -1.

This can be used to detect cut off and how many bytes are missing. (check-in: [5e2ef97c35] user: js, branch: trunk, size: 19896) [annotate] [blame] [check-ins using] [diff]

2016-02-21
15:37
[3b7cce9749] part of check-in [e0b9167693] Make use of C99-style for loops (check-in: [e0b9167693] user: js, branch: trunk, size: 19862) [annotate] [blame] [check-ins using] [diff]
2016-01-03
00:41
[7b388678b4] part of check-in [2a27cf3000] Update copyright

While at it, also update the mail address. (check-in: [2a27cf3000] user: js, branch: trunk, size: 19854) [annotate] [blame] [check-ins using] [diff]

2015-01-03
20:57
[9a54f93878] part of check-in [cfd374b906] Update copyright (check-in: [cfd374b906] user: js, branch: trunk, size: 19850) [annotate] [blame] [check-ins using] [diff]
2014-06-21
21:43
[b53250c187] part of check-in [13ee56edf3] Move all macros from OFObject.h to macros.h

This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. (check-in: [13ee56edf3] user: js, branch: trunk, size: 19844) [annotate] [blame] [check-ins using] [diff]

2014-05-15
04:07
[bd98368f71] part of check-in [3c7bf2e50c] Don't return void expressions (check-in: [3c7bf2e50c] user: js, branch: trunk, size: 19888) [annotate] [blame] [check-ins using] [diff]
2014-05-05
02:43
[d5efe167c0] part of check-in [b885b6fdfa] Add OF_NO_RETURN and OF_UNREACHABLE (check-in: [b885b6fdfa] user: js, branch: trunk, size: 19895) [annotate] [blame] [check-ins using] [diff]
2014-04-14
00:45
[c7dede3563] part of check-in [9da9b2b64c] Coding style

No functional change intended. (check-in: [9da9b2b64c] user: js, branch: trunk, size: 19913) [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
[9c8e6d80a9] part of check-in [3b97fc3cd9] Update copyright. (check-in: [3b97fc3cd9] user: js, branch: trunk, size: 19890) [annotate] [blame] [check-ins using] [diff]
2013-11-23
17:28
[be6d727813] part of check-in [f177032b43] OF(Mutable)String_UTF8: Code simplification. (check-in: [f177032b43] user: js, branch: trunk, size: 19884) [annotate] [blame] [check-ins using] [diff]
2013-07-04
20:49
[9492a9e3d8] part of check-in [4d892e0db1] 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. (check-in: [4d892e0db1] user: js, branch: trunk, size: 20151) [annotate] [blame] [check-ins using] [diff]

2013-06-22
12:12
[7fb8de4d28] part of check-in [3d16a30f41] Rework exceptions.

This mostly removes the argument for the class in which the exception
occurred. As backtraces were recently added for all platforms, the
passed class does not give any extra information on where the exception
occurred anymore.

This also removes a few other arguments which were not too helpful. In
the past, the idea was to pass as many arguments as possible so that it
is easier to find the origin of the exception. However, as backtraces
are a much better way to find the origin, those are not useful anymore
and just make the exception more cumbersome to use. The rule is now to
only pass arguments that might help in recovering from the exception or
provide information that is otherwise not easily accessible. (check-in: [3d16a30f41] user: js, branch: trunk, size: 19565) [annotate] [blame] [check-ins using] [diff]

2013-03-04
17:20
[50da202bb8] part of check-in [c5ef582958] Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI. (check-in: [c5ef582958] user: js, branch: trunk, size: 20207) [annotate] [blame] [check-ins using] [diff]

2013-02-12
18:22
[8a8377795b] part of check-in [e40729d406] Prefix all ivars with an underscore. (check-in: [e40729d406] user: js, branch: trunk, size: 20136) [annotate] [blame] [check-ins using] [diff]
2013-01-11
12:13
[3edda5e667] part of check-in [beb9051a10] Add -[OFMutableString appendCharacters:length:]. (check-in: [beb9051a10] user: js, branch: trunk, size: 19852) [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
[95309d22f2] part of check-in [813c00ccf0] Update copyright. (check-in: [813c00ccf0] user: js, branch: trunk, size: 18829) [annotate] [blame] [check-ins using] [diff]
2012-12-30
00:22
[c46f09aef2] part of check-in [c16e6aca56] Fix -[initWithUTF8StringNoCopy:freeWhenDone:]. (check-in: [c16e6aca56] user: js, branch: trunk, size: 18823) [annotate] [blame] [check-ins using] [diff]
2012-12-29
14:43
[e81ab65f1c] part of check-in [374956b098] Prettify some code. (check-in: [374956b098] user: js, branch: trunk, size: 18747) [annotate] [blame] [check-ins using] [diff]
2012-10-16
14:49
[a8539dd005] part of check-in [c47538ce8e] Fix a few forgotten renames. (check-in: [c47538ce8e] user: js, branch: trunk, size: 18748) [annotate] [blame] [check-ins using] [diff]
14:47
[3b96c919ea] part of check-in [fcaa549324] A few more API improvements.

This should make it more future-proof, as adding new options is easier
than adding new methods for each and every combination of options. (check-in: [fcaa549324] user: js, branch: trunk, size: 18776) [annotate] [blame] [check-ins using] [diff]

2012-10-15
11:08
[df7ab28870] part of check-in [06251136e5] Fix some forgotten renames. (check-in: [06251136e5] user: js, branch: trunk, size: 18748) [annotate] [blame] [check-ins using] [diff]
2012-10-14
10:36
[f9b576665a] part of check-in [53af033b0e] More integer overflow checks. (check-in: [53af033b0e] user: js, branch: trunk, size: 18755) [annotate] [blame] [check-ins using] [diff]
00:54
[b5e0c44310] part of check-in [c9433ea60d] range.start -> range.location. (check-in: [c9433ea60d] user: js, branch: trunk, size: 18628) [annotate] [blame] [check-ins using] [diff]
2012-10-13
21:29
[34bbb5a839] part of check-in [9817eab3be] Rename s->UTF8 to s->isUTF8. (check-in: [9817eab3be] user: js, branch: trunk, size: 18590) [annotate] [blame] [check-ins using] [diff]
20:50
[e8d0af35fc] part of check-in [9cfefe9c30] Move UTF-8 functions to OFString_UTF8.m. (check-in: [9cfefe9c30] user: js, branch: trunk, size: 18558) [annotate] [blame] [check-ins using] [diff]
20:35
[e0a807cffb] part of check-in [41bfdb858c] OFMutableString_UTF8: Add missing range check. (check-in: [41bfdb858c] user: js, branch: trunk, size: 18579) [annotate] [blame] [check-ins using] [diff]
2012-09-16
15:27
[5e44e80986] part of check-in [c137da5e5b] Prefix all private methods with OF_. (check-in: [c137da5e5b] user: js, branch: trunk, size: 18480) [annotate] [blame] [check-ins using] [diff]
2012-09-06
19:13
[4461cd0c4e] part of check-in [3659c87c63] Add -[OFString initWithUTF8String:freeWhenDone:]. (check-in: [3659c87c63] user: js, branch: trunk, size: 18479) [annotate] [blame] [check-ins using] [diff]
2012-08-10
20:08
[9ad6fdf9a8] part of check-in [1255f3a11a] Directly use the runtime's autorelease pools.

This greatly improves performance, as it gets rid of the overhead of
OFAutoreleasePool. (check-in: [1255f3a11a] user: js, branch: trunk, size: 18335) [annotate] [blame] [check-ins using] [diff]

2012-07-16
22:44
[30423a3dc6] part of check-in [ff8b2a6c29] Don't require extra parentheses for OF_(UN)LIKELY. (check-in: [ff8b2a6c29] user: js, branch: trunk, size: 18345) [annotate] [blame] [check-ins using] [diff]
2012-07-12
01:28
[79591b5b1e] part of check-in [8892ae9fcc] Don't access isa directly. (check-in: [8892ae9fcc] user: js, branch: trunk, size: 18353) [annotate] [blame] [check-ins using] [diff]
2012-07-07
11:10
[665667dba6] part of check-in [a7d93acf17] Remove useless variable. (check-in: [a7d93acf17] user: js, branch: trunk, size: 18117) [annotate] [blame] [check-ins using] [diff]
2012-07-06
15:00
[19cda638bc] part of check-in [9a2430abfc] Add -[OFString capitalizedString]. (check-in: [9a2430abfc] user: js, branch: trunk, size: 18214) [annotate] [blame] [check-ins using] [diff]
2012-06-10
13:28
[ccd236b694] part of check-in [11d3d69a22] More API improvements. (check-in: [11d3d69a22] user: js, branch: trunk, size: 17306) [annotate] [blame] [check-ins using] [diff]
2012-06-06
13:47
[3f21e1777e] part of check-in [f7576a66ce] Slightly change the memory management API.

Also fix a bug where OFBigDataArray would waste memory. (check-in: [f7576a66ce] user: js, branch: trunk, size: 17311) [annotate] [blame] [check-ins using] [diff]

2012-01-31
18:59
[6763734ad5] part of check-in [e5fe02de61] Add -[OFMutableString replaceOccurrencesOfString:withString:inRange:]. (check-in: [e5fe02de61] user: js, branch: trunk, size: 17312) [annotate] [blame] [check-ins using] [diff]
15:16
[8b0f05ccee] part of check-in [f68b3b300d] Remove useless checks. (check-in: [f68b3b300d] user: js, branch: trunk, size: 16972) [annotate] [blame] [check-ins using] [diff]
14:32
[5552cd8f9b] part of check-in [607c862411] Fix -[OFMutableString_UTF8 replaceCharactersInRange:withString:]. (check-in: [607c862411] user: js, branch: trunk, size: 17190) [annotate] [blame] [check-ins using] [diff]
2012-01-24
12:01
[a5af572702] part of check-in [a0d967e8dd] Cache hashes of strings. (check-in: [a0d967e8dd] user: js, branch: trunk, size: 17190) [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
[eed6c4692d] part of check-in [ce70e17b38] Update copyright. (check-in: [ce70e17b38] user: js, branch: trunk, size: 16928) [annotate] [blame] [check-ins using] [diff]
2011-11-20
18:41
Added: [42c6bc2e36] part of check-in [301ee63212] Make OFString a class cluster.

It is a class cluster now, but there is still much to improve. (check-in: [301ee63212] user: js, branch: trunk, size: 16922) [annotate] [blame] [check-ins using]