From 1cbccaf0dba929f0df3bcdce84a3e70af6357832 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Wed, 1 Mar 2017 08:18:42 +0100 Subject: [PATCH] [BOOKTABLES]: Add BOOKTABLE to std.regex --- std/regex/package.d | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/std/regex/package.d b/std/regex/package.d index 6d1ec5fa3..f27b439a2 100644 --- a/std/regex/package.d +++ b/std/regex/package.d @@ -5,6 +5,41 @@ include validation of user input and the ubiquitous find $(AMP) replace in text processing utilities. +$(SCRIPT inhibitQuickIndex = 1;) +$(BOOKTABLE, +$(TR $(TH Category) $(TH Functions)) +$(TR $(TD Matching) $(TD + $(LREF bmatch) + $(LREF match) + $(LREF matchAll) + $(LREF matchFirst) +)) +$(TR $(TD Building) $(TD + $(LREF ctRegex) + $(LREF escaper) + $(LREF _regex) +)) +$(TR $(TD Replace) $(TD + $(LREF replace) + $(LREF replaceAll) + $(LREF replaceAllInto) + $(LREF replaceFirst) + $(LREF replaceFirstInto) +)) +$(TR $(TD Split) $(TD + $(LREF split) + $(LREF splitter) +)) +$(TR $(TD Objects) $(TD + $(LREF Captures) + $(LREF Regex) + $(LREF RegexException) + $(LREF RegexMatch) + $(LREF Splitter) + $(LREF StaticRegex) +)) +) + $(SECTION Synopsis) --- import std.regex; @@ -46,9 +81,8 @@ // The result of the $(D matchAll/matchFirst) is directly testable with if/assert/while. // e.g. test if a string consists of letters: assert(matchFirst("Letter", `^\p{L}+$`)); - - --- + $(SECTION Syntax and general information) The general usage guideline is to keep regex complexity on the side of simplicity, as its capabilities reside in purely character-level manipulation.