Michael Van Canneyt het geskryf:
Show quoted text 5 lines
> I am pretty sure it is the other way around, UnicodeString is the unicode
> version of AnsiString and is thus reference counted. WideString is the
> OLEstring compatible string, and is not reference counted.
Correct.
In that case the FPC documentation is wrong. Then could you correct the ref documentation please - Section 3.2.5. As quoted below, the docs say WideString is reference counted.
----------[ FPC 2.4 language reference doc ]----------------- 3.2.5 WideStrings
Widestrings (used to represent unicode character strings) are implemented in much the same way as ansistrings: reference counted, null-terminated arrays, only they are implemented as arrays of WideChars instead of regular Chars.
--------------------------------------------------------------
Regards,
- Graeme -