Re: (patch) added wordwrap & wordwrap_byte functions

From: Date: Tue, 20 Jun 2000 18:51:48 +0000
Subject: Re: (patch) added wordwrap & wordwrap_byte functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21872@lists.php.net to get a copy of this message
On Tue, Jun 20, 2000 at 09:37:14AM -0400, Chris Russel wrote: > I wrote two functions for wrapping text buffers at a given length. This is > useful with IMP (webmail app) and probably elsewhere so I thought I'd > submit them. They're in ext/standard/html.c for lack of a better place. [snip] > I timed the wrapping of a long message using different functions, one > written in PHP, the others being these functions: > PHP-code wrapping: ~8 CPU seconds (PHP3 was WAY slower!) > string-break wrapping: ~3s > char-break wrapping: 0/unmeasurable Awesome! I'd really like to see these implemented in the PHP distribution (for obvious selfish reasons <grin>). -- Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.dev (#21872) next »