X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f3c0d7a59d99c2a94c6b8822291f0e42be3773c9..HEAD:/icuSources/i18n/scriptset.h diff --git a/icuSources/i18n/scriptset.h b/icuSources/i18n/scriptset.h index 385c3e3e..a41ab737 100644 --- a/icuSources/i18n/scriptset.h +++ b/icuSources/i18n/scriptset.h @@ -35,12 +35,14 @@ U_NAMESPACE_BEGIN //------------------------------------------------------------------------------- class U_I18N_API ScriptSet: public UMemory { public: + static constexpr int32_t SCRIPT_LIMIT = 224; // multiple of 32! + ScriptSet(); ScriptSet(const ScriptSet &other); ~ScriptSet(); UBool operator == (const ScriptSet &other) const; - UBool operator != (const ScriptSet &other) const {return !(*this == other);}; + UBool operator != (const ScriptSet &other) const {return !(*this == other);} ScriptSet & operator = (const ScriptSet &other); UBool test(UScriptCode script, UErrorCode &status) const; @@ -67,7 +69,7 @@ class U_I18N_API ScriptSet: public UMemory { void setScriptExtensions(UChar32 codePoint, UErrorCode& status); private: - uint32_t bits[6]; + uint32_t bits[SCRIPT_LIMIT / 32]; }; U_NAMESPACE_END