diff trunk/src/dil/Lexer.d @ 519:9ebc799c7dc5

Fixes in dil.Parser.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 15 Dec 2007 19:00:23 +0100
parents 6ddff941862a
children f203c5248d0b
line wrap: on
line diff
--- a/trunk/src/dil/Lexer.d	Sat Dec 15 18:55:06 2007 +0100
+++ b/trunk/src/dil/Lexer.d	Sat Dec 15 19:00:23 2007 +0100
@@ -2531,12 +2531,12 @@
     return d;
   }
 
-  private void encodeUTF8(ref char[] str, dchar d)
+  static void encodeUTF8(ref char[] str, dchar d)
   {
-    char[6] b = void;
     assert(!isascii(d), "check for ASCII char before calling encodeUTF8().");
     assert(isValidChar(d), "check if character is valid before calling encodeUTF8().");
 
+    char[6] b = void;
     if (d < 0x800)
     {
       b[0] = 0xC0 | (d >> 6);