Mac OS 9
NumberFormatting.h File Reference

Utilites for formatting numbers. More...

#include <ConditionalMacros.h>
#include <MacTypes.h>
#include <IntlResources.h>

Go to the source code of this file.

Data Structures

struct  NumFormatString
 
struct  FVector
 

Typedefs

typedef struct NumFormatString NumFormatString
 
typedef NumFormatString NumFormatStringRec
 
typedef short FormatStatus
 
typedef SInt8 FormatClass
 
typedef SInt8 FormatResultType
 
typedef struct FVector FVector
 
typedef FVector TripleInt[3]
 

Enumerations

enum  { fVNumber = 0 }
 
enum  { fPositive = 0 , fNegative = 1 , fZero = 2 }
 
enum  {
  fFormatOK = 0 , fBestGuess = 1 , fOutOfSynch = 2 , fSpuriousChars = 3 ,
  fMissingDelimiter = 4 , fExtraDecimal = 5 , fMissingLiteral = 6 , fExtraExp = 7 ,
  fFormatOverflow = 8 , fFormStrIsNAN = 9 , fBadPartsTable = 10 , fExtraPercent = 11 ,
  fExtraSeparator = 12 , fEmptyFormatString = 13
}
 

Functions

void stringtonum (const char *theString, long *theNum)
 
void numtostring (long theNum, char *theString)
 
void StringToNum (ConstStr255Param theString, long *theNum)
 
void NumToString (long theNum, Str255 theString)
 
FormatStatus ExtendedToString (const extended80 *x, const NumFormatString *myCanonical, const NumberParts *partsTable, Str255 outString)
 
FormatStatus StringToExtended (ConstStr255Param source, const NumFormatString *myCanonical, const NumberParts *partsTable, extended80 *x)
 
FormatStatus StringToFormatRec (ConstStr255Param inString, const NumberParts *partsTable, NumFormatString *outString)
 
FormatStatus FormatRecToString (const NumFormatString *myCanonical, const NumberParts *partsTable, Str255 outString, TripleInt positions)
 

Detailed Description

Utilites for formatting numbers.

Version: Universal Interfaces 3.4.1

Copyright: © 1996-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Typedef Documentation

◆ TripleInt

typedef FVector TripleInt[3]

index by [fPositive..fZero]

Function Documentation

◆ ExtendedToString()

FormatStatus ExtendedToString ( const extended80 x,
const NumFormatString myCanonical,
const NumberParts partsTable,
Str255  outString 
)

ExtendedToString()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ FormatRecToString()

FormatStatus FormatRecToString ( const NumFormatString myCanonical,
const NumberParts partsTable,
Str255  outString,
TripleInt  positions 
)

FormatRecToString()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ numtostring()

void numtostring ( long  theNum,
char *  theString 
)

numtostring()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ NumToString()

void NumToString ( long  theNum,
Str255  theString 
)

NumToString()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ StringToExtended()

FormatStatus StringToExtended ( ConstStr255Param  source,
const NumFormatString myCanonical,
const NumberParts partsTable,
extended80 x 
)

StringToExtended()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ StringToFormatRec()

FormatStatus StringToFormatRec ( ConstStr255Param  inString,
const NumberParts partsTable,
NumFormatString outString 
)

StringToFormatRec()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ stringtonum()

void stringtonum ( const char *  theString,
long *  theNum 
)

stringtonum()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ StringToNum()

void StringToNum ( ConstStr255Param  theString,
long *  theNum 
)

CALL_NOT_IN_CARBON StringToNum()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later