(submitted by AgentOrange)
hey Im starting to use the demangle module and I may have found a problem, just fyi. Im not sure exactly how this is designed so im not sure if its wrong, but its caused me problems:
public bit parseToken(char[] test)
{
if( test.length > data.length - position ) // <-- HERE
return false;
if(data[position..position+test.length] == test[0..$])
{
position += test.length;
return true;
}
return false;
}
the > was >= which caused it to reject same size strings
also just fyi theres 2 special cases as far as I can tell - _Dmain and _DWinMain - these are mangled only with a _D
thanks tho, this code is pretty nice