Static Public Member Functions

Celartem::Decimal Struct Reference

List of all members.

Static Public Member Functions

static int _1digit (int n)
static int _1char (int chr)
static int fromStrToInt (const UChar1 *str, size_t length)

Member Function Documentation

static int Celartem::Decimal::_1char ( int  chr  )  [inline, static]

Converts one of a character of [0-9] into an integral value.

Parameters:
chr a character code of [0-9].
Returns:
The value corresponding to the character.

Referenced by fromStrToInt().

static int Celartem::Decimal::_1digit ( int  n  )  [inline, static]

Converts a value of [0 9] into an ASCII character that represents the value.

Parameters:
n A value of [0 9].
Returns:
The character corresponding to the input value.
static int Celartem::Decimal::fromStrToInt ( const UChar1 str,
size_t  length 
) [inline, static]

Converts a decimal notation of a number into an integral value. Please note that this function does not care about overflow.

Parameters:
str A string that represents some number in decimal notation.
length The length of the string.
Returns:
The value.

The documentation for this struct was generated from the following file:

This document is made with doxygen 1.7.1 at Sat Mar 31 2012 04:35:57.
Caminova Logo