Previous Page Table of Contents Index Next Page

Palm OS SDK Reference


Palm Logo 49 Miscellaneous System Functions

This chapter describes miscellaneous system functions. The functions in this chapter are declared in the header files Crc.h, IntlMgr.h, and Localize.h.



Crc16CalcBlock

Purpose

Calculate the 16-bit CRC of a data block using the table lookup method.

Prototype

UInt16 Crc16CalcBlock (const void *bufP, UInt16 count, UInt16 crc)

Parameters

  bufP
Pointer to the data buffer.
  count
Number of bytes in the buffer.
  crc
Seed crc value.

Result

A 16-bit CRC for the data buffer.



IntlGetRoutineAddress

Purpose

Return the address of an international manager or text manager function.

Prototype

void *IntlGetRoutineAddress (IntlSelector inSelector)

Parameters

  -> inSelector
One of the routine selectors defined in IntlMgr.h.

Result

Returns the address of the corresponding function. Returns NULL if an invalid routine selector is passed.

Comments

Use this function for performance reasons. It returns the address of an international manager or text manager function. You can then use this address to call the function without having to go through the international manager's trap dispatch table. This function is mostly useful for optimizing the performance of text manager routines that are called in a tight loop.

Compatibility

Implemented only if International Feature Set is present.



LocGetNumberSeparators

Purpose

Get localized number separators.

Prototype

void LocGetNumberSeparators (NumberFormatType numberFormat, Char *thousandSeparator, Char *decimalSeparator)

Parameters

  numberFormat
The format to use
  thousandSeparator
Return a localized thousand separator here (allocate 1 char).
  decimalSeparator
Return a localized decimal separator here (allocate 1 char).

Result

Returns nothing.

Compatibility

Implemented only if 2.0 New Feature Set is present.

See Also

StrLocalizeNumber, StrDelocalizeNumber, "Localized Applications" in the Palm OS Programmer's Companion



Palm OS SDK Reference

  Previous Page Table of Contents Index Next Page  

This is page 51 of 85 in this book

Palm Computing Platform Development Zone
Copyright © 2000, Palm, Inc. All rights reserved.