B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Utils::StringUtils< wchar_t > Class 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.
 
static wchar_t const * strchr (wchar_t const *str, wchar_t c) throw ()
 Find a character in a std::string.
 
static std::size_t strlen (wchar_t const *str) throw ()
 Returns length of the std::string.
 
static int strncmp (wchar_t const *str1, wchar_t const *str2, std::size_t count) throw ()
 Compare characters of two strings.
 
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.
 
static int toInt (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer.
 
static System::i16 toInt16 (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer.
 
static System::i32 toInt32 (const wchar_t *str) throw ()
 Converts strings to integer.
 
static System::i32 toInt32 (const wchar_t *str, std::size_t size) throw ()
 Converts string to integer.
 
static System::i64 toInt64 (const wchar_t *str) throw ()
 Converts a std::string to a 64-bit integer.
 
static System::i64 toInt64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit integer.
 
static unsigned int toUInt (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer.
 
static System::u16 toUInt16 (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer.
 
static System::u32 toUInt32 (const wchar_t *str, std::size_t size) throw ()
 Converts string to unsigned integer.
 
static System::u64 toUInt64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit unsigned integer.
 

Detailed Description

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