October 2017
Beginner to intermediate
464 pages
12h 35m
English
Computer programs do more than crunch numbers. They communicate with the end user. This is what text strings are for: they contain human-readable information made up of printable characters. One of the most important tasks of programs is tokenization—breaking down a line of input into individual words.
In this chapter, we’re going to get inside of strings and show how to efficiently pull them apart and put them together.
Counting characters
Stripping trailing and leading spaces
Splitting lines of input (tokenization)
Building ...
Read now
Unlock full access