59 template <
size_t Size>
86 : items_(other.items_)
91#if defined(ONIXS_LSE_GTP_COMPILER_CXX_RVALUE_REFERENCES) && ONIXS_LSE_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_);
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_LSE_GTP_NULLPTR
#define ONIXS_LSE_GTP_NOTHROW
#define ONIXS_LSE_GTP_CONSTEXPR
Provides efficient way of accessing text-based FIX field values.
StrRef & operator=(const StrRef &other) ONIXS_LSE_GTP_NOTHROW
Reinitializes from another instance.
ONIXS_LSE_GTP_CONSTEXPR StrRef(const char(&value)[Size]) ONIXS_LSE_GTP_NOTHROW
StrRef trim() const ONIXS_LSE_GTP_NOTHROW
Iterator end() const ONIXS_LSE_GTP_NOTHROW
STL-like end().
StrRef() ONIXS_LSE_GTP_NOTHROW
Initializes blank instance.
Iterator begin() const ONIXS_LSE_GTP_NOTHROW
STL-like begin().
void reset(const Char *chars, size_t size) ONIXS_LSE_GTP_NOTHROW
Updates data being referenced.
const Char * Iterator
STL-like iterator.
StrRef(const Char *chars, size_t size) ONIXS_LSE_GTP_NOTHROW
Full initialization.
void swap(StrRef &other) ONIXS_LSE_GTP_NOTHROW
Swaps content with other instance.
StrRef(const StrRef &other) ONIXS_LSE_GTP_NOTHROW
size_t size() const ONIXS_LSE_GTP_NOTHROW
Number of chars.
void reset() ONIXS_LSE_GTP_NOTHROW
Resets reference to nothing.
bool empty() const ONIXS_LSE_GTP_NOTHROW
Indicates whether array of zero length.
const Char & operator[](size_t index) const
const Char * items() const ONIXS_LSE_GTP_NOTHROW
Read-only content.
const Char & at(size_t index) const
bool operator==(const TimeSpan &left, const TimeSpan &right)
Compares with other instance for equality.
bool operator>(const TimeSpan &left, const TimeSpan &right)
Checks whether left time interval greater than right one.
char Char
Character type alias.
FixedPointDecimal< UInt64, IntegralConstant< Int8, -8 > > Size
Little-Endian encoded 64 bit unsigned integer with eight implied decimal places.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
bool operator<(const TimeSpan &left, const TimeSpan &right)
Checks whether left time interval less than right one.
ONIXS_LSE_GTP_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)
ONIXS_LSE_GTP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
bool operator!=(const TimeSpan &left, const TimeSpan &right)
Compares with other instance for in-equality.