blob: 0a3d933a5e48c0222ed6646812d58fa0ab2654b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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
|