Unicode Utilities

Work with Unicode text.

Topics

Inputting Unicode Text

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

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.

Comparing Unicode Strings

func UCCreateCollator(LocaleRef!, LocaleOperationVariant, UCCollateOptions, UnsafeMutablePointer<CollatorRef?>!) -> OSStatus

Creates an object encapsulating locale and collation information, for the purpose of performing Unicode string comparison.

Data Types

typealias CollatorRef

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

typealias TextBreakLocatorRef

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

typealias UCCollationValue

Specifies a Unicode collation key.

struct UCKeyboardLayout

Provides header data for a 'uchr' resource.

struct UCKeyboardTypeHeader

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

typealias UCKeyCharSeq

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

struct UCKeyLayoutFeatureInfo

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

struct UCKeyModifiersToTableNum

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

typealias UCKeyOutput

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

struct UCKeySequenceDataIndex

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

struct 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.

struct 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.

struct UCKeyStateRecord

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

struct UCKeyStateRecordsIndex

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

struct UCKeyStateTerminators

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

struct 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.

typealias UCCollateOptions

Specifies options for Unicode string comparison.

typealias UCTextBreakOptions

Specifies options for locating boundaries in Unicode text.

typealias UCTextBreakType

Specifies kinds of text boundaries.

Text Boundary Operation Class

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