69 template <
size_t Size>
86 : items_(other.items_)
123 return (items_ + size_);
148 return items_[index];
156 return items_[index];
158 throw std::invalid_argument(
"index");
167 items_ = other.items_;
179 std::swap(items_, other.items_);
180 std::swap(size_, other.size_);
188 size_t length =
size();
190 while(length > 0 && isspace(
operator[](length - 1)))
208 const std::string& str)
210 return StrRef(str.data(), str.size());
234 return std::string(ref.
items(), ref.
size());
253 return std::string(1, character);
263 str.append(1, character);
271 const std::string& value)
297 return !(left == right);
305 const std::string& str)
315 const std::string& str)
324 const std::string& str,
334 const std::string& str,
396 if (0 == compareResult)
399 static_cast<ptrdiff_t
>(
403 return (0 > compareResult);
413 return (right < left);
420 std::ostream& stream,
#define ONIXS_FMXUST_BIMP_NOTHROW
#define ONIXS_FMXUST_BIMP_CONSTEXPR
#define ONIXS_FMXUST_BIMP_NULLPTR
Provides efficient way of accessing text-based FIX field values.
StrRef(const Char *chars, size_t size) ONIXS_FMXUST_BIMP_NOTHROW
Full initialization.
bool empty() const ONIXS_FMXUST_BIMP_NOTHROW
Indicates whether array of zero length.
const Char * items() const ONIXS_FMXUST_BIMP_NOTHROW
Read-only content.
Iterator begin() const ONIXS_FMXUST_BIMP_NOTHROW
STL-like begin().
StrRef() ONIXS_FMXUST_BIMP_NOTHROW
Initializes blank instance.
void reset(const Char *chars, size_t size) ONIXS_FMXUST_BIMP_NOTHROW
Updates data being referenced.
StrRef & operator=(const StrRef &other) ONIXS_FMXUST_BIMP_NOTHROW
Reinitializes from another instance.
ONIXS_FMXUST_BIMP_CONSTEXPR StrRef(const char(&value)[Size]) ONIXS_FMXUST_BIMP_NOTHROW
size_t size() const ONIXS_FMXUST_BIMP_NOTHROW
Number of chars.
const Char * Iterator
STL-like iterator.
void swap(StrRef &other) ONIXS_FMXUST_BIMP_NOTHROW
Swaps content with other instance.
void reset() ONIXS_FMXUST_BIMP_NOTHROW
Resets reference to nothing.
Iterator end() const ONIXS_FMXUST_BIMP_NOTHROW
STL-like end().
StrRef trim() const ONIXS_FMXUST_BIMP_NOTHROW
StrRef(const StrRef &other) ONIXS_FMXUST_BIMP_NOTHROW
const Char & operator[](size_t index) const
const Char & at(size_t index) const
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ONIXS_FMXUST_BIMP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
char Char
Character type alias.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_FMXUST_BIMP_NOTHROW
compare
ONIXS_FMXUST_BIMP_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)