mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
apply all-man braces in Phobos
// find common cases sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d // catch else-if sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d // remove created trailing whitespace sed -i 's/[ \t]*$//' **/*.d
This commit is contained in:
parent
f276dbc06b
commit
1d34a121e9
47 changed files with 1180 additions and 537 deletions
|
@ -3958,7 +3958,8 @@ bool isHangT(dchar ch) @safe pure nothrow
|
|||
return false;
|
||||
}
|
||||
|
||||
static if (size_t.sizeof == 8) {
|
||||
static if (size_t.sizeof == 8)
|
||||
{
|
||||
//1536 bytes
|
||||
enum lowerCaseTrieEntries = TrieEntry!(bool, 8, 4, 9)([0x0, 0x20, 0x40],
|
||||
[0x100, 0x80, 0x2000], [0x402030202020100, 0x206020202020205,
|
||||
|
@ -7430,7 +7431,8 @@ enum toTitleSimpleIndexTrieEntries = TrieEntry!(ushort, 8, 7, 6)([0x0, 0x20,
|
|||
|
||||
}
|
||||
|
||||
static if (size_t.sizeof == 4) {
|
||||
static if (size_t.sizeof == 4)
|
||||
{
|
||||
//1536 bytes
|
||||
enum lowerCaseTrieEntries = TrieEntry!(bool, 8, 4, 9)([0x0, 0x40, 0x80],
|
||||
[0x100, 0x80, 0x2000], [0x2020100, 0x4020302, 0x2020205, 0x2060202,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue