Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Long Class Reference

Inheritance diagram for Long:

Number List of all members.

Static Public Member Functions

tChar[] format (long i)
tChar[] format (ulong i, Radix radix, tChar fill=tChar.init)
tChar[] format (tChar[] dst, long i)
tChar[] format (tChar[] dst, ulong i, Radix radix, tChar fill=tChar.init)
ulong parse (tChar[] src, Radix radix=Radix.Decimal, uint *ate=null)

Private Types

enum  Radix { Binary = 2, Octal = 8, Decimal = 10, Hexadecimal = 16 }

Static Private Member Functions

 this ()
package uint trim (tChar[] digits, inout bool sign, Radix *radix=null)

Detailed Description

A set of functions for converting between string and numeric values.

Used by modules Token and DisplayWriter

Definition at line 53 of file Long.d.


Member Enumeration Documentation

enum Radix [inherited]
 

Enumeration values:
Binary 
Octal 
Decimal 
Hexadecimal 

Definition at line 51 of file Number.d.


Member Function Documentation

tChar [] format long  i  )  [inline, static]
 

Definition at line 59 of file Long.d.

Referenced by format().

tChar [] format ulong  i,
Radix  radix,
tChar  fill = tChar.init
[inline, static]
 

Definition at line 69 of file Long.d.

References format().

tChar [] format tChar[]  dst,
long  i
[inline, static]
 

Definition at line 79 of file Long.d.

References assert().

tChar [] format tChar[]  dst,
ulong  i,
Radix  radix,
tChar  fill = tChar.init
[inline, static]
 

Definition at line 96 of file Long.d.

References len.

ulong parse tChar[]  src,
Radix  radix = Radix.Decimal,
uint *  ate = null
[inline, static]
 

Definition at line 148 of file Long.d.

References Number::trim().

this  )  [inline, static, inherited]
 

Definition at line 61 of file Number.d.

References Number::error.

package uint trim tChar[]  digits,
inout bool  sign,
Radix radix = null
[inline, static, inherited]
 

Definition at line 70 of file Number.d.

References len.

Referenced by parse(), Int::parse(), and Double::parse().


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 20:11:41 2005 for Mango by doxygen 1.3.6