April 2022
Intermediate to advanced
1012 pages
38h 1m
English
strings, string_views, Text Files, CSV Files and RegexObjectives
In this chapter, you’ll:
Determine string characteristics.
Find, replace and insert characters in strings.
Use C++11 numeric conversion functions.
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) file.
Do an Objects-Natural case study using C++11 regular expressions (regex) to search strings for patterns, validate data and replace substrings.
Outline