The invention provides basic 1-to-1 character case mapping information for Unicode characters while using only small amount of memory and at a reasonable speed. The presently preferred embodiment of the invention provides a technique that encodes the case mapping into a sequential list of Minimum, Size, Gap, Offset quadruple. Every quadruple represents a range of characters. The Minimum and Size values represent the boundary of the range. The Gap represents which characters in the range have the valid mapping. Thus, if the character Minimum is a multiple of the Gap, then the character has a mapping in the quadruple. Otherwise, the character does not have a mapping. If the character has a mapping, then the mapped value is the character plus the Offset.
展开▼