Carbon


Directionality Masks

Header: UnicodeConverter.h

Used to define the text direction.

enum {
    kUnicodeDefaultDirectionMask = 0,
    kUnicodeLeftToRightMask = 4,
    kUnicodeRightToLeftMask = 8
};

Constant descriptions

kUnicodeDefaultDirectionMask

A mask for setting the global, or base, line direction for the text being converted. The value kUnicodeDefaultDirectionMask tells the converter to use the value of the first strong direction character in the string. This determines which direction the converter should use for resolution of neutral coded characters, such as spaces that occur between sets of coded characters having different directions—for example, between Latin and Arabic characters—rendering ambiguous the direction of the space character.

kUnicodeLeftToRightMask

A mask for setting the global, or base, line direction for the text being converted. The value kUnicodeLeftToRightMask tells the converter that the base paragraph direction is left to right. This determines which direction the converter should use for resolution of neutral coded characters, such as spaces that occur between sets of coded characters having different directions—for example, between Latin and Arabic characters—rendering ambiguous the direction of the space character.

kUnicodeRightToLeftMask

The value kUnicodeRightToLeftMask tells the converter that the base paragraph direction is right to left. This determines which direction the converter should use for resolution of neutral coded characters, such as spaces that occur between sets of coded characters having different directions—for example, between Latin and Arabic characters—rendering ambiguous the direction of the space character.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)