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; }
102#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
103 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
134#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
135 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
164 bsl::ostream&
print(bsl::ostream& stream,
166 int spacesPerLevel = 4)
const;
218: d_value(basicAllocator)
224: d_value(original.d_value, basicAllocator)
228#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
229 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
232: d_value(
bsl::move(original.d_value), basicAllocator)
239: d_value(value, basicAllocator)
253 d_value = rhs.d_value;
278 int spacesPerLevel)
const
298 return lhs.d_value == rhs.d_value;
306 return lhs.d_value != rhs.d_value;
311 bsl::ostream& stream,
314 return rhs.
print(stream, 0, -1);
Definition bslstl_string.h:1281
Definition bslma_allocator.h:457
Definition s_baltst_customizedstring.h:71
void reset()
Definition s_baltst_customizedstring.h:258
friend bool operator!=(const CustomizedString &lhs, const CustomizedString &rhs)
CustomizedString(bslma::Allocator *basicAllocator=0)
Definition s_baltst_customizedstring.h:217
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customizedstring.h:276
int fromString(const bsl::string &value)
Definition s_baltst_customizedstring.h:264
static const char CLASS_NAME[]
Definition s_baltst_customizedstring.h:85
CustomizedString & operator=(const CustomizedString &rhs)
Assign to this object the value of the specified rhs object.
Definition s_baltst_customizedstring.h:251
bsl::string BaseType
Definition s_baltst_customizedstring.h:82
~CustomizedString()
Destroy this object.
Definition s_baltst_customizedstring.h:245
friend bool operator==(const CustomizedString &lhs, const CustomizedString &rhs)
const bsl::string & toString() const
Convert this value to bsl::string.
Definition s_baltst_customizedstring.h:284
static int checkRestrictions(const bsl::string &value)
#define BDLAT_DECL_CUSTOMIZEDTYPE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:333
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
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:719
Definition bdlb_printmethods.h:283
Definition balxml_encoderoptions.h:68
Definition s_baltst_address.h:66
bool operator!=(const Address &lhs, const Address &rhs)
bool operator==(const Address &lhs, const Address &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Address &rhs)