docs/Writerside/topics/parsers.md

Sat, 11 Oct 2025 11:55:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 11 Oct 2025 11:55:46 +0200
changeset 1422
8bfccb342895
parent 1212
cc9f9a30869f
permissions
-rw-r--r--

changes the compare function wrapper for pointer lists so that it no longer invokes the actual compare function for NULL pointers

1211
37cfb534800e add w.i.p hint to parsers topic
Mike Becker <universe@uap-core.de>
parents: 1141
diff changeset
1 # Parsers
37cfb534800e add w.i.p hint to parsers topic
Mike Becker <universe@uap-core.de>
parents: 1141
diff changeset
2
1212
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
3 UCX offers parsers for two common formats: key/value [properties](properties.h.md) and [JSON](json.h.md).
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
4
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
5 Both parser APIs are implemented in a memory efficient way.
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
6 Depending on the use case, the properties parser can avoid memory allocations completely
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
7 and the JSON parser minimizes allocations as good as possible.
cc9f9a30869f intro text for parsers
Mike Becker <universe@uap-core.de>
parents: 1211
diff changeset
8 Due to the nature of JSON, avoiding allocations altogether is of course not possible, though.

mercurial