[fpc-devel] strings: a proposeal
fpmse at bluewin.ch
Sun Feb 4 08:08:39 CET 2007
On Sunday 04 February 2007 01.01, peter green wrote:
> currently there is some demand for a fast widestring type on windows and i
> suspect there will be requirements for more string types in the future.
> So i make a proposal for a new syntax that will allow string types to be
> created easilly in libraries or user code.
> my proposal is a statement like
> the allocator,deallocator,copier and uniquer would generally be inline
This is a very good idea.
There should be two additional functions, one to set string constants
(literals) in the current locale encoding and one in UTF-8 encoding if the
compiler runs with -Fcutf8.
MSEgui is completely done with widestrings, it suffers from the switch to not
reference counted widestrings on windows.
Also wanted: a possibility to have wide-resourcestrings.
More information about the fpc-devel