1 {	CFNumberFormatter.h
2 	Copyright (c) 2003-2013, Apple Inc. All rights reserved.
3 }
4 {
5     Modified for use with Free Pascal
6     Version 308
7     Please report any bugs to <gpc@microbizz.nl>
8 }
9 
10 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
11 {$mode macpas}
12 {$modeswitch cblocks}
13 {$packenum 1}
14 {$macro on}
15 {$inline on}
16 {$calling mwpascal}
17 
18 unit CFNumberFormatter;
19 interface
20 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
21 {$setc GAP_INTERFACES_VERSION := $0308}
22 
23 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
24     {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
25 {$endc}
26 
27 {$ifc defined CPUPOWERPC and defined CPUI386}
28 	{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
29 {$endc}
30 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
31 	{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
32 {$endc}
33 
34 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
35 	{$setc __ppc__ := 1}
36 {$elsec}
37 	{$setc __ppc__ := 0}
38 {$endc}
39 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
40 	{$setc __ppc64__ := 1}
41 {$elsec}
42 	{$setc __ppc64__ := 0}
43 {$endc}
44 {$ifc not defined __i386__ and defined CPUI386}
45 	{$setc __i386__ := 1}
46 {$elsec}
47 	{$setc __i386__ := 0}
48 {$endc}
49 {$ifc not defined __x86_64__ and defined CPUX86_64}
50 	{$setc __x86_64__ := 1}
51 {$elsec}
52 	{$setc __x86_64__ := 0}
53 {$endc}
54 {$ifc not defined __arm__ and defined CPUARM}
55 	{$setc __arm__ := 1}
56 {$elsec}
57 	{$setc __arm__ := 0}
58 {$endc}
59 {$ifc not defined __arm64__ and defined CPUAARCH64}
60   {$setc __arm64__ := 1}
61 {$elsec}
62   {$setc __arm64__ := 0}
63 {$endc}
64 
65 {$ifc defined cpu64}
66   {$setc __LP64__ := 1}
67 {$elsec}
68   {$setc __LP64__ := 0}
69 {$endc}
70 
71 
72 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
73 	{$error Conflicting definitions for __ppc__ and __i386__}
74 {$endc}
75 
76 {$ifc defined __ppc__ and __ppc__}
77 	{$setc TARGET_CPU_PPC := TRUE}
78 	{$setc TARGET_CPU_PPC64 := FALSE}
79 	{$setc TARGET_CPU_X86 := FALSE}
80 	{$setc TARGET_CPU_X86_64 := FALSE}
81 	{$setc TARGET_CPU_ARM := FALSE}
82 	{$setc TARGET_CPU_ARM64 := FALSE}
83 	{$setc TARGET_OS_MAC := TRUE}
84 	{$setc TARGET_OS_IPHONE := FALSE}
85 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
86 	{$setc TARGET_OS_EMBEDDED := FALSE}
87 {$elifc defined __ppc64__ and __ppc64__}
88 	{$setc TARGET_CPU_PPC := FALSE}
89 	{$setc TARGET_CPU_PPC64 := TRUE}
90 	{$setc TARGET_CPU_X86 := FALSE}
91 	{$setc TARGET_CPU_X86_64 := FALSE}
92 	{$setc TARGET_CPU_ARM := FALSE}
93 	{$setc TARGET_CPU_ARM64 := FALSE}
94 	{$setc TARGET_OS_MAC := TRUE}
95 	{$setc TARGET_OS_IPHONE := FALSE}
96 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
97 	{$setc TARGET_OS_EMBEDDED := FALSE}
98 {$elifc defined __i386__ and __i386__}
99 	{$setc TARGET_CPU_PPC := FALSE}
100 	{$setc TARGET_CPU_PPC64 := FALSE}
101 	{$setc TARGET_CPU_X86 := TRUE}
102 	{$setc TARGET_CPU_X86_64 := FALSE}
103 	{$setc TARGET_CPU_ARM := FALSE}
104 	{$setc TARGET_CPU_ARM64 := FALSE}
105 {$ifc defined iphonesim}
106  	{$setc TARGET_OS_MAC := FALSE}
107 	{$setc TARGET_OS_IPHONE := TRUE}
108 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
109 {$elsec}
110 	{$setc TARGET_OS_MAC := TRUE}
111 	{$setc TARGET_OS_IPHONE := FALSE}
112 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
113 {$endc}
114 	{$setc TARGET_OS_EMBEDDED := FALSE}
115 {$elifc defined __x86_64__ and __x86_64__}
116 	{$setc TARGET_CPU_PPC := FALSE}
117 	{$setc TARGET_CPU_PPC64 := FALSE}
118 	{$setc TARGET_CPU_X86 := FALSE}
119 	{$setc TARGET_CPU_X86_64 := TRUE}
120 	{$setc TARGET_CPU_ARM := FALSE}
121 	{$setc TARGET_CPU_ARM64 := FALSE}
122 {$ifc defined iphonesim}
123  	{$setc TARGET_OS_MAC := FALSE}
124 	{$setc TARGET_OS_IPHONE := TRUE}
125 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
126 {$elsec}
127 	{$setc TARGET_OS_MAC := TRUE}
128 	{$setc TARGET_OS_IPHONE := FALSE}
129 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
130 {$endc}
131 	{$setc TARGET_OS_EMBEDDED := FALSE}
132 {$elifc defined __arm__ and __arm__}
133 	{$setc TARGET_CPU_PPC := FALSE}
134 	{$setc TARGET_CPU_PPC64 := FALSE}
135 	{$setc TARGET_CPU_X86 := FALSE}
136 	{$setc TARGET_CPU_X86_64 := FALSE}
137 	{$setc TARGET_CPU_ARM := TRUE}
138 	{$setc TARGET_CPU_ARM64 := FALSE}
139 	{$setc TARGET_OS_MAC := FALSE}
140 	{$setc TARGET_OS_IPHONE := TRUE}
141 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
142 	{$setc TARGET_OS_EMBEDDED := TRUE}
143 {$elifc defined __arm64__ and __arm64__}
144 	{$setc TARGET_CPU_PPC := FALSE}
145 	{$setc TARGET_CPU_PPC64 := FALSE}
146 	{$setc TARGET_CPU_X86 := FALSE}
147 	{$setc TARGET_CPU_X86_64 := FALSE}
148 	{$setc TARGET_CPU_ARM := FALSE}
149 	{$setc TARGET_CPU_ARM64 := TRUE}
150 {$ifc defined ios}
151 	{$setc TARGET_OS_MAC := FALSE}
152 	{$setc TARGET_OS_IPHONE := TRUE}
153 	{$setc TARGET_OS_EMBEDDED := TRUE}
154 {$elsec}
155 	{$setc TARGET_OS_MAC := TRUE}
156 	{$setc TARGET_OS_IPHONE := FALSE}
157 	{$setc TARGET_OS_EMBEDDED := FALSE}
158 {$endc}
159 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
160 {$elsec}
161 	{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
162 {$endc}
163 
164 {$ifc defined __LP64__ and __LP64__ }
165   {$setc TARGET_CPU_64 := TRUE}
166 {$elsec}
167   {$setc TARGET_CPU_64 := FALSE}
168 {$endc}
169 
170 {$ifc defined FPC_BIG_ENDIAN}
171 	{$setc TARGET_RT_BIG_ENDIAN := TRUE}
172 	{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
173 {$elifc defined FPC_LITTLE_ENDIAN}
174 	{$setc TARGET_RT_BIG_ENDIAN := FALSE}
175 	{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
176 {$elsec}
177 	{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
178 {$endc}
179 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
180 {$setc CALL_NOT_IN_CARBON := FALSE}
181 {$setc OLDROUTINENAMES := FALSE}
182 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
183 {$setc OPAQUE_UPP_TYPES := TRUE}
184 {$setc OTCARBONAPPLICATION := TRUE}
185 {$setc OTKERNEL := FALSE}
186 {$setc PM_USE_SESSION_APIS := TRUE}
187 {$setc TARGET_API_MAC_CARBON := TRUE}
188 {$setc TARGET_API_MAC_OS8 := FALSE}
189 {$setc TARGET_API_MAC_OSX := TRUE}
190 {$setc TARGET_CARBON := TRUE}
191 {$setc TARGET_CPU_68K := FALSE}
192 {$setc TARGET_CPU_MIPS := FALSE}
193 {$setc TARGET_CPU_SPARC := FALSE}
194 {$setc TARGET_OS_UNIX := FALSE}
195 {$setc TARGET_OS_WIN32 := FALSE}
196 {$setc TARGET_RT_MAC_68881 := FALSE}
197 {$setc TARGET_RT_MAC_CFM := FALSE}
198 {$setc TARGET_RT_MAC_MACHO := TRUE}
199 {$setc TYPED_FUNCTION_POINTERS := TRUE}
200 {$setc TYPE_BOOL := FALSE}
201 {$setc TYPE_EXTENDED := FALSE}
202 {$setc TYPE_LONGLONG := TRUE}
203 uses MacTypes,CFBase,CFNumber,CFLocale;
204 {$endc} {not MACOSALLINCLUDE}
205 
206 {$ALIGN POWER}
207 
208 
209 {#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3}
210 
211 
212 type
213 	CFNumberFormatterRef = ^__CFNumberFormatter; { an opaque type }
214 	__CFNumberFormatter = record end;
215 
216 // CFNumberFormatters are not thread-safe.  Do not use one from multiple threads!
217 
CFNumberFormatterGetTypeIDnull218 function CFNumberFormatterGetTypeID: CFTypeID; external name '_CFNumberFormatterGetTypeID';
219 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
220 
221 // number format styles
222 type
223 	CFNumberFormatterStyle = CFIndex;
224 const
225 	kCFNumberFormatterNoStyle = 0;
226 	kCFNumberFormatterDecimalStyle = 1;
227 	kCFNumberFormatterCurrencyStyle = 2;
228 	kCFNumberFormatterPercentStyle = 3;
229 	kCFNumberFormatterScientificStyle = 4;
230 	kCFNumberFormatterSpellOutStyle = 5;
231 
232 
CFNumberFormatterCreatenull233 function CFNumberFormatterCreate( allocator: CFAllocatorRef; locale: CFLocaleRef; style: CFNumberFormatterStyle ): CFNumberFormatterRef; external name '_CFNumberFormatterCreate';
234 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
235 	// Returns a CFNumberFormatter, localized to the given locale, which
236 	// will format numbers to the given style.
237 
CFNumberFormatterGetLocalenull238 function CFNumberFormatterGetLocale( formatter: CFNumberFormatterRef ): CFLocaleRef; external name '_CFNumberFormatterGetLocale';
239 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
240 
CFNumberFormatterGetStylenull241 function CFNumberFormatterGetStyle( formatter: CFNumberFormatterRef ): CFNumberFormatterStyle; external name '_CFNumberFormatterGetStyle';
242 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
243 	// Get the properties with which the number formatter was created.
244 
CFNumberFormatterGetFormatnull245 function CFNumberFormatterGetFormat( formatter: CFNumberFormatterRef ): CFStringRef; external name '_CFNumberFormatterGetFormat';
246 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
247 
248 procedure CFNumberFormatterSetFormat( formatter: CFNumberFormatterRef; formatString: CFStringRef ); external name '_CFNumberFormatterSetFormat';
249 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
250 	// Set the format description string of the number formatter.  This
251 	// overrides the style settings.  The format of the format string
252 	// is as defined by the ICU library, and is similar to that found
253 	// in Microsoft Excel and NSNumberFormatter.
254 	// The number formatter starts with a default format string defined
255 	// by the style argument with which it was created.
256 
257 
CFNumberFormatterCreateStringWithNumbernull258 function CFNumberFormatterCreateStringWithNumber( allocator: CFAllocatorRef; formatter: CFNumberFormatterRef; number: CFNumberRef ): CFStringRef; external name '_CFNumberFormatterCreateStringWithNumber';
259 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
260 
CFNumberFormatterCreateStringWithValuenull261 function CFNumberFormatterCreateStringWithValue( allocator: CFAllocatorRef; formatter: CFNumberFormatterRef; numberType: CFNumberType; valuePtr: {const} UnivPtr ): CFStringRef; external name '_CFNumberFormatterCreateStringWithValue';
262 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
263 	// Create a string representation of the given number or value
264 	// using the current state of the number formatter.
265 
266 
267 type
268 	CFNumberFormatterOptionFlags = CFOptionFlags;
269 const
270 	kCFNumberFormatterParseIntegersOnly = 1;	{ only parse integers }
271 
CFNumberFormatterCreateNumberFromStringnull272 function CFNumberFormatterCreateNumberFromString( allocator: CFAllocatorRef; formatter: CFNumberFormatterRef; strng: CFStringRef; rangep: CFRangePtr; options: CFOptionFlags ): CFNumberRef; external name '_CFNumberFormatterCreateNumberFromString';
273 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
274 
CFNumberFormatterGetValueFromStringnull275 function CFNumberFormatterGetValueFromString( formatter: CFNumberFormatterRef; strng: CFStringRef; rangep: CFRangePtr; numberType: CFNumberType; valuePtr: UnivPtr ): Boolean; external name '_CFNumberFormatterGetValueFromString';
276 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
277 	// Parse a string representation of a number using the current state
278 	// of the number formatter.  The range parameter specifies the range
279 	// of the string in which the parsing should occur in input, and on
280 	// output indicates the extent that was used; this parameter can
281 	// be NULL, in which case the whole string may be used.  The
282 	// return value indicates whether some number was computed and
283 	// (if valuePtr is not NULL) stored at the location specified by
284 	// valuePtr.  The numberType indicates the type of value pointed
285 	// to by valuePtr.
286 
287 
288 procedure CFNumberFormatterSetProperty( formatter: CFNumberFormatterRef; key: CFStringRef; value: CFTypeRef ); external name '_CFNumberFormatterSetProperty';
289 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
290 
CFNumberFormatterCopyPropertynull291 function CFNumberFormatterCopyProperty( formatter: CFNumberFormatterRef; key: CFStringRef ): CFTypeRef; external name '_CFNumberFormatterCopyProperty';
292 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
293 	// Set and get various properties of the number formatter, the set of
294 	// which may be expanded in the future.
295 
296 var kCFNumberFormatterCurrencyCode: CFStringRef; external name '_kCFNumberFormatterCurrencyCode'; (* attribute const *)
297 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
298 var kCFNumberFormatterDecimalSeparator: CFStringRef; external name '_kCFNumberFormatterDecimalSeparator'; (* attribute const *)
299 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFString
300 var kCFNumberFormatterCurrencyDecimalSeparator: CFStringRef; external name '_kCFNumberFormatterCurrencyDecimalSeparator'; (* attribute const *)
301 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFString
302 var kCFNumberFormatterAlwaysShowDecimalSeparator: CFStringRef; external name '_kCFNumberFormatterAlwaysShowDecimalSeparator'; (* attribute const *)
303 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) // CFBoolean
304 var kCFNumberFormatterGroupingSeparator: CFStringRef; external name '_kCFNumberFormatterGroupingSeparator'; (* attribute const *)
305 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFString
306 var kCFNumberFormatterUseGroupingSeparator: CFStringRef; external name '_kCFNumberFormatterUseGroupingSeparator'; (* attribute const *)
307 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFBoolean
308 var kCFNumberFormatterPercentSymbol: CFStringRef; external name '_kCFNumberFormatterPercentSymbol'; (* attribute const *)
309 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
310 var kCFNumberFormatterZeroSymbol: CFStringRef; external name '_kCFNumberFormatterZeroSymbol'; (* attribute const *)
311 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
312 var kCFNumberFormatterNaNSymbol: CFStringRef; external name '_kCFNumberFormatterNaNSymbol'; (* attribute const *)
313 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
314 var kCFNumberFormatterInfinitySymbol: CFStringRef; external name '_kCFNumberFormatterInfinitySymbol'; (* attribute const *)
315 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
316 var kCFNumberFormatterMinusSign: CFStringRef; external name '_kCFNumberFormatterMinusSign'; (* attribute const *)
317 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
318 var kCFNumberFormatterPlusSign: CFStringRef; external name '_kCFNumberFormatterPlusSign'; (* attribute const *)
319 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
320 var kCFNumberFormatterCurrencySymbol: CFStringRef; external name '_kCFNumberFormatterCurrencySymbol'; (* attribute const *)
321 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
322 var kCFNumberFormatterExponentSymbol: CFStringRef; external name '_kCFNumberFormatterExponentSymbol'; (* attribute const *)
323 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
324 var kCFNumberFormatterMinIntegerDigits: CFStringRef; external name '_kCFNumberFormatterMinIntegerDigits'; (* attribute const *)
325 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
326 var kCFNumberFormatterMaxIntegerDigits: CFStringRef; external name '_kCFNumberFormatterMaxIntegerDigits'; (* attribute const *)
327 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
328 var kCFNumberFormatterMinFractionDigits: CFStringRef; external name '_kCFNumberFormatterMinFractionDigits'; (* attribute const *)
329 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
330 var kCFNumberFormatterMaxFractionDigits: CFStringRef; external name '_kCFNumberFormatterMaxFractionDigits'; (* attribute const *)
331 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
332 var kCFNumberFormatterGroupingSize: CFStringRef; external name '_kCFNumberFormatterGroupingSize'; (* attribute const *)
333 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFNumber
334 var kCFNumberFormatterSecondaryGroupingSize: CFStringRef; external name '_kCFNumberFormatterSecondaryGroupingSize'; (* attribute const *)
335 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
336 var kCFNumberFormatterRoundingMode: CFStringRef; external name '_kCFNumberFormatterRoundingMode'; (* attribute const *)
337 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFNumber
338 var kCFNumberFormatterRoundingIncrement: CFStringRef; external name '_kCFNumberFormatterRoundingIncrement'; (* attribute const *)
339 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
340 var kCFNumberFormatterFormatWidth: CFStringRef; external name '_kCFNumberFormatterFormatWidth'; (* attribute const *)
341 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFNumber
342 var kCFNumberFormatterPaddingPosition: CFStringRef; external name '_kCFNumberFormatterPaddingPosition'; (* attribute const *)
343 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFNumber
344 var kCFNumberFormatterPaddingCharacter: CFStringRef; external name '_kCFNumberFormatterPaddingCharacter'; (* attribute const *)
345 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)	// CFString
346 var kCFNumberFormatterDefaultFormat: CFStringRef; external name '_kCFNumberFormatterDefaultFormat'; (* attribute const *)
347 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)		// CFString
348 var kCFNumberFormatterMultiplier: CFStringRef; external name '_kCFNumberFormatterMultiplier'; (* attribute const *)
349 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFNumber
350 var kCFNumberFormatterPositivePrefix: CFStringRef; external name '_kCFNumberFormatterPositivePrefix'; (* attribute const *)
351 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFString
352 var kCFNumberFormatterPositiveSuffix: CFStringRef; external name '_kCFNumberFormatterPositiveSuffix'; (* attribute const *)
353 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFString
354 var kCFNumberFormatterNegativePrefix: CFStringRef; external name '_kCFNumberFormatterNegativePrefix'; (* attribute const *)
355 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFString
356 var kCFNumberFormatterNegativeSuffix: CFStringRef; external name '_kCFNumberFormatterNegativeSuffix'; (* attribute const *)
357 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFString
358 var kCFNumberFormatterPerMillSymbol: CFStringRef; external name '_kCFNumberFormatterPerMillSymbol'; (* attribute const *)
359 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)		// CFString
360 var kCFNumberFormatterInternationalCurrencySymbol: CFStringRef; external name '_kCFNumberFormatterInternationalCurrencySymbol'; (* attribute const *)
361 (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *) // CFString
362 var kCFNumberFormatterCurrencyGroupingSeparator: CFStringRef; external name '_kCFNumberFormatterCurrencyGroupingSeparator'; (* attribute const *)
363 (* CF_AVAILABLE_STARTING(10_5, 2_0) *) // CFString
364 var kCFNumberFormatterIsLenient: CFStringRef; external name '_kCFNumberFormatterIsLenient'; (* attribute const *)
365 (* CF_AVAILABLE_STARTING(10_5, 2_0) *)		// CFBoolean
366 var kCFNumberFormatterUseSignificantDigits: CFStringRef; external name '_kCFNumberFormatterUseSignificantDigits'; (* attribute const *)
367 (* CF_AVAILABLE_STARTING(10_5, 2_0) *)	// CFBoolean
368 var kCFNumberFormatterMinSignificantDigits: CFStringRef; external name '_kCFNumberFormatterMinSignificantDigits'; (* attribute const *)
369 (* CF_AVAILABLE_STARTING(10_5, 2_0) *)	// CFNumber
370 var kCFNumberFormatterMaxSignificantDigits: CFStringRef; external name '_kCFNumberFormatterMaxSignificantDigits'; (* attribute const *)
371 (* CF_AVAILABLE_STARTING(10_5, 2_0) *)	// CFNumber
372 
373 type
374 	CFNumberFormatterRoundingMode = CFIndex;
375 const
376 	kCFNumberFormatterRoundCeiling = 0;
377 	kCFNumberFormatterRoundFloor = 1;
378 	kCFNumberFormatterRoundDown = 2;
379 	kCFNumberFormatterRoundUp = 3;
380 	kCFNumberFormatterRoundHalfEven = 4;
381 	kCFNumberFormatterRoundHalfDown = 5;
382 	kCFNumberFormatterRoundHalfUp = 6;
383 
384 type
385 	CFNumberFormatterPadPosition = CFIndex;
386 const
387 	kCFNumberFormatterPadBeforePrefix = 0;
388 	kCFNumberFormatterPadAfterPrefix = 1;
389 	kCFNumberFormatterPadBeforeSuffix = 2;
390 	kCFNumberFormatterPadAfterSuffix = 3;
391 
392 
CFNumberFormatterGetDecimalInfoForCurrencyCodenull393 function CFNumberFormatterGetDecimalInfoForCurrencyCode( currencyCode: CFStringRef; defaultFractionDigits: SInt32Ptr; roundingIncrement: Float64Ptr ): Boolean; external name '_CFNumberFormatterGetDecimalInfoForCurrencyCode';
394 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
395 	// Returns the number of fraction digits that should be displayed, and
396 	// the rounding increment (or 0.0 if no rounding is done by the currency)
397 	// for the given currency.  Returns false if the currency code is unknown
398 	// or the information is not available.
399 	// Not localized because these are properties of the currency.
400 
401 
402 {#endif}
403 
404 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
405 
406 end.
407 {$endc} {not MACOSALLINCLUDE}
408