From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15645 invoked by alias); 30 Jun 2015 23:24:40 -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 15626 invoked by uid 89); 30 Jun 2015 23:24:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-yk0-f169.google.com Received: from mail-yk0-f169.google.com (HELO mail-yk0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 30 Jun 2015 23:24:34 +0000 Received: by ykdv136 with SMTP id v136so24007748ykd.0 for ; Tue, 30 Jun 2015 16:24:31 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.170.154.212 with SMTP id v203mr28828188ykc.0.1435706671737; Tue, 30 Jun 2015 16:24:31 -0700 (PDT) Received: by 10.37.17.201 with HTTP; Tue, 30 Jun 2015 16:24:31 -0700 (PDT) In-Reply-To: <76E10177FB2B41508BFB693CE76AF944@ArbolOneLT> References: <76E10177FB2B41508BFB693CE76AF944@ArbolOneLT> Date: Tue, 30 Jun 2015 23:24:00 -0000 Message-ID: Subject: Re: [Mingw-w64-public] toUpper() From: Riot To: mingw-w64-public@lists.sourceforge.net Cc: gcc-help Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-06/txt/msg00191.txt.bz2 #include #include std::string str =3D "Hello World"; std::transform(str.begin(), str.end(), str.begin(), std::toupper); See also: http://www.cplusplus.com/reference/locale/toupper/ This may also help in future: http://lmgtfy.com/?q=3Dc%2B%2B+toupper -Riot 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(...)? > > Thanks in advance > > > --- > This email has been checked for viruses by Avast antivirus software. > http://www.avast.com > > > -------------------------------------------------------------------------= ----- > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public