comparison modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/scriptset.h @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents fee4ef5c87df
children
comparison
equal deleted inserted replaced
0:d4176e0df923 1:10c316504404
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
1 /* 3 /*
2 ********************************************************************** 4 **********************************************************************
3 * Copyright (C) 2013, International Business Machines 5 * Copyright (C) 2013, International Business Machines
4 * Corporation and others. All Rights Reserved. 6 * Corporation and others. All Rights Reserved.
5 ********************************************************************** 7 **********************************************************************
36 ScriptSet(); 38 ScriptSet();
37 ScriptSet(const ScriptSet &other); 39 ScriptSet(const ScriptSet &other);
38 ~ScriptSet(); 40 ~ScriptSet();
39 41
40 UBool operator == (const ScriptSet &other) const; 42 UBool operator == (const ScriptSet &other) const;
43 UBool operator != (const ScriptSet &other) const {return !(*this == other);};
41 ScriptSet & operator = (const ScriptSet &other); 44 ScriptSet & operator = (const ScriptSet &other);
42 45
43 UBool test(UScriptCode script, UErrorCode &status) const; 46 UBool test(UScriptCode script, UErrorCode &status) const;
44 ScriptSet &Union(const ScriptSet &other); 47 ScriptSet &Union(const ScriptSet &other);
45 ScriptSet &set(UScriptCode script, UErrorCode &status); 48 ScriptSet &set(UScriptCode script, UErrorCode &status);
53 ScriptSet &resetAll(); 56 ScriptSet &resetAll();
54 int32_t countMembers() const; 57 int32_t countMembers() const;
55 int32_t hashCode() const; 58 int32_t hashCode() const;
56 int32_t nextSetBit(int32_t script) const; 59 int32_t nextSetBit(int32_t script) const;
57 60
61 UBool isEmpty() const;
62
58 UnicodeString &displayScripts(UnicodeString &dest) const; // append script names to dest string. 63 UnicodeString &displayScripts(UnicodeString &dest) const; // append script names to dest string.
59 ScriptSet & parseScripts(const UnicodeString &scriptsString, UErrorCode &status); // Replaces ScriptSet contents. 64 ScriptSet & parseScripts(const UnicodeString &scriptsString, UErrorCode &status); // Replaces ScriptSet contents.
65
66 // Wraps around UScript::getScriptExtensions() and adds the corresponding scripts to this instance.
67 void setScriptExtensions(UChar32 codePoint, UErrorCode& status);
60 68
61 private: 69 private:
62 uint32_t bits[6]; 70 uint32_t bits[6];
63 }; 71 };
64 72