ObjFW  History of src/OFString+JSONParsing.m of 7752f8518b459b35

History of the file that is called src/OFString+JSONParsing.m at check-in 7752f8518b459b35

2024-04-29
21:42
[16ebad3f2c] part of check-in [f16bccc7b3] Properly hide private symbols (check-in: [f16bccc7b3] user: js, branch: trunk, size: 13291) [annotate] [blame] [check-ins using] [diff]
2024-04-03
02:16
[b1d14c6372] part of check-in [7413a728a7] Change license to LGPLv3 only (check-in: [7413a728a7] user: js, branch: trunk, size: 13287) [annotate] [blame] [check-ins using] [diff]
2024-01-02
17:17
[2a3fb814b9] part of check-in [26ddd2e4e4] Update copyright (check-in: [26ddd2e4e4] user: js, branch: trunk, size: 13079) [annotate] [blame] [check-ins using] [diff]
2023-01-06
09:04
[a752f4ba41] part of check-in [8939cbdb52] Update copyright (check-in: [8939cbdb52] user: js, branch: trunk, size: 13079) [annotate] [blame] [check-ins using] [diff]
2022-11-16
01:27
[4b9a43cc0d] part of check-in [c86b8f10f0] Add OFAssert()

This uses the same format as OFEnsure(). (check-in: [c86b8f10f0] user: js, branch: trunk, size: 13079) [annotate] [blame] [check-ins using] [diff]

2022-02-12
07:46
[5489126d7d] part of check-in [1a86b8175b] Update copyright (check-in: [1a86b8175b] user: js, branch: trunk, size: 13160) [annotate] [blame] [check-ins using] [diff]
2021-04-18
22:56
[fd3673a355] part of check-in [e73c65a849] Rename all symbols marked extern (check-in: [e73c65a849] user: js, branch: new-naming-convention, size: 13160) [annotate] [blame] [check-ins using] [diff]
2021-04-17
22:45
[5b4983e183] part of check-in [498074dab9] Rename of_(re)alloc and add OFFreeMemory (check-in: [498074dab9] user: js, branch: new-naming-convention, size: 13181) [annotate] [blame] [check-ins using] [diff]
01:35
[b02567e9c8] part of check-in [6d9d790a24] of_char{16,32}_t -> OFChar{16,32} (check-in: [6d9d790a24] user: js, branch: new-naming-convention, size: 13019) [annotate] [blame] [check-ins using] [diff]
01:32
[86a655710b] part of check-in [2d3790870d] of_unichar_t -> OFUnichar (check-in: [2d3790870d] user: js, branch: new-naming-convention, size: 13031) [annotate] [blame] [check-ins using] [diff]
2021-03-07
20:25
[c87ddb2735] part of check-in [1b82d3bf4f] *.m: Fold methods into one line where it fits (check-in: [1b82d3bf4f] user: js, branch: trunk, size: 13037) [annotate] [blame] [check-ins using] [diff]
02:36
[0ac530152e] part of check-in [a0fd103a0b] Style change: Allow more than 1 argument per line

This is only migrating some places, others will be migrated as they are
touched. (check-in: [a0fd103a0b] user: js, branch: trunk, size: 13049) [annotate] [blame] [check-ins using] [diff]

2021-01-02
22:04
[182fb0261b] part of check-in [374e1a1bfa] Update copyright (check-in: [374e1a1bfa] user: js, branch: trunk, size: 13059) [annotate] [blame] [check-ins using] [diff]
2020-12-20
13:49
[87dbebe87e] part of check-in [d3fb77eb9c] Clean up a few defines (check-in: [d3fb77eb9c] user: js, branch: trunk, size: 13148) [annotate] [blame] [check-ins using] [diff]
2020-11-14
12:23
[57caefd874] part of check-in [627511b032] Rename of_malloc and of_calloc

The new names should be more accurate. (check-in: [627511b032] user: js, branch: trunk, size: 13089) [annotate] [blame] [check-ins using] [diff]

2020-11-05
00:24
[c0346b7fe9] part of check-in [0ddaac3f5b] Avoid -[allocMemoryWithSize:] for temporary memory

-[allocMemoryWithSize:] has book keeping overhead that is unnecessary
for temporary memory. (check-in: [0ddaac3f5b] user: js, branch: trunk, size: 13091) [annotate] [blame] [check-ins using] [diff]

2020-11-04
23:18
[6d4d4d10b0] part of check-in [3d8286feee] Remove of_free()

While it makes sense to wrap malloc and calloc to replace the error
checking with exceptions, it does not make sense to wrap free. (check-in: [3d8286feee] user: js, branch: trunk, size: 13091) [annotate] [blame] [check-ins using] [diff]

2020-10-25
23:33
[b73e42773d] part of check-in [d0ae3bfd6c] Add of_{malloc,calloc,realloc,free} (check-in: [d0ae3bfd6c] user: js, branch: trunk, size: 13148) [annotate] [blame] [check-ins using] [diff]
2020-08-13
21:07
Renamed src/OFString+JSONValue.m → src/OFString+JSONParsing.m. [706b49d04b] part of check-in [8611f48f42] OFString: Rename JSONValue to objectByParsingJSON (check-in: [8611f48f42] user: js, branch: trunk, size: 13120) [annotate] [blame] [check-ins using] [diff]
2020-08-11
19:45
[2f361d6379] part of check-in [b6ee372b98] OFString: Rework number parsing API

This solves the old signed vs. unsigned problem and allows for more
bases than just 8, 10 and 16, as well as auto-detection of the base (if
base is 0). (check-in: [b6ee372b98] user: js, branch: trunk, size: 13084) [annotate] [blame] [check-ins using] [diff]

2020-01-02
01:51
[ac798fd712] part of check-in [c7f0229795] Update copyright (check-in: [c7f0229795] user: js, branch: trunk, size: 13034) [annotate] [blame] [check-ins using] [diff]
2019-03-08
00:35
[8c09849227] part of check-in [bceb7ed4c9] Use dot syntax (check-in: [bceb7ed4c9] user: js, branch: trunk, size: 13031) [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
[487fb8caf6] part of check-in [0509d7a844] Update copyright (check-in: [0509d7a844] user: js, branch: trunk, size: 13041) [annotate] [blame] [check-ins using] [diff]
2018-11-17
22:59
[5af43d3b89] part of check-in [b090b5ce92] Various minor style improvements (check-in: [b090b5ce92] user: js, branch: trunk, size: 13035) [annotate] [blame] [check-ins using] [diff]
2018-02-25
04:31
[0d9de1d0b0] part of check-in [505137f25f] Reintroduce of_char{16,32}_t

There is no reliable way to check if C++ already defined those, as Clang
now defines char{16,32}_t even when it is not in C++ 11 mode. So we
cannot check if we are not in C++ 11 and then define them and otherwise
rely on the C++ 11 types. (check-in: [505137f25f] user: js, branch: trunk, size: 12995) [annotate] [blame] [check-ins using] [diff]

2018-01-03
19:49
[8041bfaa01] part of check-in [7e5c81e186] Update copyright notice (check-in: [7e5c81e186] user: js, branch: trunk, size: 12983) [annotate] [blame] [check-ins using] [diff]
2017-09-26
22:40
[e54b1de1c0] part of check-in [c9efebeff9] Work around Clang analyzer false positives (check-in: [c9efebeff9] user: js, branch: trunk, size: 12960) [annotate] [blame] [check-ins using] [diff]
2017-05-13
23:27
[9ab88e7a0f] part of check-in [c0d8a3426c] Add depth limit for MessagePack (check-in: [c0d8a3426c] user: js, branch: trunk, size: 12900) [annotate] [blame] [check-ins using] [diff]
2017-05-07
21:25
[a9f012805c] part of check-in [37d2a81754] Use char{16,32}_t instead of of_char{16,32}_t (check-in: [37d2a81754] user: js, branch: trunk, size: 13007) [annotate] [blame] [check-ins using] [diff]
20:10
[44a7ffa4d7] 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: 13019) [annotate] [blame] [check-ins using] [diff]

2017-02-04
17:45
[0b6aa35b67] part of check-in [5a31a537a1] Fix typos in comments and strings found by aspell (check-in: [5a31a537a1] user: js, branch: trunk, size: 13014) [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
[3ded34b885] 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: 13014) [annotate] [blame] [check-ins using] [diff]

2016-05-29
14:34
[eaa788e234] part of check-in [1e9a23441b] OFString+JSONValue: Remove restrict

It makes no sense here. (check-in: [1e9a23441b] user: js, branch: trunk, size: 13008) [annotate] [blame] [check-ins using] [diff]

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

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

2015-01-03
20:57
[0170d668eb] part of check-in [cfd374b906] Update copyright (check-in: [cfd374b906] user: js, branch: trunk, size: 13184) [annotate] [blame] [check-ins using] [diff]
2014-07-06
11:04
[2d16a6d32f] part of check-in [b5c8b62533] OFString+*.m: Add a few missing autorelease pools

Those were only a problem if the user created its own OFString subclass,
as calls to -[UTF8String] could then create a new, autoreleased C
string. As OFString_UTF8 simply returns the internal C string, this
hasn't been a problem when not subclassing OFString. (check-in: [b5c8b62533] user: js, branch: trunk, size: 13178) [annotate] [blame] [check-ins using] [diff]

2014-06-21
21:43
[f9c7af6229] 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: 13070) [annotate] [blame] [check-ins using] [diff]

2014-04-14
00:45
[848285d233] part of check-in [9da9b2b64c] Coding style

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

2014-01-04
00:24
[d042fbb026] part of check-in [3b97fc3cd9] Update copyright. (check-in: [3b97fc3cd9] user: js, branch: trunk, size: 13075) [annotate] [blame] [check-ins using] [diff]
2013-06-22
12:12
[c7c766a996] 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: 13069) [annotate] [blame] [check-ins using] [diff]

2013-04-09
22:09
[a402664fc6] part of check-in [8fe08864f8] Fix incomplete of_char16_t migration. (check-in: [8fe08864f8] user: js, branch: trunk, size: 13075) [annotate] [blame] [check-ins using] [diff]
2013-03-04
17:20
[b110ce39ff] 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: 13063) [annotate] [blame] [check-ins using] [diff]

2013-02-23
18:00
[16be464aa0] part of check-in [9c24db3c6d] Disallow \u0000 in JSON and fix ObjFW.h. (check-in: [9c24db3c6d] user: js, branch: trunk, size: 13052) [annotate] [blame] [check-ins using] [diff]
2013-01-28
21:12
[534d095364] part of check-in [f59977a0aa] JSON5: Update to new version of the spec.

This adds support for Infinity and leading + signs. (check-in: [f59977a0aa] user: js, branch: trunk, size: 13019) [annotate] [blame] [check-ins using] [diff]

2013-01-09
22:24
[c3668fbf8e] part of check-in [813c00ccf0] Update copyright. (check-in: [813c00ccf0] user: js, branch: trunk, size: 12790) [annotate] [blame] [check-ins using] [diff]
2012-12-03
01:16
[9c5a92bb7c] part of check-in [d60c3ae1ec] JSON: Add configurable depth limit.

The default is 32. (check-in: [d60c3ae1ec] user: js, branch: trunk, size: 12784) [annotate] [blame] [check-ins using] [diff]

2012-10-13
20:50
[12270ead53] part of check-in [9cfefe9c30] Move UTF-8 functions to OFString_UTF8.m. (check-in: [9cfefe9c30] user: js, branch: trunk, size: 12336) [annotate] [blame] [check-ins using] [diff]
2012-07-12
01:28
[a76e28c035] part of check-in [8892ae9fcc] Don't access isa directly. (check-in: [8892ae9fcc] user: js, branch: trunk, size: 12352) [annotate] [blame] [check-ins using] [diff]
2012-06-10
16:07
[291a080964] part of check-in [72c71c4eb2] JSON: Make it possible to get the invalid line.

This introduces OFInvalidJSONException, which has a property line to get
the line in which the parsing error occurred. (check-in: [72c71c4eb2] user: js, branch: trunk, size: 12343) [annotate] [blame] [check-ins using] [diff]

2012-06-05
16:05
[06182df9e0] part of check-in [670a739c02] Disallow newlines in JSON strings. (check-in: [670a739c02] user: js, branch: trunk, size: 11683) [annotate] [blame] [check-ins using] [diff]
15:03
[e03da095af] part of check-in [c9a3ac1a03] JSON5: Allow identifiers as dictionary keys.

This completes the JSON5 support. (check-in: [c9a3ac1a03] user: js, branch: trunk, size: 11553) [annotate] [blame] [check-ins using] [diff]

14:51
[9471862e0a] part of check-in [509ab0affd] Add a warning to -[OFString JSONValue]. (check-in: [509ab0affd] user: js, branch: trunk, size: 9306) [annotate] [blame] [check-ins using] [diff]
10:21
[9867823bd8] part of check-in [62cd394e96] JSON5: Allow trailing commas. (check-in: [62cd394e96] user: js, branch: trunk, size: 9308) [annotate] [blame] [check-ins using] [diff]
2012-06-04
23:50
[b5b787a904] part of check-in [2002348e23] JSON5: Allow strings split across multiple lines. (check-in: [2002348e23] user: js, branch: trunk, size: 8974) [annotate] [blame] [check-ins using] [diff]
23:36
[81f47968cf] part of check-in [3e028f7479] Allow numbers in JSON5 format. (check-in: [3e028f7479] user: js, branch: trunk, size: 8823) [annotate] [blame] [check-ins using] [diff]
22:32
[8ad19cb41d] part of check-in [54f80aba7a] Initial JSON5 support.

Supported so far:
* comments
* single quoted strings (check-in: [54f80aba7a] user: js, branch: trunk, size: 8658) [annotate] [blame] [check-ins using] [diff]

2012-02-24
20:38
[9190d7a166] part of check-in [c8a5922af2] Don't use OF_INLINE where the function contains a @try block.
Doing so does not work if exceptions are SJLJ.
(check-in: [c8a5922af2] user: js, branch: 0.6, size: 8611) [annotate] [blame] [check-ins using] [diff]
2012-02-06
11:31
[887f63d0ca] part of check-in [acd8e03f58] Return mutable collections in -[JSONValue].

This allows modifying data and getting the JSON representation again. (check-in: [acd8e03f58] user: js, branch: trunk, size: 8626) [annotate] [blame] [check-ins using] [diff]

2012-01-05
00:56
[b960291ebc] part of check-in [ce70e17b38] Update copyright. (check-in: [ce70e17b38] user: js, branch: trunk, size: 8667) [annotate] [blame] [check-ins using] [diff]
2011-12-11
01:59
[12e5560901] part of check-in [6203c9e8f2] Allow comments in JSON.

While comments are not part of the JSON standard itself, allowing them
makes JSON a useful format for configurations and accepting more than is
required never hurts. (check-in: [6203c9e8f2] user: js, branch: trunk, size: 8661) [annotate] [blame] [check-ins using] [diff]

2011-12-10
21:46
Added: [5f77e1f7f1] part of check-in [8ba0a62c0d] Add JSON parsing. (check-in: [8ba0a62c0d] user: js, branch: trunk, size: 7758) [annotate] [blame] [check-ins using]