summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools.cpp2
-rw-r--r--tools.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools.cpp b/tools.cpp
index beded35..da83aff 100644
--- a/tools.cpp
+++ b/tools.cpp
@@ -71,7 +71,7 @@ string StringRepeat(int times, const string& input)
return result;
}
-string StringWordTruncated(const string& input, size_t maxLen, bool& truncated)
+string StringWordTruncate(const string& input, size_t maxLen, bool& truncated)
{
if (input.length() <= maxLen)
{
diff --git a/tools.h b/tools.h
index a196dc2..36f0c19 100644
--- a/tools.h
+++ b/tools.h
@@ -15,7 +15,7 @@ std::string StringReplace( std::string const& text, std::string const& substring
std::vector< std::string > StringSplit( std::string const& text, char delimiter );
int StringToInt( std::string const& string, int base = 10 );
std::string StringRepeat(int times, const std::string& input);
-std::string StringWordTruncated(const std::string& input, size_t maxLen, bool& truncated);
+std::string StringWordTruncate(const std::string& input, size_t maxLen, bool& truncated);
struct bad_lexical_cast: std::runtime_error
{