mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Unify Phobos by ensuring there's always a space after cast(...)
Command: sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
This commit is contained in:
parent
669ceb8a0d
commit
805c720595
80 changed files with 1389 additions and 1389 deletions
14
unittest.d
14
unittest.d
|
@ -61,9 +61,9 @@ int main(string[] args)
|
|||
{
|
||||
// Bring in unit test for module by referencing function in it
|
||||
|
||||
cast(void)cmp("foo", "bar"); // string
|
||||
cast(void)filenameCharCmp('a', 'b'); // path
|
||||
cast(void)isNaN(1.0); // math
|
||||
cast(void) cmp("foo", "bar"); // string
|
||||
cast(void) filenameCharCmp('a', 'b'); // path
|
||||
cast(void) isNaN(1.0); // math
|
||||
std.conv.to!double("1.0"); // std.conv
|
||||
OutBuffer b = new OutBuffer(); // outbuffer
|
||||
auto r = regex(""); // regex
|
||||
|
@ -75,7 +75,7 @@ int main(string[] args)
|
|||
reverse(a); // adi
|
||||
sort(a); // qsort
|
||||
Clock.currTime(); // datetime
|
||||
cast(void)isValidDchar(cast(dchar)0); // utf
|
||||
cast(void) isValidDchar(cast(dchar) 0); // utf
|
||||
string s1 = "http://www.digitalmars.com/~fred/fredsRX.html#foo end!";
|
||||
assert(uriLength(s1) == 49);
|
||||
std.zlib.adler32(0,null); // D.zlib
|
||||
|
@ -99,12 +99,12 @@ int main(string[] args)
|
|||
assert(x[1] == 3);
|
||||
assert(x[2] == 45);
|
||||
|
||||
cast(void)std.math.sin(3.0);
|
||||
cast(void)std.mathspecial.gamma(6.2);
|
||||
cast(void) std.math.sin(3.0);
|
||||
cast(void) std.mathspecial.gamma(6.2);
|
||||
|
||||
std.demangle.demangle("hello");
|
||||
|
||||
cast(void)std.uni.isAlpha('A');
|
||||
cast(void) std.uni.isAlpha('A');
|
||||
|
||||
std.file.exists("foo");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue