Chapter 8. string
s, string_view
s, Text Files, CSV Files and Regex
Objectives
In this chapter, you’ll:
■ Determine string
characteristics.
■ Find, replace and insert characters in string
s.
■ Use C++11 numeric conversion functions.
■ See the C++20 update to how string
member function reserve
modifies string
capacity.
■ Use C++17 string_view
s for lightweight views of contiguous characters.
■ Write and read sequential files.
■ Perform input from and output to string
s 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.