8#ifndef INCLUDED_S_BALTST_CUSTOMIZEDSTRING
9#define INCLUDED_S_BALTST_CUSTOMIZEDSTRING
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 CustomizedString; }
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;
184 return lhs.d_value == rhs.d_value;
194 return lhs.d_value != rhs.d_value;
202 return rhs.print(stream, 0, -1);
225: d_value(basicAllocator)
231: d_value(original.d_value, basicAllocator)
235#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
236 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
239: d_value(
bsl::move(original.d_value), basicAllocator)
246: d_value(value, basicAllocator)
260 d_value = rhs.d_value;
285 int spacesPerLevel)
const
Definition bslstl_string.h:1252
Definition bslma_allocator.h:545
Definition s_baltst_customizedstring.h:71
void reset()
Definition s_baltst_customizedstring.h:265
friend bsl::ostream & operator<<(bsl::ostream &stream, const CustomizedString &rhs)
Definition s_baltst_customizedstring.h:199
friend bool operator!=(const CustomizedString &lhs, const CustomizedString &rhs)
Definition s_baltst_customizedstring.h:191
CustomizedString(bslma::Allocator *basicAllocator=0)
Definition s_baltst_customizedstring.h:224
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customizedstring.h:283
int fromString(const bsl::string &value)
Definition s_baltst_customizedstring.h:271
static const char CLASS_NAME[]
Definition s_baltst_customizedstring.h:81
CustomizedString & operator=(const CustomizedString &rhs)
Assign to this object the value of the specified rhs object.
Definition s_baltst_customizedstring.h:258
bsl::string BaseType
Definition s_baltst_customizedstring.h:78
~CustomizedString()
Destroy this object.
Definition s_baltst_customizedstring.h:252
friend bool operator==(const CustomizedString &lhs, const CustomizedString &rhs)
Definition s_baltst_customizedstring.h:181
const bsl::string & toString() const
Convert this value to bsl::string.
Definition s_baltst_customizedstring.h:291
static int checkRestrictions(const bsl::string &value)
#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