16 static void fillBufferAndAddSpaces(
Byte* buffer,
size_t size,
Byte filler,
const char* value);
17 static void fillBufferAndAddSpaces(
Byte* buffer,
size_t size,
Byte filler,
Byte value);
22 static void fillBufferAndAddSpaces(
Byte* buffer,
size_t size,
Byte filler,
const char* value);
23 static void fillBufferAndAddSpaces(
Byte* buffer,
size_t size,
Byte filler,
Byte value);
45 Traits::fillBufferAndAddSpaces(data, N, FILLER,
"");
51 Traits::fillBufferAndAddSpaces(data, N, FILLER, value.c_str());
57 Traits::fillBufferAndAddSpaces(data, N, FILLER, value);
63 Traits::fillBufferAndAddSpaces(data, N, FILLER, value);
69 return std::string((
const char*) data, strnlen((
const char*) data, N));
75 return StrRef((
const char*) data, strnlen((
const char*) data, N));
81 Traits::fillBufferAndAddSpaces(data, N, FILLER, value.c_str());
89 return (0 == memcmp(data, other.
data, N));
95 return (0 != memcmp(data, other.
data, N));
124 std::ostream& operator<<(std::ostream& stream, const String<N>& value)
126 stream <<
'\'' << value.
toString() <<
'\'';
134 str.append((
const char*) value.
data, strnlen((
const char*) value.
data, N));
String(const std::string &value)
UInt8 Byte
Alias for Byte.
std::string toString() const
Returns string representation.
ASCII encoded, right-padded with filler.
StrRef toStrRef() const
Constructs StrRef instance.
Provides efficient way of accessing text-based FIX field values.
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
bool operator!=(const String< N > &ref, Byte ch)
String(const char *value)
String< N, FILLER, Traits > & operator=(const std::string &value)
Sets value from std::string.
std::string toStr(const String< N > &value)
Serializes given string into a string.
bool operator==(const String< N > &ref, Byte ch)