mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-26 10:10:46 +01:00
3102 json lowercase hex (#4306)
* Made it possible to use lowercase hex numbers, also when encoding JSON (#3102) Co-authored-by: Thomas Weyn <Thomas.Weyn@cebir.be> * fix(JSONString): Remove deprecated toJSON functions #4305 * fix(NumericString): conversions inconsistencies #4304 --------- Co-authored-by: Archipel <thomas@weynwebworks.com> Co-authored-by: Thomas Weyn <Thomas.Weyn@cebir.be>
This commit is contained in:
committed by
GitHub
parent
9141368eca
commit
57bc0bbbb5
@@ -90,6 +90,12 @@ public:
|
||||
|
||||
bool getEscapeUnicode() const;
|
||||
/// Returns the flag for escaping unicode.
|
||||
|
||||
void setLowercaseHex(bool lowercaseHex);
|
||||
/// Sets the flag for using lowercase hex numbers
|
||||
|
||||
bool getLowercaseHex() const;
|
||||
/// Returns the flag for using lowercase hex numbers
|
||||
|
||||
ValueVec::const_iterator begin() const;
|
||||
/// Returns the begin iterator for values.
|
||||
@@ -206,6 +212,7 @@ private:
|
||||
// is because Array can be returned stringified from a Dynamic::Var:toString(),
|
||||
// so it must know whether to escape unicode or not.
|
||||
bool _escapeUnicode;
|
||||
bool _lowercaseHex;
|
||||
};
|
||||
|
||||
|
||||
@@ -224,6 +231,17 @@ inline bool Array::getEscapeUnicode() const
|
||||
return _escapeUnicode;
|
||||
}
|
||||
|
||||
inline void Array::setLowercaseHex(bool lowercaseHex)
|
||||
{
|
||||
_lowercaseHex = lowercaseHex;
|
||||
}
|
||||
|
||||
|
||||
inline bool Array::getLowercaseHex() const
|
||||
{
|
||||
return _lowercaseHex;
|
||||
}
|
||||
|
||||
|
||||
inline Array::ValueVec::const_iterator Array::begin() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user