sl@0: /* sl@0: * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. sl@0: * sl@0: * Copyright (c) 1999 sl@0: * Silicon Graphics Computer Systems, Inc. sl@0: * sl@0: * Copyright (c) 1999 sl@0: * Boris Fomitchev sl@0: * sl@0: * This material is provided "as is", with absolutely no warranty expressed sl@0: * or implied. Any use is at your own risk. sl@0: * sl@0: * Permission to use or copy this software for any purpose is hereby granted sl@0: * without fee, provided the above notices are retained on all copies. sl@0: * Permission to modify the code and to distribute modified code is granted, sl@0: * provided the above notices are retained, and a notice that the code was sl@0: * modified is included with the above copyright notice. sl@0: * sl@0: */ sl@0: sl@0: # include "stlport_prefix.h" sl@0: # include "num_put.h" sl@0: #if defined(__LIBSTD_CPP_SYMBIAN32_WSD__) || defined(_STLP_LIBSTD_CPP_NO_STATIC_VAR_) sl@0: #include "libstdcppwsd.h" sl@0: # endif sl@0: sl@0: _STLP_BEGIN_NAMESPACE sl@0: sl@0: //---------------------------------------------------------------------- sl@0: // num_put sl@0: sl@0: extern const char __hex_char_table_lo[]; sl@0: extern const char __hex_char_table_hi[]; sl@0: sl@0: const char __hex_char_table_lo[18] = "0123456789abcdefx"; sl@0: const char __hex_char_table_hi[18] = "0123456789ABCDEFX"; sl@0: sl@0: _STLP_EXP_DECLSPEC const char* get_hex_char_table_lo() sl@0: { sl@0: return __hex_char_table_lo; sl@0: } sl@0: sl@0: _STLP_EXP_DECLSPEC const char* get_hex_char_table_hi() sl@0: { sl@0: return __hex_char_table_hi; sl@0: } sl@0: sl@0: _STLP_EXP_DECLSPEC char* _STLP_CALL sl@0: __write_integer(char* buf, ios_base::fmtflags flags, long x) sl@0: { sl@0: char tmp[64]; sl@0: char* bufend = tmp+64; sl@0: char* beg = __write_integer_backward(bufend, flags, x); sl@0: return copy(beg, bufend, buf); sl@0: } sl@0: sl@0: ///------------------------------------- sl@0: sl@0: _STLP_EXP_DECLSPEC ptrdiff_t _STLP_CALL sl@0: __insert_grouping(char * first, char * last, const string& grouping, sl@0: char separator, char Plus, char Minus, int basechars) sl@0: { sl@0: return __insert_grouping_aux(first, last, grouping, sl@0: separator, Plus, Minus, basechars); sl@0: } sl@0: sl@0: # ifndef _STLP_NO_WCHAR_T sl@0: sl@0: _STLP_EXP_DECLSPEC ptrdiff_t _STLP_CALL sl@0: __insert_grouping(wchar_t* first, wchar_t* last, const string& grouping, sl@0: wchar_t separator, wchar_t Plus, wchar_t Minus, sl@0: int basechars) sl@0: { sl@0: return __insert_grouping_aux(first, last, grouping, separator, sl@0: Plus, Minus, basechars); sl@0: } sl@0: sl@0: # endif sl@0: sl@0: sl@0: //---------------------------------------------------------------------- sl@0: // Force instantiation of num_put<> sl@0: #if !defined(_STLP_NO_FORCE_INSTANTIATE) sl@0: template class _STLP_CLASS_DECLSPEC ostreambuf_iterator >; sl@0: // template class num_put; sl@0: template class num_put > >; sl@0: # ifndef _STLP_NO_WCHAR_T sl@0: template class ostreambuf_iterator >; sl@0: template class num_put > >; sl@0: // template class num_put; sl@0: # endif /* INSTANTIATE_WIDE_STREAMS */ sl@0: #endif sl@0: sl@0: _STLP_END_NAMESPACE sl@0: sl@0: // Local Variables: sl@0: // mode:C++ sl@0: // End: