summaryrefslogtreecommitdiff
path: root/src/version_usage.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
commit694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch)
tree42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/version_usage.cc
parent580098eb4929a3bdbf424af18da361259ef2efe5 (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/version_usage.cc')
-rw-r--r--src/version_usage.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/version_usage.cc b/src/version_usage.cc
index 6662e290..98bf1611 100644
--- a/src/version_usage.cc
+++ b/src/version_usage.cc
@@ -46,7 +46,7 @@
#endif // ENABLE_MESSAGE_DIGEST
#include "help_tags.h"
#include "prefs.h"
-#include "StringFormat.h"
+#include "fmt.h"
#include "OptionParser.h"
#include "OptionHandler.h"
#include "util.h"
@@ -77,7 +77,7 @@ void showVersion() {
<< MessageDigest::getSupportedHashTypeString() << "\n"
#endif // ENABLE_MESSAGE_DIGEST
<< "\n"
- << StringFormat(_("Report bugs to %s"), PACKAGE_BUGREPORT) << "\n"
+ << fmt(_("Report bugs to %s"), PACKAGE_BUGREPORT) << "\n"
<< "Visit " << PACKAGE_URL << std::endl;
}
@@ -91,13 +91,13 @@ void showUsage(const std::string& keyword, const OptionParser& oparser) {
if(keyword == TAG_ALL) {
std::cout << _("Printing all options.");
} else {
- std::cout << StringFormat(_("Printing options tagged with '%s'."),
- keyword.c_str());
+ std::cout << fmt(_("Printing options tagged with '%s'."),
+ keyword.c_str());
std::cout << "\n";
SharedHandle<OptionHandler> help = oparser.findByName("help");
- std::cout << StringFormat(_("See -h option to know other command-line"
- " options(%s)."),
- help->createPossibleValuesString().c_str());
+ std::cout << fmt(_("See -h option to know other command-line"
+ " options(%s)."),
+ help->createPossibleValuesString().c_str());
}
std::cout << "\n"
<< _("Options:") << "\n";
@@ -109,8 +109,8 @@ void showUsage(const std::string& keyword, const OptionParser& oparser) {
std::vector<SharedHandle<OptionHandler> > handlers =
oparser.findByNameSubstring(keyword);
if(!handlers.empty()) {
- std::cout << StringFormat(_("Printing options whose name includes"
- " '%s'."), keyword.c_str())
+ std::cout << fmt(_("Printing options whose name includes '%s'."),
+ keyword.c_str())
<< "\n"
<< _("Options:") << "\n";
for(std::vector<SharedHandle<OptionHandler> >::const_iterator i =
@@ -118,8 +118,8 @@ void showUsage(const std::string& keyword, const OptionParser& oparser) {
std::cout << *(*i) << "\n\n";
}
} else {
- std::cout << StringFormat(_("No option matching with '%s'."),
- keyword.c_str())
+ std::cout << fmt(_("No option matching with '%s'."),
+ keyword.c_str())
<< "\n" << *oparser.findByName("help") << "\n";
}
}