mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Automatically add spaces to binary operators (==)
command: sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
This commit is contained in:
parent
af42d8df3d
commit
a2c6398332
24 changed files with 74 additions and 74 deletions
|
@ -3339,11 +3339,11 @@ version(unittest)
|
|||
{
|
||||
void transcodeReverse(Src,Dst)(immutable(Src)[] s, out immutable(Dst)[] r)
|
||||
{
|
||||
static if (is(Src==Dst))
|
||||
static if (is(Src == Dst))
|
||||
{
|
||||
return s;
|
||||
}
|
||||
else static if (is(Src==AsciiChar))
|
||||
else static if (is(Src == AsciiChar))
|
||||
{
|
||||
transcodeReverse!(char,Dst)(cast(string) s,r);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue