Home | History | Annotate | Download | only in unit
      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
     20