Book Image

D Cookbook

By : Adam Ruppe
Book Image

D Cookbook

By: Adam Ruppe

Overview of this book

Table of Contents (21 chapters)
D Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Phobos – The Standard Library

In this chapter, we will learn how to use the D standard library and explore the language concepts used in the implementation. You will learn the following recipes:

  • Performing type conversions

  • Finding the largest files in a directory

  • Creating a network client and server

  • Using Base64 to create a data URI

  • Generating random numbers

  • Normalizing a string and performing Unicode comparisons

  • Searching with regular expressions

  • Writing a digest utility

  • Using the std.zlib compression

  • Using the std.json module