]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/servlkf.cpp
ICU-59131.0.1.tar.gz
[apple/icu.git] / icuSources / common / servlkf.cpp
index c455080fdd9d0e2f33dbb60f816e6a36c44fbf2d..84f2347cddef0d1c14bce005865cf4aab8df69a7 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /**
  *******************************************************************************
- * Copyright (C) 2001-2005, International Business Machines Corporation and    *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  *
@@ -71,9 +73,8 @@ LocaleKeyFactory::updateVisibleIDs(Hashtable& result, UErrorCode& status) const
     const Hashtable* supported = getSupportedIDs(status);
     if (supported) {
         UBool visible = (_coverage & 0x1) == 0;
-
         const UHashElement* elem = NULL;
-        int32_t pos = 0;
+        int32_t pos = UHASH_FIRST;
         while ((elem = supported->nextElement(pos)) != NULL) {
             const UnicodeString& id = *((const UnicodeString*)elem->key.pointer);
             if (!visible) {
@@ -127,9 +128,9 @@ UnicodeString&
 LocaleKeyFactory::debug(UnicodeString& result) const
 {
     debugClass(result);
-    result.append(", name: ");
+    result.append((UnicodeString)", name: ");
     result.append(_name);
-    result.append(", coverage: ");
+    result.append((UnicodeString)", coverage: ");
     result.append(_coverage);
     return result;
 }
@@ -137,7 +138,7 @@ LocaleKeyFactory::debug(UnicodeString& result) const
 UnicodeString&
 LocaleKeyFactory::debugClass(UnicodeString& result) const
 {
-  return result.append("LocaleKeyFactory");
+  return result.append((UnicodeString)"LocaleKeyFactory");
 }
 #endif