67 : items_(other.items_)
99 return (items_ + size_);
122 return items_[index];
130 return items_[index];
132 throw std::invalid_argument(
"index");
140 items_ = other.items_;
151 std::swap(items_, other.items_);
152 std::swap(size_, other.size_);
167 const std::string& str)
169 return StrRef(str.data(), str.size());
193 return std::string(ref.
items(), ref.
size());
212 return std::string(1, character);
222 str.append(1, character);
230 const std::string& value)
256 return !(left == right);
264 const std::string& str)
274 const std::string& str)
283 const std::string& str,
293 const std::string& str,
355 if (0 == compareResult)
358 static_cast<ptrdiff_t
>(
362 return (0 > compareResult);
372 return (right < left);
379 std::ostream& stream,
void toStr(std::string &str, const std::string &value)
Appends one string another one.
bool operator>(const StrRef &left, const StrRef &right)
Establishes order over string refs.
void reset()
Resets reference to nothing.
void swap(StrRef &other)
Swaps content with other instance.
Iterator end() const
STL-like end().
bool operator!=(const Char *str, const StrRef &ref)
Compares StrRef with zero-terminated/C-like string.
size_t size() const
Number of chars.
StrRef toStrRef(const Char *cStr)
Initializes instance from zero-terminated/C-like string.
StrRef(const StrRef &other)
Initializes as clone of other instance.
StrRef()
Initializes blank instance.
bool operator<(const StrRef &left, const StrRef &right)
Establishes order over string refs.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
char Char
Character type alias.
void reset(const Char *chars, size_t size)
Updates data being referenced.
std::ostream & operator<<(std::ostream &stream, const StrRef &text)
StrRef serialization operator.
const Char * Iterator
STL-like iterator.
const Char & at(size_t index) const
bool empty() const
Indicates whether array of zero length.
bool operator==(const Char *str, const StrRef &ref)
Compares StrRef with zero-terminated/C-like string.
const Char * items() const
Read-only content.
Provides efficient way of accessing text-based FIX field values.
StrRef(const Char *chars, size_t size)
Full initialization.
Iterator begin() const
STL-like begin().
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN