diff options
author | Rider Linden <rider@lindenlab.com> | 2018-02-26 09:29:38 -0800 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-02-26 09:29:38 -0800 |
commit | e2e63598d40109d01e0311ce1444d3feedffcf66 (patch) | |
tree | 167a7d41785623cea7d7b466b4b0554e80639a55 /indra/llcommon/llsdutil.cpp | |
parent | b766466b3013e39831bcfcaef5d1089c07202afb (diff) | |
parent | 5510b589b136d354ce2975c45f41ccc7e66e9d21 (diff) |
Merge
Diffstat (limited to 'indra/llcommon/llsdutil.cpp')
-rw-r--r-- | indra/llcommon/llsdutil.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llsdutil.cpp b/indra/llcommon/llsdutil.cpp index 0171f2880e..6a23c443a0 100644 --- a/indra/llcommon/llsdutil.cpp +++ b/indra/llcommon/llsdutil.cpp @@ -193,6 +193,14 @@ char* ll_pretty_print_sd(const LLSD& sd) return buffer; } +std::string ll_stream_notation_sd(const LLSD& sd) +{ + std::ostringstream stream; + stream << LLSDOStreamer<LLSDNotationFormatter>(sd); + return stream.str(); +} + + //compares the structure of an LLSD to a template LLSD and stores the //"valid" values in a 3rd LLSD. Default values pulled from the template //if the tested LLSD does not contain the key/value pair. |