Up: GEOS SDK TechDocs | Up | Prev: LMemReAlloc() ... | Next: LocalCustomParseDateTime() ...

LocalAsciiToFixed()

WWFixedAsDWord LocalAsciiToFixed(
        const char *		buffer,
        char **		parseEnd);

This routines converts a string like "12.345" to a fixed point number. The pointer pointed to by parseEnd will be returned pointing into the buffer after the last character parsed.

Include: localize.h

LocalCalcDaysInMonth()

word 	LocalCalcDaysInMonth(
        word 	year, 
        word 	month);

This routine computes the number of days in a given month.

LocalCmpStrings()

sword	LocalCmpStrings(
        const char *		str1,
        const char *		str2,
        word		strSize);

This routine compares two strings to determine which comes first in a lexical (i.e. alphabetic) ordering. If the return value is negative, then str1 is earlier than str2 . If the return value is positive, then str1 is later than str2 . If the return value is zero, then the strings appear at the same place in alphabetical order.

Include: localize.h

LocalCmpStringsDosToGeos()

sword	LocalCmpStringsDosToGeos(
        const char *					str1,
        const char *					str2,
        word					strSize,
        word					defaultChar,
        LocalCmpStringsDosToGeosFlags 					flags);

This routine compares two strings to determine which comes first in lexical ordering. Either or both of these strings may be a DOS string. If the return value is negative, then str1 is earlier than str2 . If the return value is positive, then str1 is later than str2 . If the return value is zero, then the strings appear at the same place in alphabetical order.

Structures:

        typedef ByteFlags LocalCmpStringsDosToGeosFlags;
/* The following flags may be combined using | and &:
 * 		LCSDTG_NO_CONVERT_STRING_2,
 * 		LCSDTG_NO_CONVERT_STRING_1 */

Include: localize.h

LocalCmpStringsNoCase()

sword	LocalCmpStringsNoCase(
        const char *		str1,
        const char *		str2,
        word		strSize);

This routine compares two strings to determine which comes first in a lexical (i.e. alphabetic) ordering. The comparison used is not case-sensitive. If the return value is negative, then str1 is earlier than str2 . If the return value is positive, then str1 is later than str2 . If the return value is zero, then the strings appear at the same place in alphabetical order.

Include: localize.h

LocalCmpStringsNoSpace()

sword 	LocalCmpStringsNoSpace(
        const char 		*str1, 
        const char 		*str2, 
        word 		strSize);

This routine compares two strings to determine which comes first in a lexical (i.e. alphabetic) ordering. The comparison ignores spaces. If the return value is negative, then str1 is earlier than str2 . If the return value is positive, then str1 is later than str2 . If the return value is zero, then the strings appear at the same place in alphabetical order.

LocalCmpStringsNoSpaceCase()

sword 	LocalCmpStringsNoSpaceCase(
        const char 		*str1, 
        const char 		*str2, 
        word 		strSize);

This routine compares two strings to determine which comes first in a lexical (i.e. alphabetic) ordering. The comparison ignores spaces and is case-insensitive. If the return value is negative, then str1 is earlier than str2 . If the return value is positive, then str1 is later than str2 . If the return value is zero, then the strings appear at the same place in alphabetical order.

LocalCodePageToGeos()

Boolean	LocalCodePageToGeos(
        char *		str,
        word		strSize,			/* Size of the string, in bytes */
        DosCodePage 		codePage,
        word		defaultChar);

This routine converts a DOS string to standard GEOS text using a specified code page. Any characters for which there is no GEOS equivalent will be replaced by the passed default character.

Include: localize.h

LocalCodePageToGeosChar()

word	LocalCodePageToGeosChar(
        word	ch,
        DosCodePage codePage,
        word	defaultChar);

This routine converts a DOS character to standard GEOS text using a specified code page. Any character for which there is no GEOS equivalent will be replaced by the passed default character.

Include: localize.h

LocalCustomFormatDateTime()

word	LocalCustomFormatDateTime(
        char *	str,			/* Buffer to save formatted text in */
        const char *	format,			/* Format string */
        const	TimerDateAndTime *dateTime);

This routine takes a date or time and constructs a string using a custom format.

Include: localize.h


Up: GEOS SDK TechDocs | Up | Prev: LMemReAlloc() ... | Next: LocalCustomParseDateTime() ...