reactos/lib/3rdparty/stlport/test/unit/complete_digits.h
Cameron Gutman c2d0d784c7 [USB-BRINGUP-TRUNK]
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup
- In the future, DO NOT under any circumstances branch another branch. This leads to merge problems!

svn path=/branches/usb-bringup-trunk/; revision=55018
2012-01-20 20:58:46 +00:00

20 lines
304 B
C++

#ifndef STLP_DIGITS_H
#define STLP_DIGITS_H
#include <string>
inline void
#if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
complete_digits(std::string &digits)
#else
complete_digits(string &digits)
#endif
{
while (digits.size() < 2)
{
digits.insert(digits.begin(), '0');
}
}
#endif