Turn on -preview=markdown

This commit is contained in:
David Gileadi 2019-07-04 10:13:00 -07:00
parent 83505b04ca
commit 775bcdee51
14 changed files with 306 additions and 306 deletions

View file

@ -867,7 +867,7 @@ enum CurlOption {
/** We want the referrer field set automatically when following locations */ /** We want the referrer field set automatically when following locations */
autoreferer = 58, autoreferer = 58,
/** Port of the proxy, can be set in the proxy string as well with: /** Port of the proxy, can be set in the proxy string as well with:
"[host]:[port]" */ `[host]:[port]` */
proxyport, proxyport,
/** size of the POST input data, if strlen() is not good to use */ /** size of the POST input data, if strlen() is not good to use */
postfieldsize, postfieldsize,

File diff suppressed because it is too large Load diff

View file

@ -490,7 +490,7 @@ $(JSON) : $(ALL_D_FILES)
########################################################### ###########################################################
SRC_DOCUMENTABLES = index.d $(addsuffix .d,$(STD_MODULES) $(EXTRA_DOCUMENTABLES)) SRC_DOCUMENTABLES = index.d $(addsuffix .d,$(STD_MODULES) $(EXTRA_DOCUMENTABLES))
# Set DDOC, the documentation generator # Set DDOC, the documentation generator
DDOC=$(DMD) -conf= $(MODEL_FLAG) -w -c -o- -version=StdDdoc \ DDOC=$(DMD) -conf= $(MODEL_FLAG) -w -c -o- -preview=markdown -version=StdDdoc \
-I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS) -I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS)
# D file to html, e.g. std/conv.d -> std_conv.html # D file to html, e.g. std/conv.d -> std_conv.html

View file

@ -1751,8 +1751,8 @@ expression.
`choices` needs to be composed of pairs of test expressions and return `choices` needs to be composed of pairs of test expressions and return
expressions. Each test-expression is compared with `switchExpression` using expressions. Each test-expression is compared with `switchExpression` using
`pred`(`switchExpression` is the first argument) and if that yields true `pred`(`switchExpression` is the first argument) and if that yields true -
- the return expression is returned. the return expression is returned.
Both the test and the return expressions are lazily evaluated. Both the test and the return expressions are lazily evaluated.

View file

@ -235,8 +235,8 @@ $(TR $(TDC2 BitmappedBlock, bitmapped_block) $(TD Organizes one contiguous chunk
equal-size blocks and tracks allocation status at the cost of one bit per equal-size blocks and tracks allocation status at the cost of one bit per
block.)) block.))
$(TR $(TDC2 FallbackAllocator, fallback_allocator) $(TD Allocator that combines two other allocators $(TR $(TDC2 FallbackAllocator, fallback_allocator) $(TD Allocator that combines two other
- primary and fallback. Allocation requests are first tried with primary, and allocators - primary and fallback. Allocation requests are first tried with primary, and
upon failure are passed to the fallback. Useful for small and fast allocators upon failure are passed to the fallback. Useful for small and fast allocators
fronting general-purpose ones.)) fronting general-purpose ones.))

View file

@ -1984,8 +1984,8 @@ static:
left-hand side operand. If $(D lhs == WithNaN.defaultValue!Lhs), returns left-hand side operand. If $(D lhs == WithNaN.defaultValue!Lhs), returns
$(D WithNaN.defaultValue!(typeof(lhs + rhs))) without evaluating the $(D WithNaN.defaultValue!(typeof(lhs + rhs))) without evaluating the
operand. Otherwise, evaluates the operand. If evaluation does not overflow, operand. Otherwise, evaluates the operand. If evaluation does not overflow,
returns the result. Otherwise, returns $(D WithNaN.defaultValue!(typeof(lhs returns the result. Otherwise, returns $(D WithNaN.defaultValue!(typeof(lhs +
+ rhs))). rhs))).
Params: Params:
x = The operator symbol x = The operator symbol
@ -2023,8 +2023,8 @@ static:
right-hand side operand. If $(D rhs == WithNaN.defaultValue!Rhs), returns right-hand side operand. If $(D rhs == WithNaN.defaultValue!Rhs), returns
$(D WithNaN.defaultValue!(typeof(lhs + rhs))) without evaluating the $(D WithNaN.defaultValue!(typeof(lhs + rhs))) without evaluating the
operand. Otherwise, evaluates the operand. If evaluation does not overflow, operand. Otherwise, evaluates the operand. If evaluation does not overflow,
returns the result. Otherwise, returns $(D WithNaN.defaultValue!(typeof(lhs returns the result. Otherwise, returns $(D WithNaN.defaultValue!(typeof(lhs +
+ rhs))). rhs))).
Params: Params:
x = The operator symbol x = The operator symbol

View file

@ -1003,7 +1003,7 @@ if (F.length > 1)
Params: Params:
fun = the call-able(s) or `string`(s) to compose into one function fun = the call-able(s) or `string`(s) to compose into one function
Returns: Returns:
A new function `f(x)` that in turn returns $(D fun[0](fun[1](...(x)))...). A new function `f(x)` that in turn returns `fun[0](fun[1](...(x)))...`.
See_Also: $(LREF pipe) See_Also: $(LREF pipe)
*/ */
@ -1054,7 +1054,7 @@ template compose(fun...)
Params: Params:
fun = the call-able(s) or `string`(s) to compose into one function fun = the call-able(s) or `string`(s) to compose into one function
Returns: Returns:
A new function `f(x)` that in turn returns $(D fun[0](fun[1](...(x)))...). A new function `f(x)` that in turn returns `fun[0](fun[1](...(x)))...`.
Example: Example:

View file

@ -8461,11 +8461,11 @@ public:
/*********************************** /***********************************
* Evaluate polynomial A(x) = $(SUB a, 0) + $(SUB a, 1)x + $(SUB a, 2)$(POWER x,2) * Evaluate polynomial A(x) = $(SUB a, 0) + $(SUB a, 1)x + $(SUB a, 2)$(POWER x,2) +
* + $(SUB a,3)$(POWER x,3); ... * $(SUB a,3)$(POWER x,3); ...
* *
* Uses Horner's rule A(x) = $(SUB a, 0) + x($(SUB a, 1) + x($(SUB a, 2) * Uses Horner's rule A(x) = $(SUB a, 0) + x($(SUB a, 1) + x($(SUB a, 2) +
* + x($(SUB a, 3) + ...))) * x($(SUB a, 3) + ...)))
* Params: * Params:
* x = the value to evaluate. * x = the value to evaluate.
* A = array of coefficients $(SUB a, 0), $(SUB a, 1), etc. * A = array of coefficients $(SUB a, 0), $(SUB a, 1), etc.

View file

@ -3586,7 +3586,7 @@ if (isConvertibleToString!Range)
$(LI `filename` must not contain any characters whose integer $(LI `filename` must not contain any characters whose integer
representation is in the range 0-31.) representation is in the range 0-31.)
$(LI `filename` must not contain any of the following $(I reserved $(LI `filename` must not contain any of the following $(I reserved
characters): <>:"/\|?*) characters): `<>:"/\|?*`)
$(LI `filename` may not end with a space ($(D ' ')) or a period $(LI `filename` may not end with a space ($(D ' ')) or a period
(`'.'`).) (`'.'`).)
) )

View file

@ -5813,8 +5813,8 @@ $(D (n - State.length)).
If the function is passed in string form, the state has name `"a"` If the function is passed in string form, the state has name `"a"`
and the zero-based index in the recurrence has name `"n"`. The and the zero-based index in the recurrence has name `"n"`. The
given string must return the desired value for `a[n]` given $(D a[n given string must return the desired value for `a[n]` given
- 1]), $(D a[n - 2]), $(D a[n - 3]),..., $(D a[n - stateSize]). The `a[n - 1]`, `a[n - 2]`, `a[n - 3]`,..., `a[n - stateSize]`. The
state size is dictated by the number of arguments passed to the call state size is dictated by the number of arguments passed to the call
to `recurrence`. The `Recurrence` struct itself takes care of to `recurrence`. The `Recurrence` struct itself takes care of
managing the recurrence's state and shifting it appropriately. managing the recurrence's state and shifting it appropriately.

View file

@ -136,7 +136,7 @@ $(TR $(TD Objects) $(TD
$(REG_ROW \W, Matches any non-word character.) $(REG_ROW \W, Matches any non-word character.)
$(REG_ROW \s, Matches whitespace, same as \p{White_Space}.) $(REG_ROW \s, Matches whitespace, same as \p{White_Space}.)
$(REG_ROW \S, Matches any character except those recognized as $(I \s ). ) $(REG_ROW \S, Matches any character except those recognized as $(I \s ). )
$(REG_ROW \\, Matches \ character. ) $(REG_ROW \\\\, Matches \ character. )
$(REG_ROW \c where c is one of [|*+?(), Matches the character c itself. ) $(REG_ROW \c where c is one of [|*+?(), Matches the character c itself. )
$(REG_ROW \p{PropertyName}, Matches a character that belongs $(REG_ROW \p{PropertyName}, Matches a character that belongs
to the Unicode PropertyName set. to the Unicode PropertyName set.
@ -261,7 +261,7 @@ $(TR $(TD Objects) $(TD
$(REG_ROW $', part of input $(I following) the match. ) $(REG_ROW $', part of input $(I following) the match. )
$(REG_ROW $$, '$' character. ) $(REG_ROW $$, '$' character. )
$(REG_ROW \c $(COMMA) where c is any character, the character c itself. ) $(REG_ROW \c $(COMMA) where c is any character, the character c itself. )
$(REG_ROW \\, '\' character. ) $(REG_ROW \\\\, '\\' character. )
$(REG_ROW $(DOLLAR)1 .. $(DOLLAR)99, submatch number 1 to 99 respectively. ) $(REG_ROW $(DOLLAR)1 .. $(DOLLAR)99, submatch number 1 to 99 respectively. )
) )

View file

@ -8714,8 +8714,8 @@ public:
// ReplaceType // ReplaceType
/** /**
Replaces all occurrences of `From` into `To`, in one or more types `T`. For Replaces all occurrences of `From` into `To`, in one or more types `T`. For
example, $(D ReplaceType!(int, uint, Tuple!(int, float)[string])) yields example, `ReplaceType!(int, uint, Tuple!(int, float)[string])` yields
$(D Tuple!(uint, float)[string]). The types in which replacement is performed `Tuple!(uint, float)[string]`. The types in which replacement is performed
may be arbitrarily complex, including qualifiers, built-in type constructors may be arbitrarily complex, including qualifiers, built-in type constructors
(pointers, arrays, associative arrays, functions, and delegates), and template (pointers, arrays, associative arrays, functions, and delegates), and template
instantiations; replacement proceeds transitively through the type definition. instantiations; replacement proceeds transitively through the type definition.

View file

@ -2027,8 +2027,8 @@ pure:
--- ---
$(P $(P
The way to read this is: start with negative meaning that all numbers The way to read this is: start with negative meaning that all numbers
smaller then the next one are not present in this set (and positive smaller then the next one are not present in this set (and positive -
- the contrary). Then switch positive/negative after each the contrary). Then switch positive/negative after each
number passed from left to right. number passed from left to right.
) )
$(P This way negative spans until 10, then positive until 50, $(P This way negative spans until 10, then positive until 50,