Parsing D files with non-unicode characters

Arun Chandrasekaran aruncxy at gmail.com
Tue Nov 6 00:48:34 UTC 2018


On Tuesday, 6 November 2018 at 00:38:03 UTC, Roland Hadinger 
wrote:
> On Monday, 5 November 2018 at 23:50:46 UTC, Arun Chandrasekaran 
> wrote:
>> I'm converting a large amount of header files from C to D 
>> using DStep and I'm stuck at 
>> https://github.com/jacob-carlborg/dstep/issues/215
>>
>> https://dlang.org/spec/intro.html shows that ASCII and UTF 
>> char formats are accepted. How do I go about converting a 
>> large code base like this?
>
> Just an idea: if you have 'iconv' available, you could always 
> strip out non-utf-8 characters beforehand. See:
>
> https://stackoverflow.com/questions/12999651/how-to-remove-non-utf-8-characters-from-text-file

Thanks! Can't we preserve the comments? Comments are invaluable, 
especially on the headerfiles. We generate documentation using 
doxygen.


More information about the Digitalmars-d mailing list