25 #ifndef COMMON_STRUTIL_H 26 #define COMMON_STRUTIL_H 33 class SeekableReadStream;
55 template<
typename T>
void parseString(
const UString &str, T &value,
bool allowEmpty =
false);
81 #endif // COMMON_STRUTIL_H
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
size_t searchBackwards(SeekableReadStream &haystack, const byte *needle, size_t needleSize, size_t maxReadBack)
Search the stream, backwards, for the last occurrence of a set of bytes.
Low-level type definitions to handle fixed width types portably.
void printDataHex(SeekableReadStream &stream, size_t size)
Print a quick hex dump of the given data.
UString debugTag(uint32 tag, bool trim)
Create an elaborate string from an integer tag, for debugging purposes.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.