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; }
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_customstring.h:71
friend bool operator!=(const CustomString &lhs, const CustomString &rhs)
const bsl::string & toString() const
Convert this value to bsl::string.
Definition s_baltst_customstring.h:284
CustomString(bslma::Allocator *basicAllocator=0)
Definition s_baltst_customstring.h:217
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:251
void reset()
Definition s_baltst_customstring.h:258
~CustomString()
Destroy this object.
Definition s_baltst_customstring.h:245
bsl::string BaseType
Definition s_baltst_customstring.h:82
int fromString(const bsl::string &value)
Definition s_baltst_customstring.h:264
static const char CLASS_NAME[]
Definition s_baltst_customstring.h:85
friend bool operator==(const CustomString &lhs, const CustomString &rhs)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customstring.h:276
#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)