StringByteLength - Unicode(default)

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

AZJIO
Addict
Addict
Posts: 2183
Joined: Sun May 14, 2017 1:48 am

StringByteLength - Unicode(default)

Post 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)
Little John
Addict
Addict
Posts: 4786
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: StringByteLength - Unicode(default)

Post 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.
Quin
Addict
Addict
Posts: 1132
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: StringByteLength - Unicode(default)

Post 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.
AZJIO
Addict
Addict
Posts: 2183
Joined: Sun May 14, 2017 1:48 am

Re: StringByteLength - Unicode(default)

Post 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.
Little John
Addict
Addict
Posts: 4786
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: StringByteLength - Unicode(default)

Post 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.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: StringByteLength - Unicode(default)

Post 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?
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply