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,
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Provides efficient way of accessing text-based FIX field values.
const Char * items() const
Read-only content.
Iterator begin() const
STL-like begin().
StrRef(const Char *chars, size_t size)
Full initialization.
size_t size() const
Number of chars.
void reset(const Char *chars, size_t size)
Updates data being referenced.
Iterator end() const
STL-like end().
bool empty() const
Indicates whether array of zero length.
const Char * Iterator
STL-like iterator.
void swap(StrRef &other)
Swaps content with other instance.
StrRef()
Initializes blank instance.
void reset()
Resets reference to nothing.
StrRef(const StrRef &other)
Initializes as clone of other instance.
const Char & at(size_t index) const
char Char
Character type alias.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
void toStr(std::string &str, const Decimal &number)