24 static int32_t
toUnicode(
const uint8_t* utf8, int32_t length, CharArray unicode);
30 static String
toUnicode(
const uint8_t* utf8, int32_t length);
36 static int32_t
toUTF8(
const wchar_t* unicode, int32_t length, ByteArray utf8);
42 static SingleString
toUTF8(
const wchar_t* unicode, int32_t length);
45 static SingleString
toUTF8(
const String& s);
60 static int32_t
compareCase(
const String& first,
const String& second);
66 static int32_t
toInt(
const String& value);
69 static int64_t
toLong(
const String& value);
72 static int64_t
toLong(
const String& value, int32_t base);
81 static String
toString(int64_t value, int32_t base);
92#define UTF8_TO_STRING(utf8) StringUtils::toUnicode(utf8, SIZEOF_ARRAY(utf8))
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Definition StringUtils.h:14
static int64_t toLong(const String &value, int32_t base)
Return given value as a long integer using base unit.
static void toUpper(String &str)
Convert given string to upper case using current locale.
static int32_t toUnicode(const uint8_t *utf8, int32_t length, CharArray unicode)
Convert uft8 buffer into unicode.
static Collection< String > split(const String &str, const String &delim)
Splits string using given delimiters.
static int32_t hashCode(const String &value)
Compute the hash code from string.
static int32_t toUTF8(const wchar_t *unicode, int32_t length, ByteArray utf8)
Convert unicode buffer into uft8.
static int32_t compareCase(const String &first, const String &second)
Compare two strings ignoring case differences.
static int64_t toLong(const String &value)
Convert the given string to int64_t.
static int32_t toInt(const String &value)
Convert the given string to int32_t.
static String toUnicode(const uint8_t *utf8, int32_t length)
Convert uft8 buffer into unicode.
static int32_t toUnicode(const uint8_t *utf8, int32_t length, const UnicodeResultPtr &unicodeResult)
Convert uft8 buffer into unicode.
static SingleString toUTF8(const wchar_t *unicode, int32_t length)
Convert unicode buffer into uft8.
static String toUnicode(const SingleString &s)
Convert uft8 string into unicode.
static String toString(const TYPE &value)
Convert any given type to a String.
Definition StringUtils.h:85
static const int32_t MAX_ENCODING_UTF8_SIZE
Maximum length of UTF encoding.
Definition StringUtils.h:17
static String toLower(const String &str)
Convert given string to lower case using current locale.
static SingleString toUTF8(const String &s)
Convert unicode string into uft8.
static void toLower(String &str)
Convert given string to lower case using current locale.
static int32_t toUTF8(const wchar_t *unicode, int32_t length, const UTF8ResultPtr &utf8Result)
Convert unicode buffer into uft8.
static double toDouble(const String &value)
Convert the given string to double.
static String toUpper(const String &str)
Convert given string to upper case using current locale.
static String toString(int64_t value, int32_t base)
Return given value as a string using base unit.
static const int32_t CHARACTER_MAX_RADIX
Default character radix.
Definition StringUtils.h:20
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< UTF8Result > UTF8ResultPtr
Definition LuceneTypes.h:559
boost::shared_ptr< UnicodeResult > UnicodeResultPtr
Definition LuceneTypes.h:554