20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <locale.h>
#import "OFLocalization.h"
#import "OFString.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidEncodingException.h"
#import "OFOpenItemFailedException.h"
#ifdef OF_MORPHOS
# define BOOL EXEC_BOOL
# include <proto/dos.h>
|
>
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include <locale.h>
#import "OFLocalization.h"
#import "OFString.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFInvalidEncodingException.h"
#import "OFOpenItemFailedException.h"
#ifdef OF_MORPHOS
# define BOOL EXEC_BOOL
# include <proto/dos.h>
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
{
self = [super init];
@try {
#ifndef OF_MORPHOS
char *locale, *messagesLocale = NULL;
_encoding = OF_STRING_ENCODING_UTF_8;
_decimalPoint = @".";
_localizedStrings = [[OFMutableArray alloc] init];
if ((locale = setlocale(LC_ALL, "")) != NULL)
_decimalPoint = [[OFString alloc]
initWithCString: localeconv()->decimal_point
|
>
>
>
>
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
{
self = [super init];
@try {
#ifndef OF_MORPHOS
char *locale, *messagesLocale = NULL;
if (sharedLocalization != nil)
@throw [OFInitializationFailedException
exceptionWithClass: [OFLocalization class]];
_encoding = OF_STRING_ENCODING_UTF_8;
_decimalPoint = @".";
_localizedStrings = [[OFMutableArray alloc] init];
if ((locale = setlocale(LC_ALL, "")) != NULL)
_decimalPoint = [[OFString alloc]
initWithCString: localeconv()->decimal_point
|