docs/Writerside/topics/parsers.md

Fri, 23 May 2025 12:44:24 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 23 May 2025 12:44:24 +0200
changeset 1327
ed75dc1db503
parent 1212
cc9f9a30869f
permissions
-rw-r--r--

make test-compile depend on both static and shared

the shared lib is not needed for the tests,
but when run with coverage, gcov will be confused
when outdated line information is available from
a previous shared build

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