Skip to content

Commit

Permalink
doc new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Mar 3, 2015
1 parent 25342ba commit ef21fbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/json/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ Json::Value obj_value(Json::objectValue); // {}
Value(UInt64 value);
#endif // if defined(JSON_HAS_INT64)
Value(double value);
Value(const char* value);
Value(const char* beginValue, const char* endValue);
Value(const char* value); ///! Copy til first 0. (NULL causes to seg-fault.)
Value(const char* beginValue, const char* endValue); ///! Copy all, incl zeroes.
/** \brief Constructs a value from a static string.
* Like other value string constructor but do not duplicate the string for
Expand All @@ -239,7 +239,7 @@ Json::Value obj_value(Json::objectValue); // {}
* \endcode
*/
Value(const StaticString& value);
Value(const std::string& value);
Value(const std::string& value); ///! Copy data() til size(). Embedded zeroes too.
#ifdef JSON_USE_CPPTL
Value(const CppTL::ConstString& value);
#endif
Expand All @@ -266,8 +266,8 @@ Json::Value obj_value(Json::objectValue); // {}
bool operator!=(const Value& other) const;
int compare(const Value& other) const;

const char* asCString() const;
std::string asString() const;
const char* asCString() const; ///! Embedded zeroes could cause you trouble!
std::string asString() const; ///! Embedded zeroes are possible.
#ifdef JSON_USE_CPPTL
CppTL::ConstString asConstString() const;
#endif
Expand Down

0 comments on commit ef21fbc

Please sign in to comment.