8#ifndef INCLUDED_BALJSN_DATUMUTIL
9#define INCLUDED_BALJSN_DATUMUTIL
308#include <balscm_version.h>
319#include <bsl_iosfwd.h>
320#include <bsl_streambuf.h>
321#include <bsl_string.h>
322#include <bsl_string_view.h>
329class SimpleFormatter;
347 bsl::ostream *errorStream,
361 bsl::ostream *errorStream,
366 bsl::streambuf *jsonBuffer);
368 bsl::streambuf *jsonBuffer,
371 bsl::ostream *errorStream,
372 bsl::streambuf *jsonBuffer);
386 bsl::ostream *errorStream,
387 bsl::streambuf *jsonBuffer,
405 static int encode(std::string *result,
407#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
408 static int encode(std::pmr::string *result,
417#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
418 static int encode(std::pmr::string *result,
423 static int encode(bsl::ostream& stream,
455 return decode(result, 0, &buffer, options);
467 bsl::ostream *errorStream,
472 return decode(result, errorStream, &buffer, options);
477 bsl::ostream *errorStream,
485 bsl::streambuf *jsonBuffer,
488 return decode(result, 0, jsonBuffer, options);
493 bsl::streambuf *jsonBuffer)
500 bsl::ostream *errorStream,
501 bsl::streambuf *jsonBuffer)
518#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
Definition baljsn_datumdecoderoptions.h:126
Definition baljsn_datumencoderoptions.h:169
Definition bdld_datum.h:787
Definition bdld_manageddatum.h:266
Definition bdlsb_fixedmeminstreambuf.h:187
Definition bslstl_stringview.h:441
BSLS_KEYWORD_CONSTEXPR size_type length() const BSLS_KEYWORD_NOEXCEPT
Return the length of this view.
Definition bslstl_stringview.h:1685
BSLS_KEYWORD_CONSTEXPR const_pointer data() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_stringview.h:1760
Definition bslstl_string.h:1281
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition baljsn_datumdecoderoptions.h:113
Definition baljsn_datumutil.h:337
static int encode(bsl::string *result, const bdld::Datum &datum, const DatumEncoderOptions &options)
static int encode(bsl::ostream &stream, const bdld::Datum &datum, const DatumEncoderOptions &options)
static int encode(bsl::string *result, const bdld::Datum &datum)
Definition baljsn_datumutil.h:507
static int decode(bdld::ManagedDatum *result, const bsl::string_view &json)
Definition baljsn_datumutil.h:459
static int encode(std::string *result, const bdld::Datum &datum, const DatumEncoderOptions &options)
static int decode(bdld::ManagedDatum *result, bsl::ostream *errorStream, bsl::streambuf *jsonBuffer, const DatumDecoderOptions &options)