www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to demangle a string ending __ModuleInfoZ ?

reply "timotheecour" <timothee.cour2 gmail.com> writes:
void main(){
	import std.demangle;
	import std.stdio;
	writeln(demangle("_D5tango4text7convert6Format12__ModuleInfoZ"));
//_D5tango4text7convert6Format12__ModuleInfoZ
	writeln(demangle("_D5tango4text7Unicode6toFoldFAxaAaZAa"));
//char[] tango.text.Unicode.toFold(const(char)[], char[])
}
Mar 22 2013
parent "cal" <callumenator gmail.com> writes:
On Friday, 22 March 2013 at 11:23:30 UTC, timotheecour wrote:
 void main(){
 	import std.demangle;
 	import std.stdio;
 	writeln(demangle("_D5tango4text7convert6Format12__ModuleInfoZ"));
 //_D5tango4text7convert6Format12__ModuleInfoZ
 	writeln(demangle("_D5tango4text7Unicode6toFoldFAxaAaZAa"));
 //char[] tango.text.Unicode.toFold(const(char)[], char[])
 }
Last time I tried to use demangle it didn't work on types, only functions. Your first symbol is a type, so looks like the same problem.
Mar 22 2013