File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,10 @@ typedef UInt64 LargestUInt;
150
150
#define JSON_HAS_INT64
151
151
#endif // if defined(JSON_NO_INT64)
152
152
#if JSON_USE_SECURE_MEMORY
153
- #define JSONCPP_STRING std::basic_string<char , std::char_traits<char >, SecureAllocator<char > >
154
- #define JSONCPP_OSTRINGSTREAM std::basic_ostringstream<char , std::char_traits<char >, SecureAllocator<char > >
153
+ #define JSONCPP_STRING std::basic_string<char , std::char_traits<char >, Json:: SecureAllocator<char > >
154
+ #define JSONCPP_OSTRINGSTREAM std::basic_ostringstream<char , std::char_traits<char >, Json:: SecureAllocator<char > >
155
155
#define JSONCPP_OSTREAM std::basic_ostream<char , std::char_traits<char >>
156
- #define JSONCPP_ISTRINGSTREAM std::basic_istringstream<char , std::char_traits<char >, SecureAllocator<char > >
156
+ #define JSONCPP_ISTRINGSTREAM std::basic_istringstream<char , std::char_traits<char >, Json:: SecureAllocator<char > >
157
157
#define JSONCPP_ISTREAM std::istream
158
158
#else
159
159
#define JSONCPP_STRING std::string
Original file line number Diff line number Diff line change @@ -323,6 +323,9 @@ Json::Value obj_value(Json::objectValue); // {}
323
323
int compare (const Value& other) const ;
324
324
325
325
const char * asCString () const ; // /< Embedded zeroes could cause you trouble!
326
+ #if JSON_USE_SECURE_MEMORY
327
+ unsigned getCStringLength () const ; // Allows you to understand the length of the CString
328
+ #endif
326
329
JSONCPP_STRING asString () const ; // /< Embedded zeroes are possible.
327
330
/* * Get raw char* of string-value.
328
331
* \return false if !string. (Seg-fault if str or end are NULL.)
You can’t perform that action at this time.
0 commit comments