STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
xlocnum File Reference
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <streambuf>

Classes

class  numpunct< _Elem >
 
class  numpunct_byname< _Elem >
 
class  num_get< _Elem, _InIt >
 
class  num_put< _Elem, _OutIt >
 

Macros

#define _XLOCNUM_
 
#define _ENABLE_V2_BEHAVIOR   1000000000
 
#define _FLOATING_BUFFER_SIZE   (_MAX_EXP_DIG + _MAX_SIG_DIG_V2 + 16)
 

Functions

_C_LIB_DECL _CRTIMP2_PURE float __CLRCALL_PURE_OR_CDECL _Stofx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, long, int *)
 
_CRTIMP2_PURE double __CLRCALL_PURE_OR_CDECL _Stodx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, long, int *)
 
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _Stoldx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, long, int *)
 
_CRTIMP2_PURE long __CLRCALL_PURE_OR_CDECL _Stolx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, int, int *)
 
_CRTIMP2_PURE unsigned long __CLRCALL_PURE_OR_CDECL _Stoulx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, int, int *)
 
_CRTIMP2_PURE _LONGLONG __CLRCALL_PURE_OR_CDECL _Stollx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, int, int *)
 
_CRTIMP2_PURE _ULONGLONG __CLRCALL_PURE_OR_CDECL _Stoullx (const char *, _Out_opt_ _Deref_post_opt_valid_ char **, int, int *)
 
_END_C_LIB_DECL _STD_BEGIN double _Stodx_v2 (const char *_Str, char **_Endptr, int _Pten, int *_Perr)
 
float _Stofx_v2 (const char *_Str, char **_Endptr, int _Pten, int *_Perr)
 
template<class _Elem >
size_t _Find_elem (_Elem *_Base, _Elem _Ch)
 
wchar_t_Maklocwcs (const wchar_t *_Ptr)
 

Macro Definition Documentation

#define _ENABLE_V2_BEHAVIOR   1000000000
#define _FLOATING_BUFFER_SIZE   (_MAX_EXP_DIG + _MAX_SIG_DIG_V2 + 16)
#define _XLOCNUM_

Function Documentation

template<class _Elem >
size_t _Find_elem ( _Elem *  _Base,
_Elem  _Ch 
)
inline
90  { // lookup _Ch in NUL-terminated string _Base
91  _Elem *_Ptr = _Base;
92  for (; *_Ptr != (_Elem)0 && *_Ptr != _Ch; ++_Ptr)
93  ;
94  return ((size_t)(_Ptr - _Base));
95  }
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
wchar_t* _Maklocwcs ( const wchar_t _Ptr)
inline
98  { // copy NTWCS to allocated storage
99  size_t _Count = _CSTD wcslen(_Ptr) + 1;
100 
101  wchar_t *_Ptrdest = (wchar_t *)_calloc_dbg(_Count, sizeof (wchar_t),
102  _CRT_BLOCK, __FILE__, __LINE__);
103 
104  if (!_Ptrdest)
105  _Xbad_alloc();
106  _CSTD wmemcpy(_Ptrdest, _Ptr, _Count);
107  return (_Ptrdest);
108  }
unsigned int _Count
Definition: xcomplex:668
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xbad_alloc()
#define _CSTD
Definition: yvals.h:570
_CRTIMP2_PURE double __CLRCALL_PURE_OR_CDECL _Stodx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
long  ,
int *   
)
_END_C_LIB_DECL _STD_BEGIN double _Stodx_v2 ( const char *  _Str,
char **  _Endptr,
int  _Pten,
int *  _Perr 
)
inline
55  { // convert string to double
56  int& _Errno_ref = errno; // Nonzero cost, pay it once
57  const int _Orig = _Errno_ref;
58 
59  _Errno_ref = 0;
60  double _Val = _CSTD strtod(_Str, _Endptr);
61  *_Perr = _Errno_ref;
62  _Errno_ref = _Orig;
63 
64  if (_Pten != 0)
65  _Val *= _CSTD pow(10.0, static_cast<double>(_Pten));
66 
67  return (_Val);
68  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define errno
Definition: cerrno:18
#define _CSTD
Definition: yvals.h:570
float pow(float _X, float _Y) __GPU_ONLY
Calculates _X raised to the power of _Y
Definition: amp_math.h:898
_C_LIB_DECL _CRTIMP2_PURE float __CLRCALL_PURE_OR_CDECL _Stofx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
long  ,
int *   
)
float _Stofx_v2 ( const char *  _Str,
char **  _Endptr,
int  _Pten,
int *  _Perr 
)
inline
72  { // convert string to float
73  int& _Errno_ref = errno; // Nonzero cost, pay it once
74  const int _Orig = _Errno_ref;
75 
76  _Errno_ref = 0;
77  float _Val = _CSTD strtof(_Str, _Endptr);
78  *_Perr = _Errno_ref;
79  _Errno_ref = _Orig;
80 
81  if (_Pten != 0)
82  _Val *= _CSTD powf(10.0f, static_cast<float>(_Pten));
83 
84  return (_Val);
85  }
float powf(float _X, float _Y) __GPU_ONLY
Calculates _X raised to the power of _Y
Definition: amp_math.h:881
_In_ int _Val
Definition: vcruntime_string.h:62
#define errno
Definition: cerrno:18
#define _CSTD
Definition: yvals.h:570
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _Stoldx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
long  ,
int *   
)
_CRTIMP2_PURE _LONGLONG __CLRCALL_PURE_OR_CDECL _Stollx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
int  ,
int *   
)
_CRTIMP2_PURE long __CLRCALL_PURE_OR_CDECL _Stolx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
int  ,
int *   
)
_CRTIMP2_PURE _ULONGLONG __CLRCALL_PURE_OR_CDECL _Stoullx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
int  ,
int *   
)
_CRTIMP2_PURE unsigned long __CLRCALL_PURE_OR_CDECL _Stoulx ( const char *  ,
_Out_opt_ _Deref_post_opt_valid_ char **  ,
int  ,
int *   
)