Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 55635 invoked from network); 24 Jul 2007 13:05:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 13:05:53 -0000 Received: (qmail 94838 invoked by uid 500); 24 Jul 2007 13:05:55 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 94815 invoked by uid 500); 24 Jul 2007 13:05:54 -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 94800 invoked by uid 99); 24 Jul 2007 13:05:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 06:05:54 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 06:05:52 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 8C66C1A981A; Tue, 24 Jul 2007 06:05:32 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r559037 - /incubator/stdcxx/trunk/include/string.cc Date: Tue, 24 Jul 2007 13:05:32 -0000 To: stdcxx-commits@incubator.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070724130532.8C66C1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Tue Jul 24 06:05:31 2007 New Revision: 559037 URL: http://svn.apache.org/viewvc?view=rev&rev=559037 Log: 2007-07-24 Farid Zaripov STDCXX-466 * string.cc (find_first_of): Don't throw std::length_error() if n > max_size(). (find_first_of): Ditto. (find_last_of): Ditto. (find_first_not_of): Ditto. (find_last_not_of): Ditto. Modified: incubator/stdcxx/trunk/include/string.cc Modified: incubator/stdcxx/trunk/include/string.cc URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/string.cc?view=diff&rev=559037&r1=559036&r2=559037 ============================================================================== --- incubator/stdcxx/trunk/include/string.cc (original) +++ incubator/stdcxx/trunk/include/string.cc Tue Jul 24 06:05:31 2007 @@ -776,12 +776,6 @@ { _RWSTD_ASSERT(__s != 0); - _RWSTD_REQUIRES (__n <= max_size (), - (_RWSTD_ERROR_LENGTH_ERROR, - _RWSTD_FUNC ("basic_string::find_first_of(const_pointer, " - "size_type, size_type) const"), - __n, max_size ())); - for (size_type __xpos = __pos; __xpos < size() ; __xpos++) { for (size_type __i = 0; __i < __n ; __i++) @@ -800,12 +794,6 @@ { _RWSTD_ASSERT(__s != 0); - _RWSTD_REQUIRES (__n <= max_size (), - (_RWSTD_ERROR_LENGTH_ERROR, - _RWSTD_FUNC ("basic_string::find_last_of(const_pointer, " - "size_type, size_type) const"), - __n, max_size ())); - if (size()) { size_type __slen = size() -1; @@ -828,12 +816,6 @@ { _RWSTD_ASSERT(__s != 0); - _RWSTD_REQUIRES (__n <= max_size (), - (_RWSTD_ERROR_LENGTH_ERROR, - _RWSTD_FUNC ("basic_string::find_first_not_of(" - "const_pointer, size_type, size_type) const"), - __n, max_size ())); - for (size_type __xpos = __pos; __xpos < size() ; __xpos++) { bool __found = false; @@ -860,12 +842,6 @@ { _RWSTD_ASSERT(__s != 0); - _RWSTD_REQUIRES (__n <= max_size (), - (_RWSTD_ERROR_LENGTH_ERROR, - _RWSTD_FUNC ("basic_string::find_last_not_of(" - "const_pointer, size_type, size_type) const"), - __n, max_size ())); - if (size()) { size_type __slen = size() -1;