Recent

Author Topic: missing a lot of functions from WideStrUtils  (Read 1380 times)

CapelliC

  • Jr. Member
  • **
  • Posts: 58
missing a lot of functions from WideStrUtils
« 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 ?

Thaddy

  • Hero Member
  • *****
  • Posts: 14210
  • Probably until I exterminate Putin.
Re: missing a lot of functions from WideStrUtils
« Reply #1 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.
« Last Edit: July 07, 2020, 03:45:35 pm by Thaddy »
Specialize a type, not a var.

CapelliC

  • Jr. Member
  • **
  • Posts: 58
Re: missing a lot of functions from WideStrUtils
« Reply #2 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.
« Last Edit: July 07, 2020, 04:01:45 pm by CapelliC »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: missing a lot of functions from WideStrUtils
« Reply #3 on: July 08, 2020, 09:26:40 am »
Best to report missing functions on the bugtracker.

AlexTP

  • Hero Member
  • *****
  • Posts: 2387
    • UVviewsoft
Re: missing a lot of functions from WideStrUtils
« Reply #4 on: July 08, 2020, 09:50:02 am »
I may implement this func. will try it soon.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: missing a lot of functions from WideStrUtils
« Reply #5 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)

AlexTP

  • Hero Member
  • *****
  • Posts: 2387
    • UVviewsoft
Re: missing a lot of functions from WideStrUtils
« Reply #6 on: July 08, 2020, 10:54:45 am »

CapelliC

  • Jr. Member
  • **
  • Posts: 58
Re: missing a lot of functions from WideStrUtils
« Reply #7 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