summaryrefslogtreecommitdiff
path: root/indra/llcommon/llsdutil.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <none@none>2018-02-12 21:15:00 +0200
committerAndreyL ProductEngine <none@none>2018-02-12 21:15:00 +0200
commite6765df1baa40a46b77e5362c8855a336125e5f7 (patch)
treeffb3564aaa95b23f0d7ab6f6eeea8d08f3e9b317 /indra/llcommon/llsdutil.cpp
parentb0950991988ddd56bec9074316d883a00b0cae4c (diff)
parent02342cb9ae3140cb49ec2818fee5692b3796bf8a (diff)
Merged in lindenlab/viewer-bear
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.