Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: source/i18n/scriptset.h

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/scientificnumberformatter.cpp ('k') | source/i18n/scriptset.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/scriptset.h
diff --git a/source/i18n/scriptset.h b/source/i18n/scriptset.h
index 62af5d591d100c89f7b994e0870bf3f11e4bd915..e8de3b9613f9909ca46091d2d00e81e85555c0fa 100644
--- a/source/i18n/scriptset.h
+++ b/source/i18n/scriptset.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (C) 2013, International Business Machines
@@ -38,6 +40,7 @@ class U_I18N_API ScriptSet: public UMemory {
~ScriptSet();
UBool operator == (const ScriptSet &other) const;
+ UBool operator != (const ScriptSet &other) const {return !(*this == other);};
ScriptSet & operator = (const ScriptSet &other);
UBool test(UScriptCode script, UErrorCode &status) const;
@@ -55,9 +58,14 @@ class U_I18N_API ScriptSet: public UMemory {
int32_t hashCode() const;
int32_t nextSetBit(int32_t script) const;
+ UBool isEmpty() const;
+
UnicodeString &displayScripts(UnicodeString &dest) const; // append script names to dest string.
ScriptSet & parseScripts(const UnicodeString &scriptsString, UErrorCode &status); // Replaces ScriptSet contents.
+ // Wraps around UScript::getScriptExtensions() and adds the corresponding scripts to this instance.
+ void setScriptExtensions(UChar32 codePoint, UErrorCode& status);
+
private:
uint32_t bits[6];
};
« no previous file with comments | « source/i18n/scientificnumberformatter.cpp ('k') | source/i18n/scriptset.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698