Lazarus

Free Pascal => Beginners => Topic started by: CapelliC on July 07, 2020, 03:29:35 pm

Title: missing a lot of functions from WideStrUtils
Post by: CapelliC on July 07, 2020, 03:29:35 pm
Refreshing an old app from delphi 2007, several functions are missing from WideStrUtils.
Are them available elsewhere or should I attempt to compile from source ?
Title: Re: missing a lot of functions from WideStrUtils
Post by: Thaddy on July 07, 2020, 03:39:21 pm
a) which functions? You do not mention any...?
b) compiling from code is always a better idea just after a conversion.
Title: Re: missing a lot of functions from WideStrUtils
Post by: CapelliC on July 07, 2020, 03:46:23 pm
a) which functions? You do not mention any...?
b) compiling from code is always a better idea.

Thanks for the quick reply, I understand my question is fuzzy...

HasExtendCharacter was in WideStrUtils,
some others like StrEncodeUtf8 did come from another package, DIHtmlParse, huge and complex to compile.



are the two that are missing right now.
Title: Re: missing a lot of functions from WideStrUtils
Post by: PascalDragon on July 08, 2020, 09:26:40 am
Best to report missing functions on the bugtracker (https://bugs.freepascal.org/my_view_page.php).
Title: Re: missing a lot of functions from WideStrUtils
Post by: Alextp on July 08, 2020, 09:50:02 am
I may implement this func. will try it soon.
Title: Re: missing a lot of functions from WideStrUtils
Post by: marcov on July 08, 2020, 10:38:52 am
Note that anything related to strings and encoding heavily changed with D2009, and FPC mostly follows those signatures.

(e.g. utf8string means ansistring(65001) etc)
Title: Re: missing a lot of functions from WideStrUtils
Post by: Alextp on July 08, 2020, 10:54:45 am
Take my implementation
https://bugs.freepascal.org/view.php?id=37315
Title: Re: missing a lot of functions from WideStrUtils
Post by: CapelliC on July 08, 2020, 11:45:08 am
Many thanks to all !

Note that anything related to strings and encoding heavily changed with D2009, and FPC mostly follows those signatures.

(e.g. utf8string means ansistring(65001) etc)

This gives me an important clue while digging deeper into my port/refresh task.

Take my implementation
https://bugs.freepascal.org/view.php?id=37315

Wow, let me say a special thank you for this.
OT: I didn't know about SynEdit. Very interesting indeed. Will try ASAP.
TinyPortal © 2005-2018