Jameo Core Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
jm::Integer Class Reference

This class collect static methods to manipulate integer values. More...

Static Public Member Functions

static uint8 digits (int64 number)
 Returns the number of digits, this number has.
 
static int64 fromHex (const jm::String &str)
 Method converts a hexadecimal string value into an integer number.
 
static int64 fromHex (const jm::String &str, size_t begin, size_t size)
 Method converts a hexadecimal string value into an integer number.
 
static jm::String toHexString (int64 number)
 Converts an integer number to a hexadecimal string value.
 
static jm::String toRomanString (int64 number)
 Converts an integer number to a string representation of a Roman numeral.
 
static jm::String toLatinAlphabetString (int64 number)
 Converts an integer number to a string representation of a capital letter.
 

Detailed Description

This class collect static methods to manipulate integer values.

Member Function Documentation

◆ digits()

static uint8 jm::Integer::digits ( int64  number)
static

Returns the number of digits, this number has.

Returns
return 1 for a number between 0 and 9, 2 for a number between 10 and 99 and so on... If the number is negative, the sign is also counted.

◆ fromHex() [1/2]

static int64 jm::Integer::fromHex ( const jm::String str)
static

Method converts a hexadecimal string value into an integer number.

Parameters
strA character string that represents a hexadecimal coded number. E.g. "FF" for 255.
Returns
Returns the desired number as an integer value.

◆ fromHex() [2/2]

static int64 jm::Integer::fromHex ( const jm::String str,
size_t  begin,
size_t  size 
)
static

Method converts a hexadecimal string value into an integer number.

Parameters
strA character string that represents a hexadecimal coded number. E.g. "FF" for 255.
beginstart index of hex string
sizeSize of hex string
Returns
Returns the desired number as an integer value.

◆ toHexString()

static jm::String jm::Integer::toHexString ( int64  number)
static

Converts an integer number to a hexadecimal string value.

Returns
Returns the desired number as a string, which is a hexadecimal representation. For example, "FF" for 255.

◆ toLatinAlphabetString()

static jm::String jm::Integer::toLatinAlphabetString ( int64  number)
static

Converts an integer number to a string representation of a capital letter.

Returns
The desired number as a string with the value of a capital letter.

◆ toRomanString()

static jm::String jm::Integer::toRomanString ( int64  number)
static

Converts an integer number to a string representation of a Roman numeral.

Returns
The desired number as a string with the value of a Roman numeral.