summaryrefslogtreecommitdiff
path: root/tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools.cpp')
-rw-r--r--tools.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools.cpp b/tools.cpp
index 515418a..de0b43c 100644
--- a/tools.cpp
+++ b/tools.cpp
@@ -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