summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
Commit message (Collapse)AuthorAgeFilesLines
* added money_format() functionHartmut Holzgraefe2002-08-021-0/+22
| | | | | | | this is similar to C-libs strfmon(), using the same format string semantics but a different function prototype, so i decided to give it a more speaking name similar to number_format()
* made sapi_register_treat_data() to support multibyte input encoding ↵Rui Hirokawa2002-08-021-2/+2
| | | | translation without MBSTR_ENC_TRANS and changed php_treat_data to php_default_treat_data.
* Fix for #18638 (str_rot13 bug)Rasmus Lerdorf2002-07-301-14/+11
|
* - Made the trim functions use same base function. (less code :)foobar2002-07-131-60/+34
| | | | | | | - Renamed php_trim2 -> php_trim (not used anyplace else, yet) - Made php_trim abit more usable for external use. (not necessary to use zvals with it anymore)
* Fixed stripslashes when magic_quotes_sybase is enabled, and add a test forSander Roobol2002-06-181-5/+11
| | | | | | add- and stripslashes(). # this time without cvs messing up and aborting, hopefully :)
* fixed return types for ucwords/ucfirst when passed an empty stringHartmut Holzgraefe2002-06-171-2/+2
|
* Adjust dirname() on Win32 to match CWD per drive semantics.Preston L. Bannister2002-05-161-4/+18
|
* Grr.. I keep leaving my debug in...Rasmus Lerdorf2002-05-161-1/+0
|
* Fix for #17271Rasmus Lerdorf2002-05-161-1/+3
| | | | | @ Fix crash bug in stripslashes() when working in sybase mode (Rasmus)
* block_ended/opposite_target were set but never usedSascha Schumann2002-05-041-4/+1
|
* fixed directory access problem when direcory name is encoded in japanese ↵Rui Hirokawa2002-04-251-5/+5
| | | | Shift_JIS encoding.
* fix for #16469Wez Furlong2002-04-071-1/+1
|
* fix for Bug #16314Hartmut Holzgraefe2002-03-271-3/+19
|
* - Fix bug 11244 (patch by "Tal Peer" <hazgul99@hotmail.com>).Markus Fischer2002-03-261-0/+24
| | | | | # Sorry for the delay :-)
* Make state parameter of php_strip_tags passed by reference.Wez Furlong2002-03-201-2/+8
| | | | | Move state tracking to stream structure.
* Fix calculation of output buffer size in wordwrap(). (Thanks to Wez.)jim winstead2002-03-181-1/+1
|
* Change php_addslashes() a little.Yasuo Ohgaki2002-03-121-19/+31
| | | | | | Since most users do not use magic_quote_sybase, be nicer to users not using magic_quote_sybase.
* - Fix warning message for join().Derick Rethans2002-03-021-1/+2
|
* Fix for bug #15130. Way too much effort for this bug, but cleaned up codeSean Bright2002-01-221-35/+42
| | | | | | a bit, use zend_parse_parameters(), etc, etc. We only look for extensions in the basename, not the full path.
* More tweaking of wordwrap() with the cut parameter set. It was being ajim winstead2002-01-051-2/+4
| | | | | | little too aggressive and cutting words without breaking at spaces first. (A couple of tests were incorrect.)
* New memcpy()-based wordwrap() implementation. The simple casejim winstead2002-01-051-98/+75
| | | | | | | | | | | | | (single-character break, no forced break) appears to be about 60% faster, and there's simply no comparison for non-simple cases with non-trivial amounts of text. The old algorithm was O(n^2) (with an unfortunately large constant factor) because of the use of strncat(), the new one is O(n). Added some more tests, too. @ - Made wordwrap() significantly faster. (Jim) # test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1); # new code completes in less than a second. i'm still waiting for the # old code to finish.
* Fixed segfault in wordwrap() when wrapping to zero width and usingjim winstead2002-01-041-46/+26
| | | | | | | | | | | multi-character break or trying to force cut (bug #12768, now fails and issues a warning because forcing a zero-width cut doesn't make sense). Also converted to new paramater-passing API and avoid making an extra copy of the return values. # also added tests. @- Fixed segfault in wordwrap() when wrapping to zero width and using @ multi-character break or trying to force cut (bug #12768). (Jim)
* fix for bug #14832: basename with 2nd parm corrupts source stringHartmut Holzgraefe2002-01-031-2/+5
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* renamed rot13 to str_rot13()Hartmut Holzgraefe2001-12-061-2/+2
|
* ported rot13() from php3Hartmut Holzgraefe2001-12-061-0/+26
|
* - Fix a crash when passing e.g. NULL to basename(). (Patch by MarkusDerick Rethans2001-12-011-14/+5
| | | | | | Fischer <mfischer@guru.josefine.at>) #- Simplyfied code using zend_parse_parameters().
* Fixed bug #13901.Andrei Zmievski2001-11-101-7/+13
|
* WS fixJames Moore2001-11-021-3/+3
|
* @- Fix behaviour of strtok. Bug 13866 (jmoore)James Moore2001-11-021-1/+5
| | | | | | | | | | | # I have brought the behaviour of strtok into line with how the # libc strtok's behave. currently given # <string1><token><string2><token><token>string> # three recursive calls to strtok returns <string1>. <string2>, <token><string3> # it now returns <string1>, <string2>, <string3>. (there was some # debate in #php.bugs if it should return <string1>, <string2>, false, <string3> # but php's strtok now behaves the same way as the libc version.
* - 'Fix' for bug #13543Derick Rethans2001-10-041-1/+1
|
* - Fix crashbug in php_chunk_split()Derick Rethans2001-09-271-1/+1
|
* Another leak bites the dust?Zeev Suraski2001-09-271-2/+2
|
* - nl2br now handles different styles of line endings in one string. (PatchDerick Rethans2001-09-261-21/+93
| | | | | | | by Boian Bonev <boian@bonev.com>) @- nl2br now handles all styles of line-endings in one string. (Boian, @ Derick)
* 2nd phase in back-substitution those macro'sJeroen van Wolffelaar2001-09-251-2/+2
| | | | | I've got pretty much everything now...
* Back-substitute for Z_* macro's. If it breaks some extension (the script ↵Jeroen van Wolffelaar2001-09-251-62/+62
| | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know.
* - Fix crash bug (patch by <chocolateboy@lunomail.com>)Derick Rethans2001-09-241-0/+5
|
* Make chop the alias and rtrim the main function, in order to get automagicallyJeroen van Wolffelaar2001-09-231-4/+4
| | | | | generated alias-listings correct.
* proto fixes "double" -> "float"Hartmut Holzgraefe2001-09-211-1/+1
|
* don't use boyer_str_to_str. It is experimentalSascha Schumann2001-09-211-1/+1
|
* fix strtr() when called with two parameters. this has been broken for some time!Thies C. Arntzen2001-09-131-1/+1
| | | | | | guys, when "optimizing" functions you _shoudl_ write a testcase for the working function and make _sure_ that it works afterwards!
* - Really fix nl2br now... it's actaulyl faster nowDerick Rethans2001-09-091-13/+15
|
* - Fix for bug 11904Derick Rethans2001-09-091-2/+15
| | | | | #- This is possibly not the best solution... feel free to improve
* I should really learn how to spellSterling Hughes2001-09-061-2/+2
|
* avoid lowercasing the stringSterling Hughes2001-09-061-0/+4
|
* Fixed some protos.Egon Schmid2001-09-041-42/+42
|
* Thanks sebastianSterling Hughes2001-09-041-1/+1
| | | | | # I really like this whole qa team thingy
* update php_trim as well...Sterling Hughes2001-09-041-1/+1
|
* fix crash bugSterling Hughes2001-09-041-7/+7
|
* tabs -> spacesSterling Hughes2001-09-041-2/+2
|