ReactOS  0.4.13-dev-687-g023794c
ios.cpp File Reference
#include "stlport_prefix.h"
#include <algorithm>
#include <ios>
#include <locale>
#include <ostream>
#include "aligned_buffer.h"
Include dependency graph for ios.cpp:

Go to the source code of this file.

Functions

template<class PODType >
static pair< PODType *, size_t_Stl_expand_array (PODType *__array, size_t N, int index)
 
template<class PODType >
static PODType * _Stl_copy_array (const PODType *__array, size_t N)
 

Variables

template class _STLP_CLASS_DECLSPEC basic_ios< char, char_traits< char > >
 
template class _STLP_CLASS_DECLSPEC basic_ios< wchar_t, char_traits< wchar_t > >
 

Function Documentation

◆ _Stl_copy_array()

template<class PODType >
static PODType* _Stl_copy_array ( const PODType *  __array,
size_t  N 
)
static

Definition at line 115 of file ios.cpp.

115  {
116  PODType* result = __STATIC_CAST(PODType*,malloc(N * sizeof(PODType)));
117  if (result)
118  copy(__array, __array + N, result);
119  return result;
120 }
#define __STATIC_CAST(__x, __y)
Definition: features.h:585
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51
#define malloc
Definition: debug_ros.c:4
GLuint64EXT * result
Definition: glext.h:11304

Referenced by ios_base::_M_copy_state().

◆ _Stl_expand_array()

template<class PODType >
static pair<PODType*, size_t> _Stl_expand_array ( PODType *  __array,
size_t  N,
int  index 
)
static

Definition at line 94 of file ios.cpp.

94  {
95  if ((int)N < index + 1) {
96  size_t new_N = (max)(2 * N, size_t(index + 1));
97  PODType* new_array
98  = __STATIC_CAST(PODType*,realloc(__array, new_N * sizeof(PODType)));
99  if (new_array) {
100  fill(new_array + N, new_array + new_N, PODType());
101  return pair<PODType*, size_t>(new_array, new_N);
102  }
103  else
104  return pair<PODType*, size_t>(__STATIC_CAST(PODType*,0), 0);
105  }
106  else
107  return pair<PODType*, size_t>(__array, N);
108 }
#define realloc
Definition: debug_ros.c:6
#define max(a, b)
Definition: svc.c:63
#define __STATIC_CAST(__x, __y)
Definition: features.h:585
GLuint index
Definition: glext.h:6031
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
Definition: _pair.h:47

Referenced by ios_base::iword(), ios_base::pword(), and ios_base::register_callback().

Variable Documentation

◆ basic_ios< char, char_traits< char > >

◆ basic_ios< wchar_t, char_traits< wchar_t > >