sbFraction.h File Reference
#include <nsStringAPI.h>
Include dependency graph for sbFraction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbFraction
 

Functions

bool operator== (sbFraction const &aLeft, sbFraction const &aRight)
 
bool operator!= (sbFraction const &aLeft, sbFraction const &aRight)
 
bool operator< (sbFraction const &aLeft, sbFraction const &aRight)
 
bool operator> (sbFraction const &aLeft, sbFraction const &aRight)
 
bool operator>= (sbFraction const &aLeft, sbFraction const &aRight)
 
bool operator<= (sbFraction const &aLeft, sbFraction const &aRight)
 
nsString sbFractionToString (sbFraction const &aFraction)
 
nsresult sbFractionParsePart (nsAString const &aString, PRInt32 aStart, PRInt32 aLength, PRUint32 *aValue)
 
nsresult sbFractionFromString (nsAString const &aString, sbFraction &aFraction)
 
nsresult sbFractionFromString (nsACString const &aString, sbFraction &aFraction)
 
nsresult sbFractionFromString (const char *aString, sbFraction &aFraction)
 

Function Documentation

bool operator!= ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

Inequality operator

Definition at line 175 of file sbFraction.h.

Here is the call graph for this function:

bool operator< ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

Less than comparison NOTE: This is not exact as it uses floating point

Definition at line 185 of file sbFraction.h.

Here is the call graph for this function:

bool operator<= ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

Less than or equal to comparison NOTE: This is not exact as it uses floating point

Definition at line 215 of file sbFraction.h.

bool operator== ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

equality operator

Definition at line 166 of file sbFraction.h.

Here is the call graph for this function:

bool operator> ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

Greater than comparison NOTE: This is not exact as it uses floating point

Definition at line 195 of file sbFraction.h.

Here is the call graph for this function:

bool operator>= ( sbFraction const &  aLeft,
sbFraction const &  aRight 
)
inline

Greater than or equal to comparison NOTE: This is not exact as it uses floating point

Definition at line 205 of file sbFraction.h.

nsresult sbFractionFromString ( nsAString const &  aString,
sbFraction aFraction 
)
inline

Parses a string for a fraction

Definition at line 259 of file sbFraction.h.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFractionFromString ( nsACString const &  aString,
sbFraction aFraction 
)
inline

Definition at line 312 of file sbFraction.h.

Here is the call graph for this function:

nsresult sbFractionFromString ( const char *  aString,
sbFraction aFraction 
)
inline

Definition at line 318 of file sbFraction.h.

Here is the call graph for this function:

nsresult sbFractionParsePart ( nsAString const &  aString,
PRInt32  aStart,
PRInt32  aLength,
PRUint32 *  aValue 
)
inline

Definition at line 238 of file sbFraction.h.

Here is the caller graph for this function:

nsString sbFractionToString ( sbFraction const &  aFraction)
inline

Converts a fraction to a string in proper fraction format ( 1 2/3)

Definition at line 224 of file sbFraction.h.

Here is the call graph for this function: