summaryrefslogtreecommitdiff
path: root/rapidjson
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2022-11-17 16:58:44 -0500
committerJosh Ferrell <josh@vector35.com>2022-11-27 13:43:44 -0500
commit49d9e982a09d63b7bc6e1064f904a57c1fefa9b2 (patch)
tree368926986b0c7c9363707251f05eff13f0847e74 /rapidjson
parent8961a635ba84471b614e9416b890652fe0c71159 (diff)
Add support for finding rapidjson member from string
Diffstat (limited to 'rapidjson')
-rw-r--r--rapidjson/document.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rapidjson/document.h b/rapidjson/document.h
index fcb2d663..b42dd096 100644
--- a/rapidjson/document.h
+++ b/rapidjson/document.h
@@ -1137,6 +1137,11 @@ public:
return FindMember(n);
}
+ MemberIterator FindMember(const BinaryNinjaCore::string& name) {
+ GenericValue n(StringRef(name.data(), name.size()));
+ return FindMember(n);
+ }
+
ConstMemberIterator FindMember(const Ch* name) const { return const_cast<GenericValue&>(*this).FindMember(name); }
//! Find member by name.