71 : items_(other.items_)
103 return (items_ + size_);
126 return items_[index];
134 return items_[index];
136 throw std::invalid_argument(
"index");
144 items_ = other.items_;
155 std::swap(items_, other.items_);
156 std::swap(size_, other.size_);
171 const std::string& str)
173 return StrRef(str.data(), str.size());
197 return std::string(ref.
items(), ref.
size());
218 return std::string(1, character);
228 str.append(1, character);
236 const std::string& value)
262 return !(left == right);
270 const std::string& str)
280 const std::string& str)
289 const std::string& str,
299 const std::string& str,
361 if (0 == compareResult)
364 static_cast<ptrdiff_t
>(
368 return (0 > compareResult);
378 return (right < left);
385 std::ostream& stream,
void reset(const Char *chars, size_t size)
Updates data being referenced.
bool operator==(const StrRef &left, const StrRef &right)
Compares StrRef instance with another one.
StrRef(const Char *chars, size_t size)
Full initialization.
char Char
Character type alias.
bool empty() const
Indicates whether array of zero length.
const Char & at(size_t index) const
StrRef & operator=(const StrRef &other)
Reinitializes from another instance.
const Char * Iterator
STL-like iterator.
bool operator!=(const StrRef &left, const StrRef &right)
Compares with another instance.
ONIXS_TRADEWEB_APA_API bool operator>(const Decimal &l, const Decimal &r)
Iterator end() const
STL-like end().
ONIXS_TRADEWEB_APA_API bool operator<(const Decimal &l, const Decimal &r)
Iterator begin() const
STL-like begin().
const Char * items() const
Read-only content.
void swap(StrRef &other)
Swaps content with other instance.
void reset()
Resets reference to nothing.
ONIXS_TRADEWEB_APA_API std::ostream & operator<<(std::ostream &stream, const DataSource &ds)
const Char & operator[](size_t index) const
Provides efficient way of accessing text-based FIX field values.
StrRef(const StrRef &other)
StrRef()
Initializes blank instance.
void toStr(std::string &str, const Decimal &value)
size_t size() const
Number of chars.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.