Fixed long lines in std/uni.d

This commit is contained in:
Jack Stouffer 2016-05-10 16:27:31 -04:00
parent 3b24d6436d
commit a37b1168ac

View file

@ -2379,10 +2379,12 @@ public:
assert(format("%d", unicode.Cyrillic) == unicode.Cyrillic.to!string); assert(format("%d", unicode.Cyrillic) == unicode.Cyrillic.to!string);
assert(format("%#x", unicode.Cyrillic) == assert(format("%#x", unicode.Cyrillic) ==
"[0x400..0x485) [0x487..0x528) [0x1d2b..0x1d2c) [0x1d78..0x1d79) [0x2de0..0x2e00) [0xa640..0xa698) [0xa69f..0xa6a0)"); "[0x400..0x485) [0x487..0x528) [0x1d2b..0x1d2c) [0x1d78..0x1d79) [0x2de0..0x2e00) "
~"[0xa640..0xa698) [0xa69f..0xa6a0)");
assert(format("%#X", unicode.Cyrillic) == assert(format("%#X", unicode.Cyrillic) ==
"[0X400..0X485) [0X487..0X528) [0X1D2B..0X1D2C) [0X1D78..0X1D79) [0X2DE0..0X2E00) [0XA640..0XA698) [0XA69F..0XA6A0)"); "[0X400..0X485) [0X487..0X528) [0X1D2B..0X1D2C) [0X1D78..0X1D79) [0X2DE0..0X2E00) "
~"[0XA640..0XA698) [0XA69F..0XA6A0)");
} }
unittest unittest
@ -5653,7 +5655,8 @@ template idxTypes(Key, size_t fullBits, Prefix...)
//============================================================================ //============================================================================
@safe pure int comparePropertyName(Char1, Char2)(const(Char1)[] a, const(Char2)[] b) if (is(Char1 : dchar) && is(Char2 : dchar)) @safe pure int comparePropertyName(Char1, Char2)(const(Char1)[] a, const(Char2)[] b)
if (is(Char1 : dchar) && is(Char2 : dchar))
{ {
import std.ascii : toLower; import std.ascii : toLower;
import std.algorithm : cmp, map, filter; import std.algorithm : cmp, map, filter;
@ -5668,7 +5671,8 @@ template idxTypes(Key, size_t fullBits, Prefix...)
assert(!comparePropertyName("foo-bar", "fooBar")); assert(!comparePropertyName("foo-bar", "fooBar"));
} }
bool propertyNameLess(Char1, Char2)(const(Char1)[] a, const(Char2)[] b) @safe pure if (is(Char1 : dchar) && is(Char2 : dchar)) bool propertyNameLess(Char1, Char2)(const(Char1)[] a, const(Char2)[] b) @safe pure
if (is(Char1 : dchar) && is(Char2 : dchar))
{ {
return comparePropertyName(a, b) < 0; return comparePropertyName(a, b) < 0;
} }