Up: GEOS SDK TechDocs | Up | Prev: LocalAsciiToFixed() ... | Next: LocalGeosToCodePage() ...

LocalCustomParseDateTime()

word	LocalCustomParseDateTime(
        const char *		str,
        DateTimeFormat		format,
        TimerDateAndTime *		dateTime);

This routine parses a date and time string by comparing it with the passed DateTimeFormat . It fills in the fields of the TimerDateAndTime structure. Any fields which are not specified in the format string will be filled with -1.

If the string parses correctly, LocalCustomParseDateTime() returns -1. Otherwise it reutrns the offset to the start of the text which did not parse correctly.

Include: localize.h

LocalDistanceFromAscii()

WWFixedAsDword 	LocalDistanceFromAscii( 
        const char *		buffer,
        DistanceUnit 		distanceUnits,
        MeasurementTypes		measurementType);

This routine takes a function like "72 pt" and returns a number representing the distance. The returned answer represents the measure in points, inches, centimeters, or some other measure as specified by the passed unit.

Include: localize.h

LocalDistanceToAscii()

word	LocalDistanceToAscii( /* Length of string, including NULL */
        char *		buffer,			/*Buffer to save formatted text in */
        word 		value,
        DistanceUnit 		distanceUnits,
        MeasurementType 		measurementType);

This routine takes a distance and a set of units and returns a string containing a properly formatted distance.

Include: localize.h

LocalDosToGeos()

Boolean	LocalDosToGeos(
        char *	str,
        word	strSize,
        word	defaultChar);

Convert a DOS string to GEOS text. Any characters for which there is no GEOS equivalent will be replaced by the passed default character.

Include: localize.h

LocalDosToGeosChar()

word	LocalDosToGeosChar(
        word	ch,
        word	defaultChar);

Convert a DOS character to GEOS text. Any characters for which there is no GEOS equivalent will be replaced by the passed default character.

Include: localize.h

LocalDowncaseChar()

word	LocalDowncaseChar(
        word	ch);

Return the lower case equivalent, if any, of the passed character.

Include: localize.h

LocalDowncaseString()

void	LocalDowncaseString(
        char *	str,
        word	size);		/* Size of string, in bytes */

Convert the passed string to its all lower case equivalent.

Include: localize.h

LocalFixedToAscii()

void	LocalFixedToAscii(
        char *	buffer,
        WWFixedAsDWord value,
        word	fracDigits);

This routine returns the ASCII expression of a fixed point number.

Include: localize.h

LocalFormatDateTime()

word	LocalFormatDateTime( /* Length of returned string */
        char *			str,
        DateTimeFormat 			format,
        const TimerDateAndTime *	dateTime);

This routine returns the string (e.g. "9:37") corresponding to the passed DateAndTime.

Include: localize.h

LocalFormatFileDateTime()

word 	LocalFormatFileDateTime(
        char 			*str, 
        DateTimeFormat 			format,
        const FileDateAndTime 			*dateTime);

This utility routine provides a simple way to present a FileDateAndTime structure such as used with file-related operations.

Structures:

        typedef struct {
            byte        numberFormatFlags; /* NumberFormatFlags value */
            byte        decimalDigits;
            wchar       thousandsSeparator;
            wchar       decimalSeparator;
            wchar       listSeparator;
        } LocalNumericFormat;

The first byte is a NumberFormatFlags field specifying whether or not to use a leading zero. The second byte is the number of digits to show after the decimal point.

Include: localize.h


Up: GEOS SDK TechDocs | Up | Prev: LocalAsciiToFixed() ... | Next: LocalGeosToCodePage() ...