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

Unified Diff: source/common/unicode/enumset.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 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/common/unicode/caniter.h ('k') | source/common/unicode/listformatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/unicode/enumset.h
diff --git a/source/common/unicode/enumset.h b/source/common/unicode/enumset.h
index a7a2416dcabf02a32f6facc022bff2fe4e097f45..5106c37177111943b927c37948bdfce52c76c209 100644
--- a/source/common/unicode/enumset.h
+++ b/source/common/unicode/enumset.h
@@ -1,7 +1,7 @@
/*
******************************************************************************
*
-* Copyright (C) 2012, International Business Machines
+* Copyright (C) 2012,2014 International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@@ -21,9 +21,10 @@
U_NAMESPACE_BEGIN
+/* Can't use #ifndef U_HIDE_INTERNAL_API for the entire EnumSet class, needed in .h file declarations */
/**
* enum bitset for boolean fields. Similar to Java EnumSet<>.
- * Needs to range check.
+ * Needs to range check. Used for private instance variables.
* @internal
*/
template<typename T, uint32_t minValue, uint32_t limitValue>
@@ -32,6 +33,7 @@ public:
inline EnumSet() : fBools(0) {}
inline EnumSet(const EnumSet<T,minValue,limitValue>& other) : fBools(other.fBools) {}
inline ~EnumSet() {}
+#ifndef U_HIDE_INTERNAL_API
inline void clear() { fBools=0; }
inline void add(T toAdd) { set(toAdd, 1); }
inline void remove(T toRemove) { set(toRemove, 0); }
@@ -48,6 +50,7 @@ public:
inline uint32_t getAll() const {
return fBools;
}
+#endif /* U_HIDE_INTERNAL_API */
private:
inline uint32_t flag(T toCheck) const { return (1<<(toCheck-minValue)); }
« no previous file with comments | « source/common/unicode/caniter.h ('k') | source/common/unicode/listformatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698