diff --git a/icu4c/source/tools/genccode/genccode.8.in b/icu4c/source/tools/genccode/genccode.8.in index cdb2d85e17..e9535f0254 100644 --- a/icu4c/source/tools/genccode/genccode.8.in +++ b/icu4c/source/tools/genccode/genccode.8.in @@ -17,6 +17,12 @@ .BI "\-d\fP, \fB\-\-destdir" " destination" ] [ +.BI "\-n\fP, \fB\-\-name" " name" +] +[ +.BI "\-e\fP, \fB\-\-entrypoint" " name" +] +[ .IR filename " .\|.\|." ] .SH DESCRIPTION @@ -45,6 +51,30 @@ Print help about usage and exit. Set the destination directory to .IR destination . The default destination directory is the current directory. +.TP +.BI "\-n\fP, \fB\-\-name" " name" +Sets the data name to +.I name +instead of the default. This name is also used as the base name of the +output. The default name is made of the +.I icudt +prefix, followed by a two-digit version number corresponding to +the current version of the ICU release, and a single letter indicating +the endianness of the data (the letter +.I b +indicated big endian data, and the letter +.I l +indicates little endian ones). +.TP +.BI "\-e\fP, \fB\-\-entrypoint" " name" +Sets the data entry point (used for linking against the data in a +shared library form) to +.IR name . +The default entry point name is made of the data (set by the +.BI "\-n\fP, \fB\-\-name" +option) followed by an underscore and the type of the data (set by the +.BI "\-t\fP, \fB\-\-type" +option). .SH VERSION @VERSION@ .SH COPYRIGHT diff --git a/icu4c/source/tools/genccode/genccode.c b/icu4c/source/tools/genccode/genccode.c index 927ad272f8..88a2a1a787 100644 --- a/icu4c/source/tools/genccode/genccode.c +++ b/icu4c/source/tools/genccode/genccode.c @@ -106,6 +106,8 @@ main(int argc, char* argv[]) { "\toptions:\n" "\t\t-h or -? or --help this usage text\n" "\t\t-d or --destdir destination directory, followed by the path\n" + "\t\t-n or --name symbol prefix, followed by the prefix\n" + "\t\t-e or --entrypoint entry point name, followed by the name\n" #ifdef CAN_GENERATE_OBJECTS "\t\t-o or --object write a .obj file instead of .c\n" #endif