From 862f706301ab6d758af14d7342ae0499cfe3b5ad Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 8 Jan 2007 00:54:24 +0000 Subject: New function StringWordTruncate added --- tools.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools.h') diff --git a/tools.h b/tools.h index d830d47..a196dc2 100644 --- a/tools.h +++ b/tools.h @@ -15,6 +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); struct bad_lexical_cast: std::runtime_error { -- cgit v1.2.3