reactos/lib/3rdparty/stlport/test/unit/complete_digits.h
Amine Khaldi 4efda499f7 [CMAKE]
Jerome Gardou:
- Add STLport 5.2.1 (yes, STLport, the c++ stl implementation) to build. For now, it works only in user mode.
- Link some c++ executables to it
- sol.exe : one step towards a complete and modern OS.
- Dedicated to Amine for his patience and his help.
- Might Break Things! (tm)

svn path=/branches/cmake-bringup/; revision=49046
2010-10-07 22:09:31 +00:00

19 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