mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 06:10:03 +08:00
Added toString(long) method to utility class
This commit is contained in:
@@ -548,6 +548,12 @@ int levenshteinDistance (const std::string &s1, const std::string &s2, int max)
|
|||||||
ss << value;
|
ss << value;
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
std::string toString(long value)
|
||||||
|
{
|
||||||
|
stringstream ss;
|
||||||
|
ss << value;
|
||||||
|
return ss.str();
|
||||||
|
}
|
||||||
std::string toString(unsigned int value)
|
std::string toString(unsigned int value)
|
||||||
{
|
{
|
||||||
return toString((int) value);
|
return toString((int) value);
|
||||||
|
@@ -103,6 +103,7 @@ namespace alpr
|
|||||||
|
|
||||||
int levenshteinDistance (const std::string &s1, const std::string &s2, int max);
|
int levenshteinDistance (const std::string &s1, const std::string &s2, int max);
|
||||||
std::string toString(int value);
|
std::string toString(int value);
|
||||||
|
std::string toString(long value);
|
||||||
std::string toString(unsigned int value);
|
std::string toString(unsigned int value);
|
||||||
std::string toString(float value);
|
std::string toString(float value);
|
||||||
std::string toString(double value);
|
std::string toString(double value);
|
||||||
|
Reference in New Issue
Block a user