Mercurial > projects > dil
comparison trunk/src/dil/ast/Expressions.d @ 759:9c47f377ca0b
Revised module cmd.Generate.
Added class TagMapLoader.
Fixed StringExpression.getString() and related code in the Parser.
Added options 'xml_map' and 'html_map' to config.d
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 15 Feb 2008 02:07:53 +0100 |
parents | 170ddcdc9711 |
children | 5fe89bb8cbdd |
comparison
equal
deleted
inserted
replaced
758:f4b9680c0e16 | 759:9c47f377ca0b |
---|---|
775 this(dchar[] str) | 775 this(dchar[] str) |
776 { | 776 { |
777 this(cast(ubyte[])str, Types.Dchar); | 777 this(cast(ubyte[])str, Types.Dchar); |
778 } | 778 } |
779 | 779 |
780 /// Returns the string excluding the terminating 0. | |
780 char[] getString() | 781 char[] getString() |
781 { | 782 { |
782 // TODO: convert to char[] if charType !is Types.Char. | 783 // TODO: convert to char[] if charType !is Types.Char. |
783 return cast(char[])str; | 784 return cast(char[])str[0..$-1]; |
784 } | 785 } |
785 } | 786 } |
786 | 787 |
787 class ArrayLiteralExpression : Expression | 788 class ArrayLiteralExpression : Expression |
788 { | 789 { |