B2BITS FIX Antenna C++  2.27.1
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 wchar_tacter. 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 int toInt (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer. More...
 
static System::i16 toInt16 (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer. More...
 
static System::i32 toInt32 (const wchar_t *str) throw ()
 Converts strings to integer. More...
 
static System::i32 toInt32 (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer. More...
 
static System::i64 toInt64 (const wchar_t *str) throw ()
 Converts a std::string to a 64-bit integer. More...
 
static System::i64 toInt64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit integer. More...
 
static unsigned int toUInt (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer. More...
 
static System::u16 toUInt16 (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer. More...
 
static System::u32 toUInt32 (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer. More...
 
static System::u64 toUInt64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit unsigned integer. More...
 

Detailed Description

template<>
class Utils::StringUtils< wchar_t >

Encapsulates Unicode std::string processing methods.

Member Function Documentation

◆ isDigit()

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

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

Parameters
cwchar_t to test.

◆ strchr()

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.

◆ strlen()

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.

◆ strncmp()

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.

◆ strnicmp()

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().

◆ toInt()

static int Utils::StringUtils< wchar_t >::toInt ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts string to integer.

Parameters
strString to be converted.

References Utils::wstrtoi().

◆ toInt16()

static System::i16 Utils::StringUtils< wchar_t >::toInt16 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts string to integer.

Parameters
strString to be converted.

References Utils::wstrtoi16().

◆ toInt32() [1/2]

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().

◆ toInt32() [2/2]

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

Converts string to integer.

Parameters
strString to be converted.

References Utils::wstrtoi32().

◆ toInt64() [1/2]

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().

◆ toInt64() [2/2]

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

Converts a string to a 64-bit integer.

Parameters
strString to be converted.

References Utils::wstrtoi64().

◆ toUInt()

static unsigned int Utils::StringUtils< wchar_t >::toUInt ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts string to unsigned integer.

Parameters
strString to be converted.

References Utils::wstrtou().

◆ toUInt16()

static System::u16 Utils::StringUtils< wchar_t >::toUInt16 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts string to unsigned integer.

Parameters
strString to be converted.

References Utils::wstrtou16().

◆ toUInt32()

static System::u32 Utils::StringUtils< wchar_t >::toUInt32 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts string to unsigned integer.

Parameters
strString to be converted.

References Utils::wstrtou32().

◆ toUInt64()

static System::u64 Utils::StringUtils< wchar_t >::toUInt64 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)
inlinestatic

Converts a string to a 64-bit unsigned integer.

Parameters
strString to be converted.

References Utils::wstrtou64().