Skip to content

Commit

Permalink
Tweak enum table
Browse files Browse the repository at this point in the history
  • Loading branch information
monarchdodra committed Aug 26, 2014
1 parent bfebba8 commit 5facb72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/utf.d
Expand Up @@ -1071,7 +1071,7 @@ private dchar decodeImpl(bool canIndex, S)(auto ref S str, ref size_t index)

/* Dchar bitmask for different numbers of UTF-8 code units.
*/
enum bitMask = [(1 << 7) - 1, (1 << 11) - 1, (1 << 16) - 1, (1 << 21) - 1];
alias bitMask = TypeTuple!((1 << 7) - 1, (1 << 11) - 1, (1 << 16) - 1, (1 << 21) - 1);

static if (is(S : const char[]))
auto pstr = str.ptr + index;
Expand Down Expand Up @@ -3192,7 +3192,7 @@ auto ref byDchar(R)(R r)

/* Dchar bitmask for different numbers of UTF-8 code units.
*/
enum uint[4] bitMask = [(1 << 7) - 1, (1 << 11) - 1, (1 << 16) - 1, (1 << 21) - 1];
alias bitMask = TypeTuple!((1 << 7) - 1, (1 << 11) - 1, (1 << 16) - 1, (1 << 21) - 1);

foreach (i; TypeTuple!(1, 2, 3))
{
Expand Down

0 comments on commit 5facb72

Please sign in to comment.