]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/gentest/gentest.c
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / gentest / gentest.c
index 0cf44c87319af1da365a5e8b26fff122ec6c8219..77076e9369cd8da4c20edfe8513ff8e2d3ca27fe 100644 (file)
@@ -1,12 +1,14 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
 *
-*   Copyright (C) 1999-2010, International Business Machines
+*   Copyright (C) 1999-2016, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 *******************************************************************************
 *   file name:  gentest.c
-*   encoding:   US-ASCII
+*   encoding:   UTF-8
 *   tab size:   8 (not used)
 *   indentation:4
 *
@@ -28,7 +30,6 @@
 #include "cstring.h"
 #include "uoptions.h"
 #include "gentest.h"
-#include "toolutil.h"
 
 #define DATA_NAME "test"
 #define DATA_TYPE "icu"
@@ -66,7 +67,7 @@ main(int argc, char* argv[]) {
 
     /* preset then read command line options */
     options[2].value=u_getDataDirectory();
-    argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
+    argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options);
 
     /* error handling, printing usage message */
     if(argc<0) {
@@ -143,7 +144,6 @@ outputJavaStuff(const char* progname, const char *outputDir) {
     int32_t i,t,count;
     char file[512];
     FILE *out;
-    int32_t year = getCurrentYear();
 
     uprv_strcpy(file,outputDir);
     if(*outputDir &&  /* don't put a trailing slash if outputDir is empty */ 
@@ -160,7 +160,9 @@ outputJavaStuff(const char* progname, const char *outputDir) {
         return 1;
     }
 
-    fprintf(out, "/** Copyright (C) 2007-%d, International Business Machines Corporation and Others. All Rights Reserved. **/\n\n", year);
+    fprintf(out, "// Copyright (C) 2016 and later: Unicode, Inc. and others.\n");
+    fprintf(out, "// License & terms of use: http://www.unicode.org/copyright.html\n\n");
+    fprintf(out, "/** Copyright (C) 2007-2016, International Business Machines Corporation and Others. All Rights Reserved. **/\n\n");
     fprintf(out, "/* NOTE: this file is AUTOMATICALLY GENERATED by gentest.\n"
                  " * See: {ICU4C}/source/data/icu4j-readme.txt for more information. \n"
                  " **/\n\n");