Unicode Utilities

Overview

Unicode Utilities allow applications and text service components (such as input methods) to perform various operations on Unicode text; for example, Unicode key translation. Resources defined for use with Unicode Utilities permit control of Unicode-related text behavior, such as the specification of Unicode keyboard layouts.

Carbon fully supports the Unicode Utilities.

Symbols

Inputting Unicode Text

func UCKeyTranslate(UnsafePointer<UCKeyboardLayout>!, UInt16, UInt16, UInt32, UInt32, OptionBits, UnsafeMutablePointer<UInt32>!, Int, UnsafeMutablePointer<Int>!, UnsafeMutablePointer<UniChar>!)

Converts a combination of a virtual key code, a modifier key state, and a dead-key state into a string of one or more Unicode characters.

Data Types

CollatorRef

Refers to an opaque object that encapsulates locale and collation information for the purpose of performing Unicode string comparison.

TextBreakLocatorRef

Refers to an opaque object that encapsulates locale and text-break information for the purpose of finding boundaries in Unicode text.

UCCollationValue

Specifies a Unicode collation key.

UCKeyboardLayout

Provides header data for a 'uchr' resource.

UCKeyboardTypeHeader

Specifies a range of physical keyboard types in a 'uchr' resource.

UCKeyCharSeq

Specifies the output of a dead-key state in a 'uchr' resource.

UCKeyLayoutFeatureInfo

Specifies the longest possible output string to be produced by the current 'uchr' resource.

UCKeyModifiersToTableNum

Maps a modifier key combination to a particular key-code-to-character table number in a 'uchr' resource.

UCKeyOutput

Specifies values in key-code-to-character tables in a 'uchr' resource.

UCKeySequenceDataIndex

Contains offsets to a list of character sequences for a 'uchr' resource.

UCKeyStateEntryRange

Maps from a dead-key state to either the resultant Unicode character(s) or the new dead key state produced when the current state is terminated by a given character key for a 'uchr' resource.

UCKeyStateEntryTerminal

Maps from a dead-key state to the Unicode character(s) produced when that state is terminated by a given character key for a 'uchr' resource.

UCKeyStateRecord

Determines dead-key state transitions in a 'uchr' resource.

UCKeyStateRecordsIndex

Provides a count of, and offsets to, dead-key state records in a 'uchr' resource.

UCKeyStateTerminators

Lists the default terminators for each dead-key state handled by a 'uchr' resource.

UCKeyToCharTableIndex

Provides a count of, and offsets to, key-code-to-character tables in a 'uchr' resource.

Constants

Fixed Ordering Scheme

Specifies to use the fixed ordering scheme.

Fixed Ordering Masks 1

Set and test the UCCollateOptions field that specifies a fixed ordering scheme.

Fixed Ordering Masks 2

Test the UCCollateOptions field that specifies a fixed ordering scheme.

Key Actions

Indicate the current key action.

Key Format Codes

Indicate a structure format used in a 'uchr' resource.

Key Output Index Masks

Test the bits in UCKeyOutput values.

Key State Entry Formats

Indicate the format for dead-key state records.

Key Translation Options Flag

Indicates the dead-key processing state.

Key Translation Options Mask

Specifies the mask for the bit that controls dead-key processing state.

Operation Class

Identifies collation as a class of Unicode utility operations.

Standard Options Mask

Specifies standard options for Unicode string comparison.

UCCollateOptions

Specifies options for Unicode string comparison.

UCTextBreakOptions

Specifies options for locating boundaries in Unicode text.

UCTextBreakType

Specifies kinds of text boundaries.

Text Boundary Operation Class

Identifies the class of Unicode utility operations that find text boundaries.