bug 1057330 pt 3 - provide character property accessor for Vertical_Orientation. r=smontagu

This commit is contained in:
Jonathan Kew 2014-08-28 16:00:03 +01:00
parent 6901dfad4d
commit e667e65c85

View File

@ -49,6 +49,18 @@ inline nsCharType GetBidiCat(uint32_t aCh) {
return nsCharType(GetCharProps2(aCh).mBidiCategory);
}
/* This MUST match the values assigned by genUnicodePropertyData.pl! */
enum VerticalOrientation {
VERTICAL_ORIENTATION_U = 0,
VERTICAL_ORIENTATION_R = 1,
VERTICAL_ORIENTATION_Tu = 2,
VERTICAL_ORIENTATION_Tr = 3
};
inline VerticalOrientation GetVerticalOrientation(uint32_t aCh) {
return VerticalOrientation(GetCharProps2(aCh).mVertOrient);
}
enum XidmodType {
XIDMOD_INCLUSION,
XIDMOD_RECOMMENDED,