#include <nsStringAPI.h>
Go to the source code of this file.
|
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) |
|
Less than comparison NOTE: This is not exact as it uses floating point
Definition at line 185 of file sbFraction.h.
Less than or equal to comparison NOTE: This is not exact as it uses floating point
Definition at line 215 of file sbFraction.h.
Greater than comparison NOTE: This is not exact as it uses floating point
Definition at line 195 of file sbFraction.h.
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.
nsresult sbFractionFromString |
( |
nsACString const & |
aString, |
|
|
sbFraction & |
aFraction |
|
) |
| |
|
inline |
nsresult sbFractionFromString |
( |
const char * |
aString, |
|
|
sbFraction & |
aFraction |
|
) |
| |
|
inline |
nsresult sbFractionParsePart |
( |
nsAString const & |
aString, |
|
|
PRInt32 |
aStart, |
|
|
PRInt32 |
aLength, |
|
|
PRUint32 * |
aValue |
|
) |
| |
|
inline |
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.