You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import std.stdio;
|
|
import std.demangle;
|
|
import std.regex;
|
|
|
|
void main() {
|
|
string dem(RegexMatch!(string) m)
|
|
{
|
|
return demangle(m.hit);
|
|
}
|
|
|
|
foreach (line; stdin.byLine()) {
|
|
string s2 = cast(string)line;
|
|
auto s = replace!(dem)(s2, regex("[_$a-zA-Z][_$a-zA-Z0-9]*", "g"));
|
|
writeln(s);
|
|
}
|
|
}
|