Page 1 of 1
StringByteLength - Unicode(default)
Posted: Wed Apr 16, 2025 4:51 pm
by AZJIO
Variables and Types - There is no information about the types for the executable ASCII file.
StringByteLength - There is information for the executable ASCII file
The expected text:
#PB_Unicode: Unicode format (default)
Re: StringByteLength - Unicode(default)
Posted: Wed Apr 16, 2025 6:56 pm
by Little John
AZJIO wrote:
Variables and Types - There is no information about the types for the executable ASCII file.
There is no such information required.
AZJIO wrote:
StringByteLength - There is information for the executable ASCII file
The expected text:
#PB_Unicode: Unicode format (default)
Where do you expect that text?
Current PureBasic versions do always generate executables in Unicode mode.
The comment in the help of
StringByteLength
If omitted, the mode of the executable (unicode or ascii) is used.
is obsolete and should be removed.
Re: StringByteLength - Unicode(default)
Posted: Wed Apr 16, 2025 7:02 pm
by Quin
Little John wrote: Wed Apr 16, 2025 6:56 pm
The comment in the help of
StringByteLength
If omitted, the mode of the executable (unicode or ascii) is used.
is obsolete and should be removed.
Yup.
History -> version 5.50 wrote:
- Removed: ASCII mode for internal PureBasic string representation, PureBasic is now unicode only.
Re: StringByteLength - Unicode(default)
Posted: Wed Apr 16, 2025 8:29 pm
by AZJIO
Little John wrote: Wed Apr 16, 2025 6:56 pm
Where do you expect that text?
All functions (PeekS, PokeS, ReadFile, CreateFile, OpenFile, CompareMemoryString, MemoryStringLength, etc.) specify which format is used by default. Do the same for StringByteLength(). I don't think there should even be any questions here, everything is obvious.
Re: StringByteLength - Unicode(default)
Posted: Wed Apr 16, 2025 8:40 pm
by Little John
AZJIO wrote: Wed Apr 16, 2025 8:29 pm
I don't think there should even be any questions here, everything is obvious.
What you wrote was not obvious and not clearly understandable.
Re: StringByteLength - Unicode(default)
Posted: Sat May 17, 2025 2:52 pm
by Andre
Little John wrote: Wed Apr 16, 2025 6:56 pm
The comment in the help of
StringByteLength
If omitted, the mode of the executable (unicode or ascii) is used.
is obsolete and should be removed.
Removed that.
But I agree, that a "(Standard)" should be placed behind one of the 3 options / constants in the description. But I don't know myself... Unicode or Utf8?