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,
const Char * items() const ONIXS_BATS_PITCH_NOTHROW
Read-only content.
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool empty() const ONIXS_BATS_PITCH_NOTHROW
Indicates whether array of zero length.
StrRef(const StrRef &other) ONIXS_BATS_PITCH_NOTHROW
StrRef trim() const ONIXS_BATS_PITCH_NOTHROW
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.
void reset(const Char *chars, size_t size) ONIXS_BATS_PITCH_NOTHROW
Updates data being referenced.
#define ONIXS_BATS_PITCH_NULLPTR
const Char & operator[](size_t index) const
Iterator end() const ONIXS_BATS_PITCH_NOTHROW
STL-like end().
void reset() ONIXS_BATS_PITCH_NOTHROW
Resets reference to nothing.
const Char * Iterator
STL-like iterator.
char Char
Character type alias.
ONIXS_CBOECFE_PITCH_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)
const Char & at(size_t index) const
#define ONIXS_BATS_PITCH_CONSTEXPR
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
StrRef & operator=(const StrRef &other) ONIXS_BATS_PITCH_NOTHROW
Reinitializes from another instance.
size_t size() const ONIXS_BATS_PITCH_NOTHROW
Number of chars.
StrRef() ONIXS_BATS_PITCH_NOTHROW
Initializes blank instance.
void swap(StrRef &other) ONIXS_BATS_PITCH_NOTHROW
Swaps content with other instance.
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_BATS_PITCH_NOTHROW
compare
StrRef(const Char *chars, size_t size) ONIXS_BATS_PITCH_NOTHROW
Full initialization.
#define ONIXS_BATS_PITCH_NOTHROW
ONIXS_BATS_PITCH_CONSTEXPR StrRef(const char(&value)[Size]) ONIXS_BATS_PITCH_NOTHROW
ONIXS_CBOECFE_PITCH_API void toStr(std::string &, SideIndicator::Enum)
Appends string presentation of object.
Iterator begin() const ONIXS_BATS_PITCH_NOTHROW
STL-like begin().
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.