summaryrefslogtreecommitdiffstats
path: root/src/Key.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-01-16Rename PLIST_UINT to PLIST_INT and add plist_new_int() and plist_get_int_val()Gravatar Nikias Bassen1-1/+1
This properly supports getting and setting signed or unsigned integer values. Also, a new helper function plist_int_val_is_negative() was added to determine if a given #PLIST_INT node has a negative value or not. The old type PLIST_UINT is defined as a macro with the value of PLIST_INT for backwards compatibility. This commit also adds int vs. uint support to the C++ interface, and the python bindings in a hopefully useful way.
2021-06-22[clang-tidy] cpp: Replace free with deleteGravatar Rosen Penev1-7/+2
It's the C++ way. It also avoids having to check for NULL. Found with cppcoreguidelines-owning-memory Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-22[clang-tidy] cpp: Turn reference operators to constGravatar Rosen Penev1-1/+1
Found with cppcoreguidelines-c-copy-assignment-signature Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03c++: Switch to c++ headersGravatar Rosen Penev1-1/+1
[clang-tidy]Found with hicpp-deprecated-headers Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03c++: Add closing namespace commentGravatar Rosen Penev1-1/+1
[clang-tidy] Found with google-readability-namespace-comments Signed-off-by: Rosen Penev <rosenp@gmail.com>
2014-09-20C++: Make sure String::GetValue() and Key::GetValue() don't crash with NULL ↵Gravatar Nikias Bassen1-2/+7
strings
2014-09-20Change Clone() to be const, which required constructors with const ↵Gravatar Aaron Burghardt1-3/+3
references and a const GetValue().
2012-11-13C++ bindings: added support for PLIST_KEY nodes.Gravatar Nikias Bassen1-0/+75