Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1966)

Unified Diff: source/tools/gencfu/gencfu.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/tools/genccode/genccode.vcxproj.filters ('k') | source/tools/gencfu/gencfu.vcxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/tools/gencfu/gencfu.cpp
diff --git a/source/tools/gencfu/gencfu.cpp b/source/tools/gencfu/gencfu.cpp
index 37bb1dad33ca20ec9c25d34d8dcc5e4324c1382a..0942f854651acb2105aaf18ecd95f5163ddd7847 100644
--- a/source/tools/gencfu/gencfu.cpp
+++ b/source/tools/gencfu/gencfu.cpp
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (C) 2009-2011, International Business Machines
+* Copyright (C) 2009-2015, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
@@ -56,6 +56,7 @@ static UOption options[]={
UOPTION_ICUDATADIR, /* 6 */
UOPTION_DESTDIR, /* 7 */
UOPTION_COPYRIGHT, /* 8 */
+ UOPTION_QUIET, /* 9 */
};
void usageAndDie(int retCode) {
@@ -66,6 +67,7 @@ void usageAndDie(int retCode) {
"\t-V or --version show a version message\n"
"\t-c or --copyright include a copyright notice\n"
"\t-v or --verbose turn on verbose output\n"
+ "\t-q or --quiet do not display warnings and progress\n"
"\t-i or --icudatadir directory for locating any needed intermediate data files,\n"
"\t followed by path, defaults to %s\n"
"\t-d or --destdir destination directory, followed by the path\n",
@@ -174,6 +176,11 @@ int main(int argc, char **argv) {
copyright = U_COPYRIGHT_STRING;
}
+ UBool quiet = FALSE;
+ if (options[9].doesOccur) {
+ quiet = TRUE;
+ }
+
#if UCONFIG_NO_REGULAR_EXPRESSIONS || UCONFIG_NO_NORMALIZATION || UCONFIG_NO_FILE_IO
// spoof detection data file parsing is dependent on regular expressions.
// TODO: have the tool return an error status. Requires fixing the ICU data build
@@ -290,7 +297,9 @@ int main(int argc, char **argv) {
delete [] confusables;
delete [] wsConfsables;
u_cleanup();
- printf("gencfu: tool completed successfully.\n");
+ if (!quiet) {
+ printf("gencfu: tool completed successfully.\n");
+ }
return 0;
#endif // UCONFIG_NO_REGULAR_EXPRESSIONS
}
« no previous file with comments | « source/tools/genccode/genccode.vcxproj.filters ('k') | source/tools/gencfu/gencfu.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698