Abstract
This chapter is about handling textual data much more effectively and safely than the mechanism provided by a C-style string stored in an array of char elements.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Unless proverb itself is of type const std::string; if that’s the case, data() results in a const char* pointer as well. Refer to Chapter 11 for more details on the relation between const objects and member functions.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Ivor Horton and Peter Van Weert
About this chapter
Cite this chapter
Horton, I., Van Weert, P. (2018). Working with Strings. In: Beginning C++17. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3366-5_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3366-5_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3365-8
Online ISBN: 978-1-4842-3366-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books