ObjFW  History of src/OFMutableString_UTF8.m of 754bf247423a3532

History of file src/OFMutableString_UTF8.m at check-in 754bf247423a3532

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
OFString_UTF8: Improved range checks file: [8884971f0c] check-in: [0b962df002] user: js, branch: trunk, size: 20302 [annotate] [blame] [check-ins using] [diff]
2019-03-08
00:35
Use dot syntax file: [afad633464] check-in: [bceb7ed4c9] user: js, branch: trunk, size: 20301 [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
Update copyright file: [b9817e13bd] check-in: [0509d7a844] user: js, branch: trunk, size: 20344 [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
Update copyright notice file: [532a216bc1] check-in: [7e5c81e186] user: js, branch: trunk, size: 20338 [annotate] [blame] [check-ins using] [diff]
2017-11-04
21:09
OFString: Improve freeWhenDone in case of error file: [f1c7e94219] check-in: [9f3a4dfbc0] user: js, branch: trunk, size: 20315 [annotate] [blame] [check-ins using] [diff]
2017-10-22
15:05
Make Apple GCC with -Wshadow happy file: [7d0da4b4a5] check-in: [a06354b42a] user: js, branch: trunk, size: 20010 [annotate] [blame] [check-ins using] [diff]
14:09
Make Apple GCC with -Wshadow happy file: [688bb89a18] check-in: [31c0f5b89e] user: js, branch: 0.90, size: 19996 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
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. file: [4eb8ccee47] check-in: [2f4e0df8be] user: js, branch: trunk, size: 20072 [annotate] [blame] [check-ins using] [diff]

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

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

2017-05-07
20:10
Small code style change

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

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

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

2016-03-13
11:19
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. file: [f55475cd25] check-in: [5e2ef97c35] user: js, branch: trunk, size: 19896 [annotate] [blame] [check-ins using] [diff]

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

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

2015-01-03
20:57
Update copyright file: [9a54f93878] check-in: [cfd374b906] user: js, branch: trunk, size: 19850 [annotate] [blame] [check-ins using] [diff]
2014-06-21
21:43
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. file: [b53250c187] check-in: [13ee56edf3] user: js, branch: trunk, size: 19844 [annotate] [blame] [check-ins using] [diff]

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

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

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

2013-06-22
12:12
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. file: [7fb8de4d28] check-in: [3d16a30f41] user: js, branch: trunk, size: 19565 [annotate] [blame] [check-ins using] [diff]

2013-03-04
17:20
Replace BOOL with bool.

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

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

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

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

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

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

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

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