Added toString(long) method to utility class

This commit is contained in:
Matt Hill
2015-02-26 19:54:35 -05:00
parent 5f1c2f63a7
commit 766194c457
2 changed files with 7 additions and 0 deletions

View File

@@ -548,6 +548,12 @@ int levenshteinDistance (const std::string &s1, const std::string &s2, int max)
ss << value;
return ss.str();
}
std::string toString(long value)
{
stringstream ss;
ss << value;
return ss.str();
}
std::string toString(unsigned int value)
{
return toString((int) value);