1415 size_t _Prefix = 0 <
_Count && (*
_Buf ==
'+' || *_Buf ==
'-')
1424 if (_Prefix + 2 <=
_Count && _Buf[_Prefix] ==
'0'
1425 && (_Buf[_Prefix + 1] ==
'x' || _Buf[_Prefix + 1] ==
'X'))
1428 const size_t _Eoff =
1429 _CSTD strcspn(&_Buf[0], _Exps);
1430 char _Dp[2] = {
"."};
1431 _Dp[0] =
_CSTD localeconv()->decimal_point[0];
1432 const size_t _Poff =
1433 _CSTD strcspn(&_Buf[0], &_Dp[0]);
1438 _Ctype_fac.
widen(&_Buf[0], &_Buf[
_Count], &_Groupstring[0]);
1441 const string _Grouping = _Punct_fac.grouping();
1442 const _Elem _Kseparator = _Punct_fac.thousands_sep();
1444 if (_Poff != _Count)
1445 _Groupstring[_Poff] = _Punct_fac.decimal_point();
1447 size_t _Off = _Poff == _Count ? _Eoff : _Poff;
1448 const char *_Pg = &_Grouping[0];
1449 while (*_Pg !=
CHAR_MAX &&
'\0' < *_Pg
1450 && (
size_t)*_Pg < _Off - _Prefix)
1452 _Groupstring.insert(_Off -= *_Pg, (
size_t)1, _Kseparator);
1457 _Count = _Groupstring.size();
1458 size_t _Fillcount = _Iosbase.
width() <= 0
1462 ios_base::fmtflags _Adjustfield =
1467 _Dest =
_Rep(_Dest, _Fill, _Fillcount);
1469 _Dest =
_Put(_Dest, &_Groupstring[0], _Prefix);
1473 _Dest =
_Put(_Dest, &_Groupstring[0], _Prefix);
1474 _Dest =
_Rep(_Dest, _Fill, _Fillcount);
1478 _Dest =
_Put(_Dest, &_Groupstring[0], _Prefix);
1480 _Dest =
_Put(_Dest, &_Groupstring[_Prefix], _Count - _Prefix);
1482 return (
_Rep(_Dest, _Fill, _Fillcount));
unsigned int _Count
Definition: xcomplex:668
numpunct< _Elem > _Mypunct
Definition: xlocnum:1162
#define _USE(loc, fac)
Definition: xlocale:547
locale __CLR_OR_THIS_CALL getloc() const
Definition: xiosbase:433
unsigned int size_t
Definition: sourceannotations.h:19
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
_OutIt __CLRCALL_OR_CDECL _Rep(_OutIt _Dest, _Elem _Ch, size_t _Count) const
Definition: xlocnum:1581
#define _DEBUG_POINTER(first)
Definition: xutility:819
static constexpr _Fmtflags internal
Definition: xiosbase:64
static constexpr _Fmtflags floatfield
Definition: xiosbase:80
_Elem __CLR_OR_THIS_CALL widen(char _Byte) const
Definition: xlocale:2164
_OutIt __CLRCALL_OR_CDECL _Put(_OutIt _Dest, const _Elem *_Ptr, size_t _Count) const
Definition: xlocnum:1573
static constexpr _Fmtflags hexfloat
Definition: xiosbase:71
#define CHAR_MAX
Definition: limits.h:24
basic_string< _Elem, char_traits< _Elem >, allocator< _Elem > > _Mystr
Definition: xlocnum:1164
#define _CSTD
Definition: yvals.h:570
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
static constexpr _Fmtflags left
Definition: xiosbase:62