How to unpluck UTF-16-encoded PDB files?
Thanks,
OK, if I use UTF-16 as "Output Encoding", how can I unpluck the generated PDB file?
For example, if ASCII is used, when unpluck(in C language):
if( buffer[ *position ] != '\0' ) // to test the end of the text string
{
item_type = IT_CHAR;
the_next_char = buffer[ *position ];
*position += 1;
}
else
{
*position += 1;
code = buffer[ *position ];
size = ( buffer[ *position ] & 0x07 );
*position += 1;
............
}
If UTF-16 is used, should I use
if( buffer[ *position ] != '\0' && buffer[ (*position)+1 ] != '\0' )
(I think NO, but I dont know how to test the end of the text string)
Any suggestion?
Thanks again,
FZ
|