How to Implement Our New string Functionality

There are a number of ways that I could have implemented the functionality that we will need to compare and search for character data without regard for the case of the text we are looking for or comparing. Here are several possibilities:

  1. Writing global functions to do case insensitive searches and comparisons.

  2. Using a completely separate string class like the one we created in Chapters 7 and 8.

  3. Using the standard library features that allow us to specify our own comparison and searching functions for the standard string class.

  4. Creating a new class that includes a standard library string member variable and forwarding all of the member functions implemented in the standard library string class to that ...

Get C++: A Dialog Programming with the C++ Standard Library now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.