Elektra
0.9.4
|
Currently we store both the escaped and unescaped name in a Key and in a way that there cannot be an optimization not to store it (there are functions handling out the pointer).
Remove the escaped name from struct _Key
and use it only when necessary.
Clarify and reduce terminology.
API Changes:
keyName
returns the unescaped name (temporary some other name for PR: keyUnescapedName(Size)
)keyUnescapedName
, keyGetUnescapedNameSize
.keyNew
(+ arguments for adding key names) [unclear: maybe not needed]elektraEscapeName
(operating on chars)keyAddName
, e.g. to keyAddEscapedName
keyDup(.., int)
with options to filter which parts are copied (to allow copy of keys where only the key name is copied)