From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71781 invoked by alias); 1 Jul 2015 10:09:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 71772 invoked by uid 89); 1 Jul 2015 10:09:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f54.google.com Received: from mail-qg0-f54.google.com (HELO mail-qg0-f54.google.com) (209.85.192.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 01 Jul 2015 10:09:30 +0000 Received: by qget71 with SMTP id t71so16120414qge.2 for ; Wed, 01 Jul 2015 03:09:28 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.149.208 with SMTP id 199mr33417218qhv.72.1435745368040; Wed, 01 Jul 2015 03:09:28 -0700 (PDT) Received: by 10.140.43.102 with HTTP; Wed, 1 Jul 2015 03:09:27 -0700 (PDT) In-Reply-To: <76E10177FB2B41508BFB693CE76AF944@ArbolOneLT> References: <76E10177FB2B41508BFB693CE76AF944@ArbolOneLT> Date: Wed, 01 Jul 2015 10:09:00 -0000 Message-ID: Subject: Re: toUpper() From: Jonathan Wakely To: papa@arbolone.ca Cc: MinGW-64 Mailinglist , gcc-help Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00005.txt.bz2 On 30 June 2015 at 23:58, wrote: > I would like to write a function to capitalize letters, say... > std::wstring toUpper(const std::wstring wstr){ > for ( auto it =3D wstr.begin(); it !=3D wstr.end(); ++it){ > global_wapstr.append(std::towupper(&it)); > > } > } > > This doesn=E2=80=99t work, but doesn=E2=80=99t the standard already have = something like > std::wstring::toUpper(...)? This is not a question about using GCC, it's about general C++ programming, so is inappropriate for the gcc-help list. See https://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html#std.string= s.string for some more information on the points Martin made.