-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type aware properties improvements #674
Comments
It will be nice to have array support. |
Also remove support for int, uint, ulong, float and size as array list element. This is now more aligned with hash map.
In PR #727, element types for the array list were introduced. To ensure the introduction of array list element types is backwards compatible, a potential element type value of
|
…cation. When compiling a filter, it will try to parse arbitrary string as a version. The string length may exceed 64 bytes and thus will trigger unnecessary dynamic memory allocation.
…dle CELIX_ILLEGAL_ARGUMENT of addEntry callback.
…ests for filter. Attributes were ignored when performing equality test between substring filters.
It also replaces celix_utils_stringEquals with cheaper celix_utils_isStringNullOrEmpty.
Intro
Improve celix properties so that properties can be stored and loaded to/from file with type information and encode (serialize) to/from netstring with type information.
Store / Load
Ensure that properties stored using
celix_properties_store
contain type information if the entry is not a string (i.e. long, double, boolean or version) and that properties loaded usingcelix_properties_load
,celix_properties_loadWithStream
orcelix_properties_loadFromString
used the optional type information to load a type aware properties set.Properties netstring encoding
Add some util functions that can encode/decode a celix properties set to/from a netstring sequence.
The properties can be a netstring sequence where the content is:
t
(string),J
(long),D
(double) orZ
(boolean)lcelix_version_t;
(celix version))Array support
Currently properties do not support a array of typed entries.
Support for typed arrays for the following types (string, long, double, bool and celix_version_t) would be nice to have.
The text was updated successfully, but these errors were encountered: