B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
Utils::StringUtils< wchar_t > Class Template Reference

Encapsulates Unicode std::string processing methods. More...

#include <B2BITS_StringUtils.h>

Static Public Member Functions

static bool isDigit (wchar_t c) throw ()
 Returns nonzero if c is a particular representation of a decimal-digit character. More...
 
static wchar_t const * strchr (wchar_t const *str, wchar_t c) throw ()
 Find a character in a std::string. More...
 
static std::size_t strlen (wchar_t const *str) throw ()
 Returns length of the std::string. More...
 
static int strncmp (wchar_t const *str1, wchar_t const *str2, std::size_t count) throw ()
 Compare characters of two strings. More...
 
static int strnicmp (wchar_t const *str1, wchar_t const *str2, std::size_t count) throw ()
 This function is called to make a case-insensitive comparison of two ANSI strings. More...
 
static System::i32 toInt32 (const wchar_t *str) throw ()
 Converts strings to integer. More...
 
static System::i64 toInt64 (const wchar_t *str) throw ()
 Converts a std::string to a 64-bit integer. More...
 

Detailed Description

template<>
class Utils::StringUtils< wchar_t >

Encapsulates Unicode std::string processing methods.

Member Function Documentation

static bool Utils::StringUtils< wchar_t >::isDigit ( wchar_t  c)
throw (
)
inlinestatic

Returns nonzero if c is a particular representation of a decimal-digit character.

Parameters
cchar to test.
static wchar_t const* Utils::StringUtils< wchar_t >::strchr ( wchar_t const *  str,
wchar_t  c 
)
throw (
)
inlinestatic

Find a character in a std::string.

Parameters
strNull-terminated source std::string.
cCharacter to be located.
static std::size_t Utils::StringUtils< wchar_t >::strlen ( wchar_t const *  str)
throw (
)
inlinestatic

Returns length of the std::string.

Parameters
strNull-terminated std::string.
static int Utils::StringUtils< wchar_t >::strncmp ( wchar_t const *  str1,
wchar_t const *  str2,
std::size_t  count 
)
throw (
)
inlinestatic

Compare characters of two strings.

Parameters
str1Strings to compare.
str2Strings to compare.
countNumber of characters to compare.
static int Utils::StringUtils< wchar_t >::strnicmp ( wchar_t const *  str1,
wchar_t const *  str2,
std::size_t  count 
)
throw (
)
inlinestatic

This function is called to make a case-insensitive comparison of two ANSI strings.

Parameters
str1The first std::string.
str2The second std::string.
countThe number of characters to compare.

References Utils::wstrnicmp().

static System::i32 Utils::StringUtils< wchar_t >::toInt32 ( const wchar_t *  str)
throw (
)
inlinestatic

Converts strings to integer.

Parameters
strString to be converted.

References Utils::wstrtoi().

static System::i64 Utils::StringUtils< wchar_t >::toInt64 ( const wchar_t *  str)
throw (
)
inlinestatic

Converts a std::string to a 64-bit integer.

Parameters
strString to be converted.

References Utils::wstrtoi64().