O'Reilly logo

The C++ Programming Language, Fourth Edition by Bjarne Stroustrup

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

36. Strings

Prefer the standard to the offbeat.

– Strunk & White

Introduction

Character Classification

Classification Functions; Character Traits

Strings

string vs. C-Style Strings; Constructors; Fundamental Operations; String I/O; Numeric Conversions; STL-like Operations; The find Family; Substrings

Advice

36.1. Introduction

The standard library offers character classification operations in <cctype>36.2), strings with associated operations in <string>36.3), regular expression matching in <regex> (Chapter 37), and support for C-style strings in <cstring>43.4). Handling of different character sets, encodings, and conventions (locales) is discussed in Chapter 39.

A simplified string implementation is presented in §19.3.

36.2. ...

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