Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 81265 invoked from network); 16 Jul 2006 22:50:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jul 2006 22:50:16 -0000 Received: (qmail 11164 invoked by uid 500); 16 Jul 2006 22:50:16 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 11150 invoked by uid 500); 16 Jul 2006 22:50:16 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 11138 invoked by uid 99); 16 Jul 2006 22:50:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 15:50:15 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 15:50:15 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id D54741A981A; Sun, 16 Jul 2006 15:49:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r422560 - in /incubator/stdcxx/trunk/tests: include/rw_ctype.h src/ctype.cpp Date: Sun, 16 Jul 2006 22:49:48 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060716224948.D54741A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 * 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:: -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:: +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:: +UserCtype (size_t refs /* = 0 */) + : Base (refs), UserCtypeBase ("wchar_t") +{ + chars_ = 0; + masks_ = _rw_char_masks; +} + + +UserCtype:: UserCtype (const int *chars, const int *masks, size_t refs) : Base (refs), UserCtypeBase ("wchar_t") { @@ -1270,7 +1289,7 @@ ctype:: -ctype (size_t refs) +ctype (size_t refs /* = 0 */) : Base (refs), UserCtypeBase ("UserChar") { masks_ = _rw_char_masks; @@ -1279,7 +1298,7 @@ ctype:: -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:: +UserCtype (size_t refs /* = 0 */) + : Base (refs) +{ + chars_ = 0; + masks_ = _rw_char_masks; +} + UserCtype:: UserCtype (const int *chars, const int *masks, size_t refs)