Skip to Content
The C++ Programming Language, 4th Edition
book

The C++ Programming Language, 4th Edition

by Bjarne Stroustrup
May 2013
Intermediate to advanced
1376 pages
47h 26m
English
Addison-Wesley Professional
Content preview from The C++ Programming Language, 4th Edition

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup

Publisher Resources

ISBN: 9780133522884Purchase Link