00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include <locale>
00030
00031 namespace std
00032 {
00033
00034 template<>
00035 const char*
00036 __timepunct_cache<char>::_S_timezones[14] =
00037 {
00038 "GMT", "HST", "AKST", "PST", "MST", "CST", "EST", "AST", "NST", "CET",
00039 "IST", "EET", "CST", "JST"
00040 };
00041
00042 #ifdef _GLIBCXX_USE_WCHAR_T
00043 template<>
00044 const wchar_t*
00045 __timepunct_cache<wchar_t>::_S_timezones[14] =
00046 {
00047 L"GMT", L"HST", L"AKST", L"PST", L"MST", L"CST", L"EST", L"AST",
00048 L"NST", L"CET", L"IST", L"EET", L"CST", L"JST"
00049 };
00050 #endif
00051
00052
00053 const money_base::pattern
00054 money_base::_S_default_pattern = { {symbol, sign, none, value} };
00055
00056 const char* money_base::_S_atoms = "-0123456789";
00057
00058 const char* __num_base::_S_atoms_in = "-+xX0123456789abcdefABCDEF";
00059 const char* __num_base::_S_atoms_out ="-+xX0123456789abcdef0123456789ABCDEF";
00060
00061
00062
00063
00064 void
00065 __num_base::_S_format_float(const ios_base& __io, char* __fptr, char __mod)
00066 {
00067 ios_base::fmtflags __flags = __io.flags();
00068 *__fptr++ = '%';
00069
00070 if (__flags & ios_base::showpos)
00071 *__fptr++ = '+';
00072 if (__flags & ios_base::showpoint)
00073 *__fptr++ = '#';
00074
00075
00076
00077 *__fptr++ = '.';
00078 *__fptr++ = '*';
00079
00080 if (__mod)
00081 *__fptr++ = __mod;
00082 ios_base::fmtflags __fltfield = __flags & ios_base::floatfield;
00083
00084 if (__fltfield == ios_base::fixed)
00085 *__fptr++ = 'f';
00086 else if (__fltfield == ios_base::scientific)
00087 *__fptr++ = (__flags & ios_base::uppercase) ? 'E' : 'e';
00088 else
00089 *__fptr++ = (__flags & ios_base::uppercase) ? 'G' : 'g';
00090 *__fptr = '\0';
00091 }
00092 }
00093