Skip to Content
Exploring C++20: The Programmer's Introduction to C++
book

Exploring C++20: The Programmer's Introduction to C++

by Ray Lischner
August 2020
Beginner to intermediate
653 pages
16h 55m
English
Apress
Content preview from Exploring C++20: The Programmer's Introduction to C++
© Ray Lischner 2020
R. LischnerExploring C++20https://doi.org/10.1007/978-1-4842-5961-0_18

18. Character Categories

Ray Lischner1 
(1)
Ellicott City, MD, USA
 

Exploration 17 introduced and discussed characters. This Exploration continues that discussion with character classification (e.g., uppercase or lowercase, digit or letter), which, as you will see, turns out to be more complicated than you might have expected.

Character Sets

As you learned in Exploration 17, the numeric value of a character, such as 'A', depends on the character set. The compiler must decide which character set to use at compile time and at runtime. This is typically based on preferences that the end user selects in the host operating system.

Character-set issues rarely arise for ...

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

Exploring C++ 11, Second Edition

Exploring C++ 11, Second Edition

Ray Lischner

Publisher Resources

ISBN: 9781484259610Purchase LinkPublisher Website