2 * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
4 * Silicon Graphics Computer Systems, Inc.
9 * This material is provided "as is", with absolutely no warranty expressed
10 * or implied. Any use is at your own risk.
12 * Permission to use or copy this software for any purpose is hereby granted
13 * without fee, provided the above notices are retained on all copies.
14 * Permission to modify the code and to distribute modified code is granted,
15 * provided the above notices are retained, and a notice that the code was
16 * modified is included with the above copyright notice.
19 #ifndef _STLP_NUM_GET_C
20 #define _STLP_NUM_GET_C
22 #ifndef _STLP_INTERNAL_NUM_GET_H
23 # include <stl/_num_get.h>
26 # if defined (_STLP_EXPOSE_STREAM_IMPLEMENTATION)
28 #ifndef _STLP_LIMITS_H
29 # include <stl/_limits.h>
32 _STLP_DECLSPEC unsigned char* __get_digit_val_table(void);
33 _STLP_DECLSPEC char* __get_narrow_atoms(void);
36 extern const unsigned char __digit_val_table[];
38 template < class _InputIter, class _Integer, class _CharT>
40 _M_do_get_integer(_InputIter&, _InputIter&, ios_base&, ios_base::iostate&, _Integer&, _CharT*);
42 // _M_do_get_integer and its helper functions.
45 template<class _CharT>
46 inline bool _STLP_CALL __get_fdigit(_CharT& c, const _CharT* digits)
49 const _CharT* p = find(digits, digits + 10, c);
50 if (p != digits + 10) {
51 c = (_CharT)( (_CharT)'0' + (p - digits));
59 inline bool _STLP_CALL __get_fdigit(char& __c, const char*)
60 { return __c >= '0' && __c <= '9'; }
62 inline bool _STLP_CALL __get_fdigit_or_sep(char& __c, char __sep, const char *)
68 return ( __c >= '0' && __c <= '9');
71 # ifndef _STLP_NO_WCHAR_T
73 // Similar, except return the character itself instead of the numeric
74 // value. Used for floating-point input.
75 inline bool _STLP_CALL __get_fdigit(wchar_t& c, const wchar_t* digits)
77 const wchar_t* p = find(digits, digits + 10, c);
78 if (p != digits + 10) {
79 c = (char)('0' + (p - digits));
86 inline bool _STLP_CALL __get_fdigit_or_sep(wchar_t& c, wchar_t sep,
87 const wchar_t * digits)
94 return __get_fdigit(c, digits);
97 template <class _CharT>
98 inline bool _STLP_CALL __get_fdigit_or_sep(_CharT& c, _CharT sep,
99 const _CharT * digits)
106 return __get_fdigit(c, digits);
113 inline int _STLP_CALL
114 __get_digit_from_table(unsigned __index)
116 return (__index > 127 ? 0xFF : __get_digit_val_table()[__index]);
119 extern const char __narrow_atoms[];
121 template <class _InputIter, class _CharT>
123 _M_get_base_or_zero(_InputIter& __stl_in, _InputIter& __end, ios_base& __str, _CharT*)
126 const ctype<_CharT>& __c_type = use_facet< ctype<_CharT> >(__str.getloc());
127 // const ctype<_CharT>& __c_type = *(const ctype<_CharT>*)__str._M_ctype_facet();
129 __c_type.widen(__get_narrow_atoms(), __get_narrow_atoms() + 5, __atoms);
131 bool __negative = false;
132 _CharT __c = *__stl_in;
134 if (__c == __atoms[1] /* __xminus_char */ ) {
138 else if (__c == __atoms[0] /* __xplus_char */ )
143 int __valid_zero = 0;
145 ios_base::fmtflags __basefield = __str.flags() & ios_base::basefield;
147 switch (__basefield) {
156 if (__stl_in != __end && *__stl_in == __atoms[2] /* __zero_char */ ) {
158 if (__stl_in != __end &&
159 (*__stl_in == __atoms[3] /* __x_char */ || *__stl_in == __atoms[4] /* __X_char */ ))
162 __valid_zero = 1; // That zero is valid by itself.
166 if (__stl_in != __end && *__stl_in == __atoms[2] /* __zero_char */ ) {
168 if (__stl_in != __end &&
169 (*__stl_in == __atoms[3] /* __x_char */ || *__stl_in == __atoms[4] /* __X_char */ )) {
176 __valid_zero = 1; // That zero is still valid by itself.
183 return (__base << 2) | ((int)__negative << 1) | __valid_zero;
187 template <class _InputIter, class _Integer>
189 __get_integer(_InputIter& __first, _InputIter& __last,
190 int __base, _Integer& __val,
191 int __got, bool __is_negative, char __separator, const string& __grouping, const __true_type&)
193 bool __ovflow = false;
194 bool __valid_group = true;
196 _Integer __result = 0;
197 bool __is_group = !__grouping.empty();
198 // char __group_sizes[64];
199 char __group_sizes[256] = {0}; //group sizes can be more
201 int __current_group_size = __got;
203 int __current_group_size = 0;
205 char* __group_sizes_end = __group_sizes;
209 _Integer __over_base = (numeric_limits<_Integer>::min)() / __STATIC_CAST(_Integer, __base);
211 for ( ; __first != __last ; ++__first) {
213 const char __c = *__first;
215 if (__is_group && __c == __separator) {
216 if (prv_got == __got) //no successive seperators
219 *__group_sizes_end++ = __current_group_size;
220 __current_group_size = 0;
224 int __n = __get_digit_from_table(__c);
230 ++__current_group_size;
232 if (__result < __over_base)
233 __ovflow = true; // don't need to keep accumulating
235 _Integer __next = __STATIC_CAST(_Integer, __base * __result - __n);
239 __ovflow = __ovflow || __next >= __result;
241 __ovflow = __ovflow || (__next-1) >= __result; //For signed char, the ranges are -128 to 127,
243 __ovflow = __ovflow || __next >= __result;
249 if (__is_group && __group_sizes_end != __group_sizes) {
250 *__group_sizes_end++ = __current_group_size;
254 // fbp : added to not modify value if nothing was read
257 ? __is_negative ? (numeric_limits<_Integer>::min)()
258 : (numeric_limits<_Integer>::max)()
259 : (__is_negative ? __result : __STATIC_CAST(_Integer, -__result));
261 __valid_group = __valid_grouping(__group_sizes, __group_sizes_end,
262 __grouping.data(), __grouping.data()+ __grouping.size());
264 if (__valid_group == false)
267 // overflow is being treated as failure
268 return ((__got > 0) && !__ovflow) && (__is_group == 0 || __valid_group) ;
271 template <class _InputIter, class _Integer>
273 __get_integer(_InputIter& __first, _InputIter& __last,
274 int __base, _Integer& __val,
275 int __got, bool __is_negative, char __separator, const string& __grouping, const __false_type&)
277 bool __ovflow = false;
278 bool __valid_group = true;
279 _Integer __result = 0;
280 bool __is_group = !__grouping.empty();
281 // char __group_sizes[64];
282 char __group_sizes[256] = {0};//group sizes can be more
283 int __current_group_size = 0;
284 char* __group_sizes_end = __group_sizes;
288 _Integer __over_base = (numeric_limits<_Integer>::max)() / __STATIC_CAST(_Integer, __base);
290 for ( ; __first != __last ; ++__first) {
292 const char __c = *__first;
294 //if (__is_group && __c == __separator) { //no seperator at the start of number.
295 if (__is_group && __c == __separator && __got) {
296 // seperator should come after extracting some digits
297 if (!__current_group_size)
299 *__group_sizes_end++ = __current_group_size;
300 __current_group_size = 0;
304 if (__is_group && __c == __separator) {
305 if (prv_got == __got) //no successive seperators
308 *__group_sizes_end++ = __current_group_size;
309 __current_group_size = 0;
312 int __n = __get_digit_from_table(__c);
318 ++__current_group_size;
320 if (__result > __over_base)
321 __ovflow = true; //don't need to keep accumulating
323 _Integer __next = __STATIC_CAST(_Integer, __base * __result + __n);
325 __ovflow = __ovflow || __next <= __result;
330 if (__is_group && __group_sizes_end != __group_sizes) {
331 *__group_sizes_end++ = __current_group_size;
334 // fbp : added to not modify value if nothing was read
337 ? (numeric_limits<_Integer>::max)()
338 : (__is_negative ? __STATIC_CAST(_Integer, -__result) : __result);
340 __valid_group = __valid_grouping(__group_sizes, __group_sizes_end,
341 __grouping.data(), __grouping.data()+ __grouping.size());
343 if (__valid_group == false)
346 // overflow is being treated as failure
347 return ((__got > 0) && !__ovflow) &&
348 (__is_group == 0 ||__valid_group) ;
352 template <class _InputIter, class _Integer>
354 __get_decimal_integer(_InputIter& __first, _InputIter& __last, _Integer& __val)
357 return __get_integer(__first, __last, 10, __val, 0, false, ' ', __grp, __false_type());
360 template <class _InputIter, class _Integer, class _CharT>
361 _InputIter _STLP_CALL
362 _M_do_get_integer(_InputIter& __stl_in, _InputIter& __end, ios_base& __str,
363 ios_base::iostate& __err, _Integer& __val, _CharT* __pc)
366 #if defined(__HP_aCC) && (__HP_aCC == 1)
367 bool _IsSigned = !((_Integer)(-1) > 0);
369 typedef typename __bool2type<numeric_limits<_Integer>::is_signed>::_Ret _IsSigned;
372 //const numpunct<_CharT>& __numpunct = *(const numpunct<_CharT>*)__str._M_numpunct_facet();
373 const numpunct<_CharT>& __numpunct = use_facet< numpunct<_CharT> >(__str.getloc());
374 // const string& __grouping = __str._M_grouping(); // cached copy //stdcxx fix - 11/1/06
375 const string& __grouping = __numpunct.grouping();
378 const int __base_or_zero = _M_get_base_or_zero(__stl_in, __end, __str, __pc);
379 int __got = __base_or_zero & 1;
383 if (__stl_in == __end) { // We may have already read a 0. If so,
385 if (__got > 0) { // the result is 0 even if we're at eof.
393 const bool __negative = __base_or_zero & 2;
394 const int __base = __base_or_zero >> 2;
396 #if defined(__HP_aCC) && (__HP_aCC == 1)
398 __result = __get_integer(__stl_in, __end, __base, __val, __got, __negative, __numpunct.thousands_sep(), __grouping, __true_type() );
400 __result = __get_integer(__stl_in, __end, __base, __val, __got, __negative, __numpunct.thousands_sep(), __grouping, __false_type() );
404 __result = __get_integer(__stl_in, __end, __base, __tval, __got, __negative, __numpunct.thousands_sep(), __grouping, _IsSigned());
408 __result = __get_integer(__stl_in, __end, __base, __val, __got, __negative, __numpunct.thousands_sep(), __grouping, _IsSigned());
413 __err = __STATIC_CAST(ios_base::iostate, __result ? ios_base::goodbit : ios_base::failbit);
415 if (__stl_in == __end)
416 __err |= ios_base::eofbit;
420 // _M_read_float and its helper functions.
421 template <class _InputIter, class _CharT>
422 _InputIter _STLP_CALL
423 __copy_sign(_InputIter __first, _InputIter __last, string& __v,
424 _CharT __xplus, _CharT __xminus) {
425 if (__first != __last) {
426 _CharT __c = *__first;
429 else if (__c == __xminus) {
438 template <class _InputIter, class _CharT>
440 __copy_digits(_InputIter& __first, _InputIter& __last,
441 string& __v, const _CharT* __digits)
445 for ( ; __first != __last; ++__first) {
446 _CharT __c = *__first;
447 if (__get_fdigit(__c, __digits)) {
448 __v.push_back((char)__c);
457 template <class _InputIter, class _CharT>
459 __copy_grouped_digits(_InputIter& __first, _InputIter& __last,
460 string& __v, const _CharT * __digits,
461 _CharT __sep, const string& __grouping,
465 // char __group_sizes[64];
466 char __group_sizes[256] = {0};//group sizes can be more
467 char*__group_sizes_end = __group_sizes;
468 char __current_group_size = 0;
470 for ( ; __first != __last; ++__first) {
471 _CharT __c = *__first;
472 bool __tmp = __get_fdigit_or_sep(__c, __sep, __digits);
475 // seperator should come after extracting some digits
476 if (!__current_group_size)
479 *__group_sizes_end++ = __current_group_size;
480 __current_group_size = 0;
484 __v.push_back((char)__c);
485 ++__current_group_size;
492 if (__group_sizes_end != __group_sizes)
493 *__group_sizes_end++ = __current_group_size;
494 __grouping_ok = __valid_grouping(__group_sizes, __group_sizes_end, __grouping.data(), __grouping.data() + __grouping.size());
495 __ok = __ok & __grouping_ok; //Added, to check for valid grouping. If not valid grouping should return false.
500 template <class _InputIter, class _CharT>
502 _M_read_float(string& __buf, _InputIter& __stl_in, _InputIter& __end, ios_base& __s, _CharT*)
504 // Create a string, copying characters of the form
505 // [+-]? [0-9]* .? [0-9]* ([eE] [+-]? [0-9]+)?
507 bool __digits_before_dot /* = false */;
508 bool __digits_after_dot = false;
511 bool __grouping_ok = true;
513 const ctype<_CharT>& __ct = use_facet< ctype<_CharT> >(__s.getloc());
514 // const ctype<_CharT>& __ct = *(const ctype<_CharT>*)__s._M_ctype_facet();
515 //const numpunct<_CharT>& __numpunct = *(const numpunct<_CharT>*)__s._M_numpunct_facet();
516 const numpunct<_CharT>& __numpunct = use_facet< numpunct<_CharT> >(__s.getloc());
517 // const string& __grouping = __s._M_grouping(); // cached copy //stdcxx fix - 11/1/06
518 const string& __grouping = __numpunct.grouping();
520 _CharT __dot = __numpunct.decimal_point();
521 _CharT __sep = __numpunct.thousands_sep();
530 _Initialize_get_float(__ct, __xplus, __xminus, __pow_e, __pow_E, __digits);
532 // Get an optional sign
533 __stl_in = __copy_sign(__stl_in, __end, __buf, __xplus, __xminus);
535 // Get an optional string of digits.
536 if (__grouping.size() != 0)
537 __digits_before_dot = __copy_grouped_digits(__stl_in, __end, __buf, __digits,
538 __sep, __grouping, __grouping_ok);
540 __digits_before_dot = __copy_digits(__stl_in, __end, __buf, __digits);
542 // Get an optional decimal point, and an optional string of digits.
543 if (__stl_in != __end && *__stl_in == __dot) {
544 __buf.push_back('.');
546 __digits_after_dot = __copy_digits(__stl_in, __end, __buf, __digits);
549 // There have to be some digits, somewhere.
550 __ok = __digits_before_dot || __digits_after_dot;
552 // Get an optional exponent.
553 if (__ok && __stl_in != __end && (*__stl_in == __pow_e || *__stl_in == __pow_E)) {
554 __buf.push_back('e');
556 __stl_in = __copy_sign(__stl_in, __end, __buf, __xplus, __xminus);
557 __ok = __copy_digits(__stl_in, __end, __buf, __digits);
558 // If we have an exponent then the sign
559 // is optional but the digits aren't.
566 // num_get<>, num_put<>
569 # if ( _STLP_STATIC_TEMPLATE_DATA > 0 )
570 # if !defined(__LIBSTD_CPP_SYMBIAN32_WSD__) && !defined(_STLP_LIBSTD_CPP_NO_STATIC_VAR_)
571 template <class _CharT, class _InputIterator>
572 locale::id num_get<_CharT, _InputIterator>::id;
576 typedef num_get<char, const char*> num_get_char;
577 typedef num_get<char, istreambuf_iterator<char, char_traits<char> > > num_get_char_2;
579 #ifndef __SYMBIAN32__
580 __DECLARE_INSTANCE(locale::id, num_get_char::id, );
581 __DECLARE_INSTANCE(locale::id, num_get_char_2::id, );
584 # ifndef _STLP_NO_WCHAR_T
586 typedef num_get<wchar_t, const wchar_t*> num_get_wchar_t;
587 typedef num_get<wchar_t, istreambuf_iterator<wchar_t, char_traits<wchar_t> > > num_get_wchar_t_2;
589 #ifndef __SYMBIAN32__
590 __DECLARE_INSTANCE(locale::id, num_get_wchar_t::id, );
591 __DECLARE_INSTANCE(locale::id, num_get_wchar_t_2::id, );
596 # endif /* ( _STLP_STATIC_TEMPLATE_DATA > 0 ) */
598 # ifndef _STLP_NO_BOOL
599 template <class _CharT, class _InputIter>
601 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end,
603 ios_base::iostate& __err, bool& __x) const
605 if (__s.flags() & ios_base::boolalpha) {
606 locale __loc = __s.getloc();
607 //const _Numpunct& __np = *(const _Numpunct*)__s._M_numpunct_facet();
608 const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc) ;
609 // const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc) ;
611 const basic_string<_CharT> __truename = __np.truename();
612 const basic_string<_CharT> __falsename = __np.falsename();
613 bool __true_ok = true;
614 bool __false_ok = true;
617 for ( ; __stl_in != __end; ++__stl_in) {
618 _CharT __c = *__stl_in;
619 __true_ok = __true_ok && (__c == __truename[__n]);
620 __false_ok = __false_ok && (__c == __falsename[__n]);
623 if ((!__true_ok && !__false_ok) ||
624 (__true_ok && __n >= __truename.size()) ||
625 (__false_ok && __n >= __falsename.size())) {
627 if (__true_ok || __false_ok) //if anything OK then increment, else, break
632 // stdcxx fix, Changed to check for complete true,false string
633 if (__true_ok && __n < __truename.size())
635 for ( ; __stl_in != __end; ++__stl_in) {
636 _CharT __c = *__stl_in;
637 __true_ok = __true_ok && (__c == __truename[__n]);
639 if ((!__true_ok) ||(__true_ok && __n >= __truename.size()) )
647 if (__true_ok && __n < __truename.size())
650 if (__false_ok && __n < __falsename.size())
653 for ( ; __stl_in != __end; ++__stl_in) {
654 _CharT __c = *__stl_in;
655 __false_ok = __false_ok && (__c == __falsename[__n]);
657 if ((!__false_ok) ||(__false_ok && __n >= __falsename.size()) )
665 if (__false_ok && __n < __falsename.size())
669 if (__true_ok || __false_ok) {
670 __err = ios_base::goodbit;
674 __err = ios_base::failbit;
676 if (__stl_in == __end)
677 __err |= ios_base::eofbit;
684 _InputIter __tmp = this->do_get(__stl_in, __end, __s, __err, __lx);
685 if (!(__err & ios_base::failbit)) {
691 __err |= ios_base::failbit;
697 # endif /* _STLP_NO_BOOL */
699 //# ifdef _STLP_FIX_LIBRARY_ISSUES
700 template <class _CharT, class _InputIter>
702 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
703 ios_base::iostate& __err, short& __val) const {
704 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
707 template <class _CharT, class _InputIter>
709 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
710 ios_base::iostate& __err, int& __val) const {
711 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
716 template <class _CharT, class _InputIter>
718 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
719 ios_base::iostate& __err, long& __val) const {
720 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
723 template <class _CharT, class _InputIter>
725 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
726 ios_base::iostate& __err,
727 unsigned short& __val) const {
728 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
731 template <class _CharT, class _InputIter>
733 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
734 ios_base::iostate& __err,
735 unsigned int& __val) const {
736 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
739 template <class _CharT, class _InputIter>
741 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
742 ios_base::iostate& __err,
743 unsigned long& __val) const {
744 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
748 template <class _CharT, class _InputIter>
750 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
751 ios_base::iostate& __err,
752 float& __val) const {
754 bool __ok = _M_read_float(__buf, __stl_in, __end, __str, (_CharT*)0 );
755 if(__ok) //If success reading float then convert it.
759 __ok = __string_to_float(__buf, __tval);
763 __string_to_float(__buf, __val);
766 __err = __STATIC_CAST(ios_base::iostate, __ok ? ios_base::goodbit : ios_base::failbit);
767 if (__stl_in == __end)
768 __err |= ios_base::eofbit;
772 template <class _CharT, class _InputIter>
774 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
775 ios_base::iostate& __err,
776 double& __val) const {
778 bool __ok = _M_read_float(__buf, __stl_in, __end, __str, (_CharT*)0 );
779 if(__ok) //If success reading float then convert it.
783 __ok = __string_to_float(__buf, __tval);
787 __string_to_float(__buf, __val);
790 __err = __STATIC_CAST(ios_base::iostate, __ok ? ios_base::goodbit : ios_base::failbit);
791 if (__stl_in == __end)
792 __err |= ios_base::eofbit;
796 #ifndef _STLP_NO_LONG_DOUBLE
797 template <class _CharT, class _InputIter>
799 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
800 ios_base::iostate& __err,
801 long double& __val) const {
803 bool __ok = _M_read_float(__buf, __stl_in, __end, __str, (_CharT*)0 );
804 if(__ok) //If success reading float then convert it.
808 __ok = __string_to_float(__buf, __tval);
812 __string_to_float(__buf, __val);
815 __err = __STATIC_CAST(ios_base::iostate, __ok ? ios_base::goodbit : ios_base::failbit);
816 if (__stl_in == __end)
817 __err |= ios_base::eofbit;
820 #endif /* _STLP_NO_LONG_DOUBLE */
822 template <class _CharT, class _InputIter>
824 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
825 ios_base::iostate& __err,
828 unsigned long __val; //using only long
830 # if defined(_STLP_LONG_LONG)&&!defined(__MRC__) //*ty 12/07/2001 - MrCpp can not cast from long long to void*
831 unsigned _STLP_LONG_LONG __val;
835 #endif //__SYMBIAN32__
837 ios_base::fmtflags __save_flags = __str.flags();
839 __str.setf(ios_base::hex, ios_base::basefield);
840 __str.setf(ios_base::showbase);
841 __str.setf(ios_base::internal, ios_base::adjustfield);
842 __str.width((sizeof(void*) * 2) + 2);
843 #endif // __SYMBIAN32__
844 iter_type __tmp = _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
845 if (!(__err & ios_base::failbit))
846 __p = __REINTERPRET_CAST(void*,(long)__val);
848 __str.flags(__save_flags);
849 #endif //__SYMBIAN32__
854 #ifdef _STLP_LONG_LONG
856 template <class _CharT, class _InputIter>
858 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
859 ios_base::iostate& __err,
860 _STLP_LONG_LONG& __val) const {
861 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
864 template <class _CharT, class _InputIter>
866 num_get<_CharT, _InputIter>::do_get(_InputIter __stl_in, _InputIter __end, ios_base& __str,
867 ios_base::iostate& __err,
868 unsigned _STLP_LONG_LONG& __val) const {
869 return _M_do_get_integer(__stl_in, __end, __str, __err, __val, (_CharT*)0 );
872 #endif /* _STLP_LONG_LONG */
876 # endif /* _STLP_EXPOSE_STREAM_IMPLEMENTATION */
878 #endif /* _STLP_NUMERIC_FACETS_C */