54 : items_(ONIXS_FENICSUST_BIMP_NULLPTR)
69 template <
size_t Size>
71 ONIXS_FENICSUST_BIMP_CONSTEXPR
86 : items_(other.items_)
123 return (items_ + size_);
130 reset(ONIXS_FENICSUST_BIMP_NULLPTR, 0);
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,
size_t size() const ONIXS_FENICSUST_BIMP_NOTHROW
Number of chars.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
ONIXS_FENICSUST_BIMP_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)
void reset() ONIXS_FENICSUST_BIMP_NOTHROW
Resets reference to nothing.
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_FENICSUST_BIMP_NOTHROW
compare
const Char & operator[](size_t index) const
StrRef(const StrRef &other) ONIXS_FENICSUST_BIMP_NOTHROW
bool empty() const ONIXS_FENICSUST_BIMP_NOTHROW
Indicates whether array of zero length.
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
void swap(StrRef &other) ONIXS_FENICSUST_BIMP_NOTHROW
Swaps content with other instance.
StrRef trim() const ONIXS_FENICSUST_BIMP_NOTHROW
void reset(const Char *chars, size_t size) ONIXS_FENICSUST_BIMP_NOTHROW
Updates data being referenced.
const Char * Iterator
STL-like iterator.
Provides efficient way of accessing text-based FIX field values.
StrRef & operator=(const StrRef &other) ONIXS_FENICSUST_BIMP_NOTHROW
Reinitializes from another instance.
ONIXS_FENICSUST_BIMP_CONSTEXPR StrRef(const char(&value)[Size]) ONIXS_FENICSUST_BIMP_NOTHROW
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
#define ONIXS_FENICSUST_BIMP_NOTHROW
ONIXS_FENICSUST_BIMP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
char Char
Character type alias.
const Char & at(size_t index) const
const Char * items() const ONIXS_FENICSUST_BIMP_NOTHROW
Read-only content.
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
StrRef(const Char *chars, size_t size) ONIXS_FENICSUST_BIMP_NOTHROW
Full initialization.
StrRef() ONIXS_FENICSUST_BIMP_NOTHROW
Initializes blank instance.
Iterator begin() const ONIXS_FENICSUST_BIMP_NOTHROW
STL-like begin().
Iterator end() const ONIXS_FENICSUST_BIMP_NOTHROW
STL-like end().