![]() |
Directionality Masks |
Header: UnicodeConverter.h |
Used to define the text direction.
enum { kUnicodeDefaultDirectionMask = 0, kUnicodeLeftToRightMask = 4, kUnicodeRightToLeftMask = 8 };
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 directionsfor example, between Latin and Arabic charactersrendering ambiguous the direction of the space character.
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 directionsfor example, between Latin and Arabic charactersrendering ambiguous the direction of the space character.
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 directionsfor example, between Latin and Arabic charactersrendering ambiguous the direction of the space character.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)