From owner-freebsd-hackers Tue Jul 10 4:59:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hamster.franken.de (hamster.franken.de [193.141.110.13]) by hub.freebsd.org (Postfix) with ESMTP id 6C2E837B401 for ; Tue, 10 Jul 2001 04:59:30 -0700 (PDT) (envelope-from tanis@gaspode.franken.de) Received: from karnickel.franken.de (karnickel.franken.de [193.141.110.11]) by hamster.franken.de (8.11.1/8.11.1) with ESMTP id f6ABxRo32772; Tue, 10 Jul 2001 13:59:27 +0200 (CEST) (envelope-from tanis@gaspode.franken.de) Received: from gaspode.franken.de (lengfeld.core.main.franken.de [193.141.110.4]) by karnickel.franken.de (8.11.3/8.11.3) with ESMTP id f6ABxR249149; Tue, 10 Jul 2001 13:59:27 +0200 (CEST) (envelope-from tanis@gaspode.franken.de) Received: (from tanis@localhost) by gaspode.franken.de (8.11.3/8.11.1) id f6ABxRv01590; Tue, 10 Jul 2001 13:59:27 +0200 (CEST) (envelope-from tanis) Date: Tue, 10 Jul 2001 13:59:27 +0200 From: German Tischler To: Volker Sturm Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: g++ and substring extraction Message-ID: <20010710135927.A1576@gaspode.franken.de> References: <000201c1092c$f05f4130$0100a8c0@volker> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.2.5-current-20010403i In-Reply-To: <000201c1092c$f05f4130$0100a8c0@volker>; from v.sturm@gmx.de on Tue, Jul 10, 2001 at 12:41:55PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 10, 2001 at 12:41:55PM +0200, Volker Sturm wrote: > Hi, > I am using g++ 2.95.3 on 4.3-STABLE. I want to do some string operations > in one > of my functions. The manual for g++ says that there are member functions > like > somestring.before(i); or > somestring.at(0, i); Did you try the substr method ? For example string s2 = s1.substr(pos,length); --gt --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO0ruHr7hO6NLB/FvAQG4/gf/f56G3AExH+st5wDAUF6C+u4rjbTMJClt /KhkFX0jz5Hyy4hU6oAOIGOZnCqEuJJkIufU0FVdd4I1Fv+bWr3Ue5dbGv9NB+Ic dyTEpOaKGLmYs+ixGY81wXtn4GQJYrZZ0Xjm56+rC99EU2kPuQcmsDa8aij0UyYp N9QqxKZIwxgkWvZQ+Z1ce6eztMmkJCFUdMFsREIASzfO58u+nToNlYtC4AhXOmt5 pXDxlioIRnE5io07rSKp+ILgiALQ8ElpxBOYfGqk0ZPBWKZwkRAoAs5joqFzlCTF 1tPgRw+zt3K8QU8mK1zPGQODfqcWer9O0WjgA9RGBz6pg/f5v4of+Q== =scMl -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message