[Gambas-user] whats different between "left$" and "left" string functions
PICCORO McKAY Lenz
mckaygerhard at ...626...
Mon Dec 14 23:22:12 CET 2015
2015-12-14 17:48 GMT-04:30 Jussi Lahtinen <jussi.lahtinen at ...626...>:
> St!tring.Left() is for UTF-8.
> Left() and Left$() are for ASCII.
OK Jussi has right
this are wrog on both the modification made by me, and the previous in
wiki, the wiki does no clarify that!
the wiki said "use the String" but newbie users may confuse the string
class with left with the single left of "lang"
so the wiki must have better points and link/info about!
>
>
> Jussi
>
> On Tue, Dec 15, 2015 at 12:12 AM, <willy at ...3474...> wrote:
>
>> On 2015-12-14 23:01, PICCORO McKAY Lenz wrote:
>> > i think the problem are again in documentation or some misc-information
>> >
>> > search at documentation seem that the difference are the manipulation
>> > respect set of
>> >
>> > one its for ACII charset and the other seem are for UTF-8
>> >
>> > BUT DOCUMENTATIION refers without linking.. i link with a "see also"
>> > and "advertise"
>> >
>> > if i are correct please benoit guide me!
>> >
>> You seem to be correct:
>>
>> Left$() -> This function only deal with ASCII strings. To manipulate
>> UTF-8 strings, use the Left class.
>> Left() -> This function deals with UTF-8 strings, and so all positions
>> and lengths are given in characters and not in bytes. For deal with
>> ASCII see Left$
>>
>> Documentation is clear on that, I wasn't even aware of the
>> difference...!!
>>
>> So, I guess the question of removal is no longer an issue as they are
>> two different functions :)
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list