Don't think you ave to worry about that. SizeOf(Character) will probably remain around for age (or never go away), as to StringByteLength() and similar stuff, they will/may be needed for UTF8 (and UCS2/UTF16 possibly as well).luis wrote:I wondering... would be wise to continue to use SizeOf(Character), StringByteLength() and similar constructs to be able to support in future maybe unicode encodings not exactly 2 bytes in len or is ok to simply consider a char len = 2 like you did for ascii with char len = 1 ? This when you know your program will have to access only unicode data and not other formats.
I would still tend towards using this type of code not making supposition. In short to continue to code as an ascii build were still possible.
And in cases where you are dealing with binary data (savegame files for example or data conversions) then you might need it too.
They are not going to remove any functions, they are planning to add "two" even (which I'm looking forward to).
They'll just get rid of a lot of duplicate calls/functionality, and require those that use future versions of PureBasic to code with Unicode always (and remember to convert to/from unicode which is what all this huffpuff is due to that and panic that funtionalty is removed).
Don't people realize that an ascii string can be stored in a unicode string? *shakes head*
But back to your subject. SizeOf ad other stuff won't change at all and .a and .c will not vanish either.