O'Reilly logo

Learn to Tango with D by Sean Kelly, Michael Parker, Kris Macleod Bell, Lars Ivar Igesund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Text Processing

Text processing is, together with mathematics, the most important basic discipline in programming. Almost all data produced by humans will, at some point, be represented as text, or strings, in your system.

As you learned in Chapter 2, D provides basic string types, making the definition and usage of strings a breeze. An additional feature of strings is that they already are encoded as 8-, 16-, or 32-bit Unicode. This means that you can use D immediately in internationalized environments. You also can manipulate the encoding of strings directly.

Considering that Tango is a general-purpose library, text processing is given a prominent place via the tango.text package, and this chapter will cover most of the important functionality ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required