RE : [fpc-pascal] WideString and TRegexpr

2011-12-04 Thread Ludo Brands
  Reported as issue 0020806. I'm not able to test using a 
 recent Delphi, 
  or on a 64-bit CPU.
 
 I think you could report directly to sorokin too. If he fixes 
 it, then we can merge the fix here.
 
 regexpr is a nearly unchanged copy from sorokin, except for 
 the alignment patch which I have sent to sorokin.
 

Patch attached to issue. A case of a calling move() with number of chars
instead of bytes.

Ludo

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-04 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
  The method in question is the TDomNode.Attributes.Length property. I thought
  something like that shoud exist but I was looking for a Count property.
  Shouldn't it be count instead?
 
 Talk about not being very intuitive.  As I mentioned in another
 thread, the DOM unit is pretty damn programmer unfriendly. I don't
 care if it is W3C compliant or not, it just isn't logical or intuitive
 at all.

Use a simple wrapper unit over it. I use the xml config stuff of lazarus for
most purposes, with some minor own additions. Syncing and minimizing this,
is still on my todo. (I took this copy before Sergei started to massively
work on this, from the fpdoc work I know it is now massively better)
 
 comes down to it, and I am forced to use XML in a project, I would
 write a much more simplified API to the DOM unit. GetNode(ANodePath),
 ChildCount, Attribute[] and AttributeCount would be on the top of my
 list.

Sounds like a fine idea. 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal