54 : items_(ONIXS_EUROTLX_GTP_NULLPTR)
59 template <
size_t Size>
61 ONIXS_EUROTLX_GTP_CONSTEXPR
86 : items_(other.items_)
91 #if defined(ONIXS_EUROTLX_GTP_COMPILER_CXX_RVALUE_REFERENCES) && ONIXS_EUROTLX_GTP_COMPILER_CXX_RVALUE_REFERENCES 96 : items_(std::move(other.items_))
97 , size_(std::move(other.size_))
107 items_ = std::move(other.items_);
108 size_ = std::move(other.size_);
147 return (items_ + size_);
154 reset(ONIXS_EUROTLX_GTP_NULLPTR, 0);
172 return items_[index];
180 return items_[index];
182 throw std::invalid_argument(
"index");
191 items_ = other.items_;
203 std::swap(items_, other.items_);
204 std::swap(size_, other.size_);
211 size_t length =
size();
213 while(length > 0 && isspace(
operator[](length - 1)))
231 const std::string& str)
233 return StrRef(str.data(), str.size());
257 return std::string(ref.
items(), ref.
size());
276 return std::string(1, character);
286 str.append(1, character);
294 const std::string& value)
320 return !(left == right);
328 const std::string& str)
338 const std::string& str)
347 const std::string& str,
357 const std::string& str,
419 if (0 == compareResult)
422 static_cast<ptrdiff_t
>(
426 return (0 > compareResult);
436 return (right < left);
443 std::ostream& stream,
#define ONIXS_EUROTLX_GTP_NOTHROW
void reset(const Char *chars, size_t size) ONIXS_EUROTLX_GTP_NOTHROW
Updates data being referenced.
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
StrRef & operator=(const StrRef &other) ONIXS_EUROTLX_GTP_NOTHROW
Reinitializes from another instance.
StrRef() ONIXS_EUROTLX_GTP_NOTHROW
Initializes blank instance.
const Char * Iterator
STL-like iterator.
char Char
Character type alias.
StrRef trim() const ONIXS_EUROTLX_GTP_NOTHROW
void swap(StrRef &other) ONIXS_EUROTLX_GTP_NOTHROW
Swaps content with other instance.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
StrRef(const StrRef &other) ONIXS_EUROTLX_GTP_NOTHROW
size_t size() const ONIXS_EUROTLX_GTP_NOTHROW
Number of chars.
StrRef(const Char *chars, size_t size) ONIXS_EUROTLX_GTP_NOTHROW
Full initialization.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
const Char & at(size_t index) const
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
Provides efficient way of accessing text-based FIX field values.
Iterator end() const ONIXS_EUROTLX_GTP_NOTHROW
STL-like end().
const Char * items() const ONIXS_EUROTLX_GTP_NOTHROW
Read-only content.
ONIXS_EUROTLX_GTP_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)
ONIXS_EUROTLX_GTP_CONSTEXPR StrRef(const char(&value)[Size]) ONIXS_EUROTLX_GTP_NOTHROW
Iterator begin() const ONIXS_EUROTLX_GTP_NOTHROW
STL-like begin().
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
void reset() ONIXS_EUROTLX_GTP_NOTHROW
Resets reference to nothing.
ONIXS_EUROTLX_GTP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
bool empty() const ONIXS_EUROTLX_GTP_NOTHROW
Indicates whether array of zero length.
const Char & operator[](size_t index) const