OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / ndk / tests / device / test-stlport / unit / complete_digits.h
1 #ifndef STLP_DIGITS_H
2 #define STLP_DIGITS_H
3
4 #include <string>
5
6 inline void 
7 #if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
8 complete_digits(std::string &digits)
9 #else
10 complete_digits(string &digits)
11 #endif
12 {
13   while (digits.size() < 2)
14   {
15     digits.insert(digits.begin(), '0');
16   }
17 }
18
19 #endif