Chapter 8. strings, string_views, Text Files, CSV Files and Regex

Images

Objectives

In this chapter, you’ll:

Determine string characteristics.

Find, replace and insert characters in strings.

Use C++11 numeric conversion functions.

See the C++20 update to how string member function reserve modifies string capacity.

Use C++17 string_views for lightweight views of contiguous characters.

Write and read sequential files.

Perform input from and output to strings in memory.

Do an objects-natural case study using an object of an open-source-library class to read and process data about the Titanic disaster from a CSV (comma-separated values) ...

Get C++20 for Programmers, 3rd 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.