/**
*******************************************************************************
- * Copyright (C) 2001-2013, International Business Machines Corporation and
+ * Copyright (C) 2001-2016, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
#if !UCONFIG_NO_SERVICE
+#include "cmemory.h"
#include "icusvtst.h"
#include "servloc.h"
#include <stdio.h>
"en_US_SURFER_GAL",
"en_US_SURFER_DUDE"
};
- int32_t count = sizeof(xids)/sizeof(UnicodeString);
+ int32_t count = UPRV_LENGTHOF(xids);
ICUServiceFactory* f = new TestMultipleKeyStringFactory(xids, count, "Later");
service.registerFactory(f, status);
"en_US_SILICON",
"en_US_SILICON_GEEK",
};
- int32_t count = sizeof(xids)/sizeof(UnicodeString);
+ int32_t count = UPRV_LENGTHOF(xids);
ICUServiceFactory* f = new TestMultipleKeyStringFactory(xids, count, "Rad dude");
service.registerFactory(f, status);
CalifornioLanguageFactory::surfer,
CalifornioLanguageFactory::geek,
};
- int32_t count = sizeof(idNames)/sizeof(idNames[0]);
+ int32_t count = UPRV_LENGTHOF(idNames);
for (int i = 0; i < count; ++i) {
logln(UnicodeString("\n --- ") + idNames[i] + " ---");