Mercurial > projects > ddmd
comparison dmd/StringEntry.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
173:d237b38b5858 | 174:af724d3510d7 |
---|---|
12 StringEntry* left; | 12 StringEntry* left; |
13 StringEntry* right; | 13 StringEntry* right; |
14 hash_t hash; | 14 hash_t hash; |
15 | 15 |
16 StringValue value; | 16 StringValue value; |
17 | |
18 this(StringEntry* other) | |
19 { | |
20 hash = other.hash; | |
21 value = other.value; | |
22 } | |
17 | 23 |
18 this(immutable(dchar_t)[] s) | 24 this(immutable(dchar_t)[] s) |
19 { | 25 { |
20 hash = Dchar.calcHash(s.ptr, s.length); | 26 hash = Dchar.calcHash(s.ptr, s.length); |
21 value.lstring.string_ = s; | 27 value.lstring.string_ = s; |