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

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

#include <B2BITS_StringUtils.h>

Static Public Member Functions

static bool isDigit (char c) throw ()
 Returns nonzero if c is a particular representation of a decimal-digit character. More...
 
static char const * strchr (char const *str, char c) throw ()
 Find a character in a std::string. More...
 
static std::size_t strlen (char const *str) throw ()
 Returns length of the std::string. More...
 
static int strncmp (char const *str1, char const *str2, std::size_t count) throw ()
 Compare characters of two strings. More...
 
static int strnicmp (char const *str1, char 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 char *str) throw ()
 Converts strings to integer. More...
 
static System::i64 toInt64 (const char *str) throw ()
 Converts a std::string to a 64-bit integer. More...
 

Detailed Description

template<>
class Utils::StringUtils< char >

Encapsulates ASCII std::string processing methods.

Member Function Documentation

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

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

Parameters
cchar to test.
static char const* Utils::StringUtils< char >::strchr ( char const *  str,
char  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< char >::strlen ( char const *  str)
throw (
)
inlinestatic

Returns length of the std::string.

Parameters
strNull-terminated std::string.
static int Utils::StringUtils< char >::strncmp ( char const *  str1,
char 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< char >::strnicmp ( char const *  str1,
char 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::strnicmp().

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

Converts strings to integer.

Parameters
strString to be converted.
static System::i64 Utils::StringUtils< char >::toInt64 ( const char *  str)
throw (
)
inlinestatic

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

Parameters
strString to be converted.

References Utils::atoi64().