Backed out changeset 763deb5caa30 (bug 1081858)
This commit is contained in:
@@ -295,11 +295,6 @@ GetTitlecaseForAll(uint32_t aCh)
|
|||||||
}
|
}
|
||||||
return aCh;
|
return aCh;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsEastAsianWidthFWH(uint32_t aCh)
|
|
||||||
{
|
|
||||||
return GetCharProps2(aCh).mEastAsianWidthFWH;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEFINE_BMP_1PLANE_MAPPING_GET_FUNC(prefix_) \
|
#define DEFINE_BMP_1PLANE_MAPPING_GET_FUNC(prefix_) \
|
||||||
|
|||||||
@@ -156,22 +156,6 @@ GetTitlecaseForAll(uint32_t aCh) // maps both UC and LC to titlecase
|
|||||||
return u_totitle(aCh);
|
return u_totitle(aCh);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool
|
|
||||||
IsEastAsianWidthFWH(uint32_t aCh)
|
|
||||||
{
|
|
||||||
switch (u_getIntPropertyValue(aCh, UCHAR_EAST_ASIAN_WIDTH)) {
|
|
||||||
case U_EA_FULLWIDTH:
|
|
||||||
case U_EA_WIDE:
|
|
||||||
case U_EA_HALFWIDTH:
|
|
||||||
return true;
|
|
||||||
case U_EA_AMBIGUOUS:
|
|
||||||
case U_EA_NARROW:
|
|
||||||
case U_EA_NEUTRAL:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else // not ENABLE_INTL_API
|
#else // not ENABLE_INTL_API
|
||||||
|
|
||||||
// Return whether the char has a mirrored-pair counterpart.
|
// Return whether the char has a mirrored-pair counterpart.
|
||||||
@@ -208,9 +192,6 @@ uint32_t GetLowercase(uint32_t aCh);
|
|||||||
uint32_t GetTitlecaseForLower(uint32_t aCh); // maps LC to titlecase, UC unchanged
|
uint32_t GetTitlecaseForLower(uint32_t aCh); // maps LC to titlecase, UC unchanged
|
||||||
uint32_t GetTitlecaseForAll(uint32_t aCh); // maps both UC and LC to titlecase
|
uint32_t GetTitlecaseForAll(uint32_t aCh); // maps both UC and LC to titlecase
|
||||||
|
|
||||||
// Return whether the char has EastAsianWidth class F or W or H.
|
|
||||||
bool IsEastAsianWidthFWH(uint32_t aCh);
|
|
||||||
|
|
||||||
#endif // !ENABLE_INTL_API
|
#endif // !ENABLE_INTL_API
|
||||||
|
|
||||||
// returns the simplified Gen Category as defined in nsIUGenCategory
|
// returns the simplified Gen Category as defined in nsIUGenCategory
|
||||||
|
|||||||
Reference in New Issue
Block a user