v1.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Classes | Functions
String

String formatting classes. More...

Classes

struct  Sifteo::Fixed
 String formatting wrapper for fixed-width integers. More...
 
struct  Sifteo::FixedFP
 Format a floating point number using fixed precision. More...
 
struct  Sifteo::Hex
 String formatting wrapper for fixed-width hexadecimal integers. More...
 
struct  Sifteo::Hex64
 String formatting wrapper for fixed-width hexadecimal 64-bit integers. More...
 
class  Sifteo::String< tCapacity >
 A statically sized character buffer, with output formatting support. More...
 

Functions

int Sifteo::strncmp (const char *a, const char *b, unsigned count)
 Compare two C-style strings. More...
 
unsigned Sifteo::strnlen (const char *str, uint32_t maxLen)
 Get the length of a C-style string. More...
 

Detailed Description

String formatting classes.

Function Documentation

int Sifteo::strncmp ( const char *  a,
const char *  b,
unsigned  count 
)
inline

Compare two C-style strings.

Returns a number less than, equal to, or greater than zero, corresponding to a < b, a==b, and a > b respectively.

The number returned is equal to the difference (a[i] - b[i]) where i is the index of the first non-matching character.

unsigned Sifteo::strnlen ( const char *  str,
uint32_t  maxLen 
)
inline

Get the length of a C-style string.

'maxLen' is required to limit the search for the end of the string. This routine will fault if 'maxLen' extends beyond valid memory.