+// © 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
*
#include "cstring.h"
#include "uoptions.h"
#include "gentest.h"
-#include "toolutil.h"
#define DATA_NAME "test"
#define DATA_TYPE "icu"
/* 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) {
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 */
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");