O'Reilly logo

The C++ Programming Language, Special Edition by New Jersey Stroustrup Bjarne AT&T Labs Murray Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Strings

 

Prefer the standard to the offbeat.

 
 --Strunk & White

Stringscharacterschar_traitsbasic_stringiteratorselement accessconstructorserror handlingassignmentconversionscomparisonsinsertionconcatenationfind and replacesize and capacitystring I/OC-style stringscharacter classificationC library functionsadviceexercises.

Introduction

A string is a sequence of characters. The standard library string provides string manipulation operations such as subscripting (§20.3.3), assignment (§20.3.6), comparison (§20.3.8), appending (§20.3.9), concatenation (§20.3.10), and searching for substrings (§20.3.11). No general substring facility is provided by the standard, so one is provided ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required