Mercurial > projects > dil
comparison trunk/src/dil/Converter.d @ 755:90668b83ae5e
Introduced new module dil.SourceText and class SourceText.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 13 Feb 2008 20:21:25 +0100 |
parents | 49fe21aa387c |
children | 4579e8505d5e |
comparison
equal
deleted
inserted
replaced
754:c7a5499faa77 | 755:90668b83ae5e |
---|---|
176 alias UTF16toUTF8!(false) UTF16LEtoUTF8; | 176 alias UTF16toUTF8!(false) UTF16LEtoUTF8; |
177 | 177 |
178 char[] data2UTF8(ubyte[] data) | 178 char[] data2UTF8(ubyte[] data) |
179 { | 179 { |
180 if (data.length == 0) | 180 if (data.length == 0) |
181 return null; | 181 return ""; |
182 | 182 |
183 char[] text; | 183 char[] text; |
184 BOM bom = tellBOM(data); | 184 BOM bom = tellBOM(data); |
185 | 185 |
186 switch (bom) | 186 switch (bom) |