stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r422560 - in /incubator/stdcxx/trunk/tests: include/rw_ctype.h src/ctype.cpp
Date Sun, 16 Jul 2006 22:49:48 GMT
Author: sebor
Date: Sun Jul 16 15:49:47 2006
New Revision: 422560

URL: http://svn.apache.org/viewvc?rev=422560&view=rev
Log:
2006-07-16  Martin Sebor  <sebor@roguewave.com>

	* rw_ctype.h (UserCtype, ctype): Added a ctor overload
	to all specializations.
	* 0.ctype.cpp: Defined the above.

Modified:
    incubator/stdcxx/trunk/tests/include/rw_ctype.h
    incubator/stdcxx/trunk/tests/src/ctype.cpp

Modified: incubator/stdcxx/trunk/tests/include/rw_ctype.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/include/rw_ctype.h?rev=422560&r1=422559&r2=422560&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/include/rw_ctype.h (original)
+++ incubator/stdcxx/trunk/tests/include/rw_ctype.h Sun Jul 16 15:49:47 2006
@@ -119,7 +119,10 @@
 public:
 
     explicit
-    UserCtype (const int* = 0, const int* = 0, _RWSTD_SIZE_T = 0);
+    UserCtype (_RWSTD_SIZE_T = 0);
+
+    explicit
+    UserCtype (const int*, const int*, _RWSTD_SIZE_T = 0);
 
 protected:
 
@@ -160,7 +163,10 @@
 public:
 
     explicit
-    UserCtype (const int* = 0, const int* = 0, _RWSTD_SIZE_T = 0);
+    UserCtype (_RWSTD_SIZE_T = 0);
+
+    explicit
+    UserCtype (const int*, const int*, _RWSTD_SIZE_T = 0);
 
 protected:
 
@@ -337,7 +343,10 @@
     typedef UserChar char_type;
 
     explicit
-    UserCtype (const int* = 0, const int* = 0, _RWSTD_SIZE_T = 0);
+    UserCtype (_RWSTD_SIZE_T = 0);
+
+    explicit
+    UserCtype (const int*, const int*, _RWSTD_SIZE_T = 0);
 };
 
 

Modified: incubator/stdcxx/trunk/tests/src/ctype.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/ctype.cpp?rev=422560&r1=422559&r2=422560&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/ctype.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/ctype.cpp Sun Jul 16 15:49:47 2006
@@ -599,7 +599,17 @@
 
 
 UserCtype<char>::
-UserCtype (const int *chars, const int *masks, size_t refs)
+UserCtype (size_t refs /* = 0 */)
+    : Base (0, false, refs),
+      UserCtypeBase ("char")
+{
+    chars_ = 0;
+    masks_ = _rw_char_masks;
+}
+
+
+UserCtype<char>::
+UserCtype (const int *chars, const int *masks, size_t refs /* = 0 */)
     : Base (_rw_make_mask_vec (chars, masks), true, refs),
       UserCtypeBase ("char")
 {
@@ -870,6 +880,15 @@
 #ifndef _RWSTD_NO_WCHAR_T
 
 UserCtype<wchar_t>::
+UserCtype (size_t refs /* = 0 */)
+    : Base (refs), UserCtypeBase ("wchar_t")
+{
+    chars_ = 0;
+    masks_ = _rw_char_masks;
+}
+
+
+UserCtype<wchar_t>::
 UserCtype (const int *chars, const int *masks, size_t refs)
     : Base (refs), UserCtypeBase ("wchar_t")
 {
@@ -1270,7 +1289,7 @@
 
 
 ctype<UserChar>::
-ctype (size_t refs)
+ctype (size_t refs /* = 0 */)
     : Base (refs), UserCtypeBase ("UserChar")
 {
     masks_ = _rw_char_masks;
@@ -1279,7 +1298,7 @@
 
 
 ctype<UserChar>::
-ctype (const int *chars, const int *masks, size_t refs)
+ctype (const int *chars, const int *masks, size_t refs /* = 0 */)
     : Base (refs), UserCtypeBase ("UserChar")
 {
     if (0 == masks) {
@@ -1671,6 +1690,15 @@
 }   // namespace std
 
 /**************************************************************************/
+
+UserCtype<UserChar>::
+UserCtype (size_t refs /* = 0 */)
+    : Base (refs)
+{
+    chars_ = 0;
+    masks_ = _rw_char_masks;
+}
+
 
 UserCtype<UserChar>::
 UserCtype (const int *chars, const int *masks, size_t refs)



Mime
View raw message