Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

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

Objectives

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

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

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776