STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
_Locinfo Class Reference

Public Types

typedef ::_Collvec _Collvec
 
typedef ::_Ctypevec _Ctypevec
 
typedef ::_Cvtvec _Cvtvec
 
typedef _STD _Timevec _Timevec
 

Public Member Functions

__CLR_OR_THIS_CALL _Locinfo (const char *_Pch="C")
 
__CLR_OR_THIS_CALL _Locinfo (int _Cat, const char *_Pch)
 
__CLR_OR_THIS_CALL ~_Locinfo () _NOEXCEPT
 
_Locinfo &__CLR_OR_THIS_CALL _Addcats (int _Cat, const char *_Pch)
 
const char *__CLR_OR_THIS_CALL _Getname () const
 
_Collvec __CLR_OR_THIS_CALL _Getcoll () const
 
_Ctypevec __CLR_OR_THIS_CALL _Getctype () const
 
_Cvtvec __CLR_OR_THIS_CALL _Getcvt () const
 
const lconv *__CLR_OR_THIS_CALL _Getlconv () const
 
_Timevec __CLR_OR_THIS_CALL _Gettnames () const
 
const char *__CLR_OR_THIS_CALL _Getdays () const
 
const char *__CLR_OR_THIS_CALL _Getmonths () const
 
const char *__CLR_OR_THIS_CALL _Getfalse () const
 
const char *__CLR_OR_THIS_CALL _Gettrue () const
 
int __CLR_OR_THIS_CALL _Getdateorder () const
 
_Timevec __CLR_OR_THIS_CALL _W_Gettnames () const
 
const unsigned short *__CLR_OR_THIS_CALL _W_Getdays () const
 
const unsigned short *__CLR_OR_THIS_CALL _W_Getmonths () const
 
 _Locinfo (const _Locinfo &)=delete
 
_Locinfooperator= (const _Locinfo &)=delete
 

Static Public Member Functions

static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_ctor (_Locinfo *, const char *)
 
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_ctor (_Locinfo *, int, const char *)
 
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_dtor (_Locinfo *)
 
static _MRTIMP2_PURE_NPURE _Locinfo &__CLRCALL_PURE_OR_CDECL _Locinfo_Addcats (_Locinfo *, int, const char *)
 

Private Attributes

_Lockit _Lock
 
_Yarn< char > _Days
 
_Yarn< char > _Months
 
_Yarn< wchar_t_W_Days
 
_Yarn< wchar_t_W_Months
 
_Yarn< char > _Oldlocname
 
_Yarn< char > _Newlocname
 

Member Typedef Documentation

Constructor & Destructor Documentation

__CLR_OR_THIS_CALL _Locinfo::_Locinfo ( const char *  _Pch = "C")
inline
74  #endif /* _M_CEE */
75 
76  { // construct from NTBS
77  if (_Pch == 0)
78  _THROW_NCEE(runtime_error, "bad locale name");
79  _Locinfo_ctor(this, _Pch);
80  }
Definition: stdexcept:165
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_ctor(_Locinfo *, const char *)
_Lockit _Lock
Definition: xlocinfo:225
#define _THROW_NCEE(x, y)
Definition: xstddef:79
#define _LOCK_LOCALE
Definition: yvals.h:612
__CLR_OR_THIS_CALL _Locinfo::_Locinfo ( int  _Cat,
const char *  _Pch 
)
inline
85  #endif /* _M_CEE */
86 
87  { // construct from category mask and NTBS
88  if (_Pch == 0)
89  _THROW_NCEE(runtime_error, "bad locale name");
90  _Locinfo_ctor(this, _Cat, _Pch);
91  }
Definition: stdexcept:165
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_ctor(_Locinfo *, const char *)
_Lockit _Lock
Definition: xlocinfo:225
#define _THROW_NCEE(x, y)
Definition: xstddef:79
#define _LOCK_LOCALE
Definition: yvals.h:612
__CLR_OR_THIS_CALL _Locinfo::~_Locinfo ( )
inline
94  { // destroy the object
95  _Locinfo_dtor(this);
96  }
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo_dtor(_Locinfo *)
_Locinfo::_Locinfo ( const _Locinfo )
delete

Member Function Documentation

_Locinfo& __CLR_OR_THIS_CALL _Locinfo::_Addcats ( int  _Cat,
const char *  _Pch 
)
inline
99  { // add facets matching category mask and NTBS
100  if (_Pch == 0)
101  _THROW_NCEE(runtime_error, "bad locale name");
102  return (_Locinfo_Addcats(this, _Cat, _Pch));
103  }
Definition: stdexcept:165
static _MRTIMP2_PURE_NPURE _Locinfo &__CLRCALL_PURE_OR_CDECL _Locinfo_Addcats(_Locinfo *, int, const char *)
#define _THROW_NCEE(x, y)
Definition: xstddef:79
_Collvec __CLR_OR_THIS_CALL _Locinfo::_Getcoll ( ) const
inline
111  { // return collation stuff
112  return (::_Getcoll());
113  }
_Collvec __CLR_OR_THIS_CALL _Getcoll() const
Definition: xlocinfo:110
_Ctypevec __CLR_OR_THIS_CALL _Locinfo::_Getctype ( ) const
inline
116  { // return ctype stuff
117  return (::_Getctype());
118  }
_Ctypevec __CLR_OR_THIS_CALL _Getctype() const
Definition: xlocinfo:115
_Cvtvec __CLR_OR_THIS_CALL _Locinfo::_Getcvt ( ) const
inline
121  { // return codecvt stuff
122  return (::_Getcvt());
123  }
_Cvtvec __CLR_OR_THIS_CALL _Getcvt() const
Definition: xlocinfo:120
int __CLR_OR_THIS_CALL _Locinfo::_Getdateorder ( ) const
inline
176  { // return date order
177  return (::_Getdateorder());
178  }
int __CLR_OR_THIS_CALL _Getdateorder() const
Definition: xlocinfo:175
const char* __CLR_OR_THIS_CALL _Locinfo::_Getdays ( ) const
inline
136  { // return names for weekdays
137  const char *_Ptr = ::_Getdays();
138 
139  if (_Ptr != 0)
140  { // capture names and free allocated C string
141  ((_Locinfo *)this)->_Days = _Ptr;
142  free((void *)_Ptr);
143  }
144  return (!_Days._Empty() ? _Days._C_str()
145  : ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:Wednesday"
146  ":Thu:Thursday:Fri:Friday:Sat:Saturday");
147  }
_Yarn< char > _Days
Definition: xlocinfo:228
Definition: xlocinfo:54
_CRTIMP _CRTNOALIAS void __cdecl free(_Pre_maybenull_ _Post_invalid_ void *_Memory)
const _Elem *__CLR_OR_THIS_CALL _C_str() const
Definition: xutility:3406
bool __CLR_OR_THIS_CALL _Empty() const
Definition: xutility:3401
const char *__CLR_OR_THIS_CALL _Getdays() const
Definition: xlocinfo:135
const char* __CLR_OR_THIS_CALL _Locinfo::_Getfalse ( ) const
inline
166  { // return false name (no C source)
167  return ("false");
168  }
const lconv* __CLR_OR_THIS_CALL _Locinfo::_Getlconv ( ) const
inline
126  { // return localeconv stuff
127  return (localeconv());
128  }
_Check_return_opt_ _CRTIMP struct lconv *__cdecl localeconv(void)
const char* __CLR_OR_THIS_CALL _Locinfo::_Getmonths ( ) const
inline
150  { // return names for months
151  const char *_Ptr = ::_Getmonths();
152 
153  if (_Ptr != 0)
154  { // capture names and free allocated C string
155  ((_Locinfo *)this)->_Months = _Ptr;
156  free((void *)_Ptr);
157  }
158  return (!_Months._Empty() ? _Months._C_str()
159  : ":Jan:January:Feb:February:Mar:March"
160  ":Apr:April:May:May:Jun:June"
161  ":Jul:July:Aug:August:Sep:September"
162  ":Oct:October:Nov:November:Dec:December");
163  }
Definition: xlocinfo:54
_CRTIMP _CRTNOALIAS void __cdecl free(_Pre_maybenull_ _Post_invalid_ void *_Memory)
const char *__CLR_OR_THIS_CALL _Getmonths() const
Definition: xlocinfo:149
const _Elem *__CLR_OR_THIS_CALL _C_str() const
Definition: xutility:3406
bool __CLR_OR_THIS_CALL _Empty() const
Definition: xutility:3401
_Yarn< char > _Months
Definition: xlocinfo:229
const char* __CLR_OR_THIS_CALL _Locinfo::_Getname ( ) const
inline
106  { // return the new locale name
107  return (_Newlocname._C_str());
108  }
const _Elem *__CLR_OR_THIS_CALL _C_str() const
Definition: xutility:3406
_Yarn< char > _Newlocname
Definition: xlocinfo:233
_Timevec __CLR_OR_THIS_CALL _Locinfo::_Gettnames ( ) const
inline
131  { // return names used by _Strftime
132  return (_Timevec(::_Gettnames()));
133  }
_Timevec __CLR_OR_THIS_CALL _Gettnames() const
Definition: xlocinfo:130
_STD _Timevec _Timevec
Definition: xlocinfo:60
const char* __CLR_OR_THIS_CALL _Locinfo::_Gettrue ( ) const
inline
171  { // return true name (no C source)
172  return ("true");
173  }
static _MRTIMP2_PURE_NPURE _Locinfo& __CLRCALL_PURE_OR_CDECL _Locinfo::_Locinfo_Addcats ( _Locinfo ,
int  ,
const char *   
)
static
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo::_Locinfo_ctor ( _Locinfo ,
const char *   
)
static
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo::_Locinfo_ctor ( _Locinfo ,
int  ,
const char *   
)
static
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Locinfo::_Locinfo_dtor ( _Locinfo )
static
const unsigned short* __CLR_OR_THIS_CALL _Locinfo::_W_Getdays ( ) const
inline
186  { // return names for weekdays
187  const wchar_t *_Ptr = ::_W_Getdays();
188 
189  if (_Ptr != 0)
190  { // capture names and free allocated C string
191  ((_Locinfo *)this)->_W_Days = _Ptr;
192  free((void *)_Ptr);
193  }
194  return ((const unsigned short *)(!_W_Days._Empty()
195  ? _W_Days._C_str()
196  : L":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:Wednesday"
197  L":Thu:Thursday:Fri:Friday:Sat:Saturday"));
198  }
Definition: xlocinfo:54
_CRTIMP _CRTNOALIAS void __cdecl free(_Pre_maybenull_ _Post_invalid_ void *_Memory)
const unsigned short *__CLR_OR_THIS_CALL _W_Getdays() const
Definition: xlocinfo:185
const _Elem *__CLR_OR_THIS_CALL _C_str() const
Definition: xutility:3406
_Yarn< wchar_t > _W_Days
Definition: xlocinfo:230
bool __CLR_OR_THIS_CALL _Empty() const
Definition: xutility:3401
const unsigned short* __CLR_OR_THIS_CALL _Locinfo::_W_Getmonths ( ) const
inline
201  { // return names for months
202  const wchar_t *_Ptr = ::_W_Getmonths();
203 
204  if (_Ptr != 0)
205  { // capture names and free allocated C string
206  ((_Locinfo *)this)->_W_Months = _Ptr;
207  free((void *)_Ptr);
208  }
209  return ((const unsigned short *)(!_W_Months._Empty()
210  ? _W_Months._C_str()
211  : L":Jan:January:Feb:February:Mar:March"
212  L":Apr:April:May:May:Jun:June"
213  L":Jul:July:Aug:August:Sep:September"
214  L":Oct:October:Nov:November:Dec:December"));
215  }
Definition: xlocinfo:54
_CRTIMP _CRTNOALIAS void __cdecl free(_Pre_maybenull_ _Post_invalid_ void *_Memory)
const _Elem *__CLR_OR_THIS_CALL _C_str() const
Definition: xutility:3406
_Yarn< wchar_t > _W_Months
Definition: xlocinfo:231
bool __CLR_OR_THIS_CALL _Empty() const
Definition: xutility:3401
const unsigned short *__CLR_OR_THIS_CALL _W_Getmonths() const
Definition: xlocinfo:200
_Timevec __CLR_OR_THIS_CALL _Locinfo::_W_Gettnames ( ) const
inline
181  { // return names used by _Wcsftime
182  return (_Timevec(::_W_Gettnames()));
183  }
_STD _Timevec _Timevec
Definition: xlocinfo:60
_Timevec __CLR_OR_THIS_CALL _W_Gettnames() const
Definition: xlocinfo:180
_Locinfo& _Locinfo::operator= ( const _Locinfo )
delete

Member Data Documentation

_Yarn<char> _Locinfo::_Days
private
_Lockit _Locinfo::_Lock
private
_Yarn<char> _Locinfo::_Months
private
_Yarn<char> _Locinfo::_Newlocname
private
_Yarn<char> _Locinfo::_Oldlocname
private
_Yarn<wchar_t> _Locinfo::_W_Days
private
_Yarn<wchar_t> _Locinfo::_W_Months
private

The documentation for this class was generated from the following file: