#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "NumberFormatter.h"
Go to the source code of this file.
◆ _Class
◆ _NumberFormatter()
Class * _NumberFormatter |
( |
void |
| ) |
|
Definition at line 91 of file NumberFormatter.c.
91 {
94
97 .name = "NumberFormatter",
101 .interfaceSize = sizeof(NumberFormatterInterface),
103 });
104 });
105
106 return clazz;
107}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
#define do_once(once, block)
Executes the given block at most one time.
ClassDefs are passed to _initialize via an archetype to initialize a Class.
The runtime representation of a Class.
Class * _Object(void)
The Object archetype.
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 80 of file NumberFormatter.c.
80 {
81
85}
ident interface
The interface of the Class.
◆ initWithFormat()
Definition at line 38 of file NumberFormatter.c.
38 {
39
41 if (self) {
43 }
44
45 return self;
46}
#define super(type, obj, method,...)
Condition * init(Condition *self)
Initializes this Condition.
Object is the root Class of The Objectively Class hierarchy.
◆ numberFromString()
Definition at line 52 of file NumberFormatter.c.
52 {
53
54 if (string) {
55 double value;
56
58 if (res == 1) {
60 }
61 }
62
63 return NULL;
64}
#define alloc(type)
Allocate and initialize and instance of type.
MutableString * string(void)
Returns a new MutableString.
A wrapper for placing numeric primitives into collections, etc.
Number * initWithValue(Number *self, double value)
Initializes this Number with the specified value.
char * chars
The backing null-terminated UTF-8 encoded character array.
◆ stringFromNumber()