diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index b2298ce6..1fe2b378 100644 --- a/src/utils.h +++ b/src/utils.h @@ -278,6 +278,16 @@ extern string empty_string; strings_list split_arguments(const char * line); +inline string to_string(long num) { + std::ostringstream buf; + buf << num; + return buf.str(); +} + +inline string operator+(const char * left, const string& right) { + return string(left) + right; +} + } // namespace ledger /*@}*/ |