//-------------------------------------------------------------------------------
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;
void setScriptExtensions(UChar32 codePoint, UErrorCode& status);
private:
- uint32_t bits[6];
+ uint32_t bits[SCRIPT_LIMIT / 32];
};
U_NAMESPACE_END