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

Get The C++ Programming Language, Special Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.