Well, this is unexpected. The book "Physically Based Rendering" is now available for free online:
pbr-book.org. And, I can't overemphasize this, it has LINKS within the book, so browsing the inline code is now trivial (credit to
@marcosalvi for the notice)