From 9a035ee6d5eab45161c77e7013bb338cfa9f2ba5 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 9 Feb 2018 12:13:50 +0100 Subject: [PATCH 1/2] Remove PHOBOS macro in favor in REF --- dlang.org.ddoc | 1 - spec/arrays.dd | 4 ++-- spec/cpp_interface.dd | 2 +- spec/latex.ddoc | 1 - spec/property.dd | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlang.org.ddoc b/dlang.org.ddoc index 087df6202b..99bc4a1b67 100644 --- a/dlang.org.ddoc +++ b/dlang.org.ddoc @@ -338,7 +338,6 @@ _= PC=$(TC p, $1, $+) _= -PHOBOS=$(SPANC phobos, $(AHTTPS dlang.org/phobos/std_$1.html#$2, $(TAIL $+))) PHOBOSSRC=$(SPANC phobos_src, $(AHTTPS github.com/dlang/phobos/blob/master/$0, $0)) _= diff --git a/spec/arrays.dd b/spec/arrays.dd index 1c47f2a8aa..00c025f88e 100644 --- a/spec/arrays.dd +++ b/spec/arrays.dd @@ -919,8 +919,8 @@ $(H4 $(LEGACY_LNAME2 strings_unicode, strings-unicode, Strings and Unicode)) primitives it's assumed to be enforced by the user. ) $(P The standard library lends a hand for comparing strings with mixed encodings - (by transparently decoding, see $(PHOBOS algorithm, cmp, std.algorithm.cmp)), - $(PHOBOS uni, icmp, case-insensitive comparison) and $(PHOBOS uni, normalize, normalization). + (by transparently decoding, see $(REF cmp, std,algorithm)), + $(REF_ALTTEXT case-insensitive comparison icmp, std,uni) and $(REF_ALTTEXT normalization, normalize, std,uni). ) $(P Last but not least, a desired string sorting order differs by culture and language and is usually nothing like code point diff --git a/spec/cpp_interface.dd b/spec/cpp_interface.dd index 6238b0d510..2f83fff8d5 100644 --- a/spec/cpp_interface.dd +++ b/spec/cpp_interface.dd @@ -726,7 +726,7 @@ $(H2 $(LNAME2 packing-and-alignment, Packing and Alignment)) ) $(P D supports bitfields in the standard library: see - $(PHOBOS bitmanip, bitfields, std.bitmanip.bitfields). + $(REF bitfields, std, bitmanip). ) $(H2 $(LNAME2 lifetime-management, Lifetime Management)) diff --git a/spec/latex.ddoc b/spec/latex.ddoc index f72685cd2f..af2f42d42c 100644 --- a/spec/latex.ddoc +++ b/spec/latex.ddoc @@ -242,7 +242,6 @@ _= P= $0 \par PERCENT=\% -PHOBOS=$(LINK2 phobos/std_$1.html\#$2, $3) _= RAWHTML=\begin{lstlisting}[language=html,breaklines=true,breakatwhitespace=true]$0\end{lstlisting} diff --git a/spec/property.dd b/spec/property.dd index aef155f782..3a8514606f 100644 --- a/spec/property.dd +++ b/spec/property.dd @@ -176,7 +176,7 @@ $(H2 $(LNAME2 stringof, .stringof Property)) $(BEST_PRACTICE Do not use `.stringof` for code generation. Instead use the $(DDSUBLINK spec/traits, identifier, identifier) trait, - or one of the Phobos helper functions such as $(PHOBOS traits, fullyQualifiedName, std.traits.fullyQualifiedName).) + or one of the Phobos helper functions such as $(REF fullyQualifiedName, std,traits).) $(H2 $(LNAME2 sizeof, .sizeof Property)) From 57a1cc6140668d430beefbbd43a522eec8119885 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Thu, 22 Feb 2018 20:34:08 +0100 Subject: [PATCH 2/2] Replace goo.gl shortlinks with their actual links --- spec/arrays.dd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/arrays.dd b/spec/arrays.dd index 00c025f88e..620ca1decd 100644 --- a/spec/arrays.dd +++ b/spec/arrays.dd @@ -909,18 +909,18 @@ d = 'd'; // d is assigned the character 'd' $(H4 $(LEGACY_LNAME2 strings_unicode, strings-unicode, Strings and Unicode)) $(P Note that built-in comparison operators operate on a - $(HTTPS goo.gl/zRY1K, code unit) basis. + $(LINK2 http://www.unicode.org/glossary/#code_unit, code unit) basis. The end result for valid strings is the same as that of - $(HTTPS goo.gl/WR424, code point) - for $(HTTPS goo.gl/WR424, code point) + $(LINK2 http://www.unicode.org/glossary/#code_point, code point) + for $(LINK2 http://www.unicode.org/glossary/#code_point, code point) comparison as long as both strings are in the same - $(HTTPS goo.gl/3DKfI, normalization form). + $(LINK2 http://www.unicode.org/glossary/#normalization_form, normalization form). Since normalization is a costly operation not suitable for language primitives it's assumed to be enforced by the user. ) $(P The standard library lends a hand for comparing strings with mixed encodings (by transparently decoding, see $(REF cmp, std,algorithm)), - $(REF_ALTTEXT case-insensitive comparison icmp, std,uni) and $(REF_ALTTEXT normalization, normalize, std,uni). + $(REF_ALTTEXT case-insensitive comparison, icmp, std,uni) and $(REF_ALTTEXT normalization, normalize, std,uni). ) $(P Last but not least, a desired string sorting order differs by culture and language and is usually nothing like code point