8#ifndef INCLUDED_S_BALTST_CUSTOMSTRING
9#define INCLUDED_S_BALTST_CUSTOMSTRING
43#include <bslalg_typetraits.h>
55#include <bsl_string.h>
57#include <bsl_iosfwd.h>
58#include <bsl_limits.h>
62namespace bslma {
class Allocator; }
64namespace s_baltst {
class CustomString; }
98#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
99 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
130#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
131 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
162 bsl::ostream&
print(bsl::ostream& stream,
164 int spacesPerLevel = 4)
const;
183 return lhs.d_value == rhs.d_value;
192 return lhs.d_value != rhs.d_value;
200 return rhs.print(stream, 0, -1);
223: d_value(basicAllocator)
229: d_value(original.d_value, basicAllocator)
233#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
234 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
237: d_value(
bsl::move(original.d_value), basicAllocator)
244: d_value(value, basicAllocator)
258 d_value = rhs.d_value;
283 int spacesPerLevel)
const
Definition bslstl_string.h:1252
Definition bslma_allocator.h:545
Definition s_baltst_customstring.h:71
friend bool operator!=(const CustomString &lhs, const CustomString &rhs)
Definition s_baltst_customstring.h:190
const bsl::string & toString() const
Convert this value to bsl::string.
Definition s_baltst_customstring.h:289
CustomString(bslma::Allocator *basicAllocator=0)
Definition s_baltst_customstring.h:222
static int checkRestrictions(const bsl::string &value)
CustomString & operator=(const CustomString &rhs)
Assign to this object the value of the specified rhs object.
Definition s_baltst_customstring.h:256
void reset()
Definition s_baltst_customstring.h:263
~CustomString()
Destroy this object.
Definition s_baltst_customstring.h:250
bsl::string BaseType
Definition s_baltst_customstring.h:78
int fromString(const bsl::string &value)
Definition s_baltst_customstring.h:269
static const char CLASS_NAME[]
Definition s_baltst_customstring.h:81
friend bsl::ostream & operator<<(bsl::ostream &stream, const CustomString &rhs)
Definition s_baltst_customstring.h:197
friend bool operator==(const CustomString &lhs, const CustomString &rhs)
Definition s_baltst_customstring.h:181
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customstring.h:281
#define BDLAT_DECL_CUSTOMIZEDTYPE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:352
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT_RCSID(tag, str)
BSLS_IDENT_RCSID() - insert ident str (specific to platform/compiler)
Definition bsls_ident.h:244
#define BSLS_IDENT_PRAGMA_ONCE
BSLS_IDENT_PRAGMA_ONCE - macro to avoid multiple inclusion
Definition bsls_ident.h:263
void reset(TYPE *object)
Reset the value of the specified object to its default value.
bsl::ostream & print(bsl::ostream &stream, const TYPE &object, int level=0, int spacesPerLevel=4)
Definition bdlb_printmethods.h:725
Definition bdlat_valuetypefunctions.h:939
Definition baljsn_encoder_testtypes.h:76
Definition s_baltst_address.h:66