diff options
Diffstat (limited to 'tools.cpp')
-rw-r--r-- | tools.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -62,4 +62,13 @@ int StringToInt( std::string const& string, int base ) return 0; } +string StringRepeat(int times, const string& input) +{ + string result; + for (int i = 0; i < times; i++) { + result += input; + } + return result; +} + } // namespace vdrlive |