Static Public Member Functions | List of all members
Celartem::Decimal Struct Reference

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)
inlinestatic

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

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

Referenced by fromStrToInt().

static int Celartem::Decimal::_1digit ( int  n)
inlinestatic

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

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

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

Parameters
strA string that represents some number in decimal notation.
lengthThe length of the string.
Returns
The value.

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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo