[fpc-devel] Unicode resourcestrings
    Daniël Mantione 
    daniel.mantione at freepascal.org
       
    Sun Mar  2 14:09:47 CET 2008
    
    
  
Op Sun, 2 Mar 2008, schreef Martin Schreiber:
> On Sunday 02 March 2008 10.22:32 Daniël Mantione wrote:
>>
>> Regarding code generation, there is a difference between ansistrings and
>> resourcestrings, since with a resourcestring load, the compiler must look
>> into the resourcestring tables to find the ansistring constant.
>>
> So it is theoretical possible to call "fpc_ResourceStr_To_WideStr"
> instead of fpc_AnsiStr_To_WideStr if the  source is a resourcestring?
These kind of routines are called by the code generator part that does a 
type conversion. As there is no type conversion, no such routine can be 
called. I'm not stating it is theoretically impossible, just stating that 
the normal type conversion mechanism cannot be used.
Daniël
    
    
More information about the fpc-devel
mailing list