|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <NumberFormatter.h>
Number formatting and parsing.
Definition at line 57 of file NumberFormatter.h.
Properties | |
| const char * | fmt |
| The format string. More... | |
| Object | object |
| The superclass. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _NumberFormatter (void) |
| The NumberFormatter archetype. More... | |
| NumberFormatter * | initWithFormat (NumberFormatter *self, const char *fmt) |
| Initializes a NumberFormatter with the specified format string. More... | |
| Number * | numberFromString (const NumberFormatter *self, const String *string) |
| Parses a Number from the specified String. More... | |
| String * | stringFromNumber (const NumberFormatter *self, const Number *number) |
| Yields a String representation of the specified Number instance. More... | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. More... | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. More... | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. More... | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. More... | |
| _Bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. More... | |
| _Bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. More... | |
Protected Attributes | |
| NumberFormatterInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| const char* NumberFormatter::fmt |
The format string.
Definition at line 73 of file NumberFormatter.h.
|
protected |
The interface.
Definition at line 68 of file NumberFormatter.h.
| Object NumberFormatter::object |
The superclass.
Definition at line 62 of file NumberFormatter.h.
| Class * _NumberFormatter | ( | void | ) |
The NumberFormatter archetype.
Definition at line 91 of file NumberFormatter.c.
| NumberFormatter * initWithFormat | ( | NumberFormatter * | self, |
| const char * | fmt | ||
| ) |
Initializes a NumberFormatter with the specified format string.
| self | The NumberFormatter. |
| fmt | The format string. |
NULL on error. Definition at line 38 of file NumberFormatter.c.
| Number * numberFromString | ( | const NumberFormatter * | self, |
| const String * | string | ||
| ) |
Parses a Number from the specified String.
| self | The NumberFormatter. |
| string | The String to parse. |
NULL on error. Definition at line 52 of file NumberFormatter.c.
| String * stringFromNumber | ( | const NumberFormatter * | self, |
| const Number * | number | ||
| ) |
Yields a String representation of the specified Number instance.
| self | The NumberFormatter. |
| number | The Number to format. |
Definition at line 70 of file NumberFormatter.c.