Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2001 13:59:27 +0200
From:      German Tischler <tanis@gaspode.franken.de>
To:        Volker Sturm <v.sturm@gmx.de>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: g++ and substring extraction
Message-ID:  <20010710135927.A1576@gaspode.franken.de>
In-Reply-To: <000201c1092c$f05f4130$0100a8c0@volker>; from v.sturm@gmx.de on Tue, Jul 10, 2001 at 12:41:55PM %2B0200
References:  <000201c1092c$f05f4130$0100a8c0@volker>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010710135927.A1576>