Re: cvs: php-src /ext/tidy tidy.c
| From: | Nuno Lopes | Date: | Wed, 01 Nov 2006 20:13:50 +0000 |
| Subject: | Re: cvs: php-src /ext/tidy tidy.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-41282@lists.php.net to get a copy of this message | ||
In fact they are all the same. When you pass an html string, it opens a new converter (with ref_count=1), and then it just points the child nodes to that converter (and incs the ref_counter). So I'm only storing a pointer to the converter with a ref. counter associated.
This is needed because you can access child nodes directly. But I still need to think more on the subject.
Nuno
----- Original Message -----
Do you need a separate converter per node? Can they all be different for some reason? -Andrei On Nov 1, 2006, at 10:28 AM, Nuno Lopes wrote:nlopess Wed Nov 1 18:28:37 2006 UTC Modified files:/php-src/ext/tidy tidy.cLog: start converting the tidy and tidyNode objects to be Unicode aware I added a converter pointer per node, so that the text can be converted to unicode when requested this commit also breaks a few tests in unicode mode, but it isnt scary at this time :P