]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/extra/scrptrun/srtest.cpp
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / extra / scrptrun / srtest.cpp
index 8b6b550da31b18bf1baaddf87d821290dae9f502..9e3c8fb087d173f6c578730575356e1163c6531e 100644 (file)
@@ -1,13 +1,14 @@
 /*
  * %W% %E%
  *
- * (C) Copyright IBM Corp. 2001 - All Rights Reserved
+ * (C) Copyright IBM Corp. 2001-2016 - All Rights Reserved
  *
  */
 
 #include "unicode/utypes.h"
 #include "unicode/uscript.h"
 
+#include "cmemory.h"
 #include "scrptrun.h"
 
 #include <stdio.h>
@@ -22,7 +23,7 @@ UChar testChars[] = {
             0xD801, 0xDC00, 0xD801, 0xDC01, 0xD801, 0xDC02, 0xD801, 0xDC03
 };
 
-int32_t testLength = sizeof testChars / sizeof testChars[0];
+int32_t testLength = UPRV_LENGTHOF(testChars);
 
 void main()
 {
@@ -35,4 +36,4 @@ void main()
 
         printf("Script '%s' from %d to %d.\n", uscript_getName(code), start, end);
     }
-}
\ No newline at end of file
+}