summaryrefslogtreecommitdiff
path: root/indra/llcommon/llsdutil.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-02-13 13:58:23 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-02-13 13:58:23 +0000
commit2b7966302131975e8d270bbf2985b678f37d4b24 (patch)
tree69d01a92eeaa5de292673bc4506f1d0932d3d607 /indra/llcommon/llsdutil.cpp
parentdec077e54a21ccda7d7cc0b610a87eacfd36af09 (diff)
parent5510b589b136d354ce2975c45f41ccc7e66e9d21 (diff)
merge
Diffstat (limited to 'indra/llcommon/llsdutil.cpp')
-rw-r--r--indra/llcommon/llsdutil.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llsdutil.cpp b/indra/llcommon/llsdutil.cpp
index 6ad4a97149..9d00395c0a 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.