summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
Commit message (Collapse)AuthorAgeFilesLines
* - MFH: Fixed bug #30630: Added a BSD based strtod function that isDerick Rethans2004-11-031-1/+1
| | | | | locale-independent. (PHP part)
* MFH: Fix compile with c++ (bug #26519)foobar2003-12-041-1/+1
|
* MFH: made strip_tags() binary safeMoriyoshi Koizumi2003-02-241-1/+1
|
* MFH: Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Renamed word_count to str_word_count to comply with naming conventions.Ilia Alshanetsky2002-10-171-1/+1
| | | | | Thanks Andi, for catching this oversight.
* Added word_count() function that allows counting of words inside a string.Ilia Alshanetsky2002-10-171-0/+1
| | | | | The function also allows the user to retrieve all the words from a string.
* Fixed bug #19865Ilia Alshanetsky2002-10-111-1/+1
|
* Optimizations to various php string functions substr_count(), strrev(),Ilia Alshanetsky2002-10-091-8/+13
| | | | | nl2br(), php_addslashes() and php_memnstr().
* str_shuffle() function added. Like shuffle() for arrays - however theAndrey Hristov2002-09-251-0/+1
| | | | | | algorithm for creating the permutation is quite simple. More like the implementation of shuffle() for 4.2.1 .
* Implement filter API for streams.Wez Furlong2002-08-201-0/+3
| | | | | | | | | | | | | | | | | | Filters can be stacked onto a stream; more details will follow in docs and on php-dev. Implement "string.rot13" filter Allows the following script: $fp = fopen("file.txt", "r"); stream_filter_prepend($fp, "string.rot13"); // File contents will be subject to a rot13 transformation before // being output. fpassthru($fp); fclose($fp);
* added money_format() functionHartmut Holzgraefe2002-08-021-1/+3
| | | | | | | 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 the trim functions use same base function. (less code :)foobar2002-07-131-5/+1
| | | | | | | - 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)
* Adding missing prototypeFrank M. Kromann2002-07-031-0/+4
|
* Make state parameter of php_strip_tags passed by reference.Wez Furlong2002-03-201-1/+1
| | | | | Move state tracking to stream structure.
* Maintain headers.Sebastian Bergmann2002-02-281-2/+2
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Make chop the alias and rtrim the main function, in order to get automagicallyJeroen van Wolffelaar2001-09-231-1/+1
| | | | | generated alias-listings correct.
* - Really fix nl2br now... it's actaulyl faster nowDerick Rethans2001-09-091-1/+1
|
* update php_trim as well...Sterling Hughes2001-09-041-1/+1
|
* fix crash bugSterling Hughes2001-09-041-4/+4
|
* WhitespaceZeev Suraski2001-08-111-1/+1
|
* @- Added vprintf() and vsprintf() functions that allow passing all argumentsAndrei Zmievski2001-08-071-0/+2
| | | | | @ after format as an array. (Andrei)
* more tsrm cleanupSascha Schumann2001-08-061-5/+5
|
* Fix ZTS build.Sebastian Bergmann2001-08-051-1/+1
|
* Added proto for php_charmask in the .hJeroen van Wolffelaar2001-08-051-0/+1
|
* Fix Win32 (and maybe other ZTS) builds.Sebastian Bergmann2001-08-041-1/+1
|
* Un-revert patchJeroen van Wolffelaar2001-08-031-0/+1
|
* Reverting last patch, segfaults.Jeroen van Wolffelaar2001-08-031-1/+0
|
* - Added new parameter to [l|r]trim, to specify _what_ to trimJeroen van Wolffelaar2001-08-031-0/+1
| | | | | | @- Added optional second parameter to trim, chop and ltrim. You can @ now specify which characters to trim (jeroen)
* Drop memchr() in php_memnstr in favor of manual scanning. This reducesSascha Schumann2001-07-211-6/+12
| | | | | the complexity of the function and is about 20% faster on Linux/x86.
* (PHP nl_langinfo) Added function when provided by OSWez Furlong2001-07-041-0/+4
| | | | | | | | | (PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset @- Added nl_langinfo() (when OS provides it) that returns locale information. (Wez Furlong) # There are a lot of constants used by nl_langinfo; should we do something # along the lines of what we do for syslog?
* @added optional suffix removal parameter to basename() (Hartmut)Hartmut Holzgraefe2001-06-231-1/+1
| | | | | | added optional suffix removal parameter to basename() this makes it more simmilar to the basename command
* fixed a (C++) warning about implicit conversion from void*Stephen van Egmond2001-03-171-1/+1
|
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Put these back where they belong. They weren't necessary unless ZTS andSean Bright2001-01-171-1/+1
| | | | | HAVE_LOCALECONV were both defined.
* Added string comparison function strcoll(). It uses the current locale toSean Bright2001-01-171-1/+4
| | | | | | do the comparisons. @- Added localeconv() and strcoll() functions for localization. (Sean)
* Nuke a couple of warningsZeev Suraski2001-01-151-0/+6
|
* Added localeconv() function. Operates similarly to localeconv() defined inSean Bright2001-01-141-0/+1
| | | | | locale.h. Should work well under non-ZTS as well as ZTS.
* added iconv extension.Rui Hirokawa2001-01-091-3/+0
|
* added iconv_set_encoding() to change the encoding setting.Rui Hirokawa2001-01-081-0/+1
|
* added a output handler function ob_iconv_handler which tranforms output ↵Rui Hirokawa2001-01-081-0/+1
| | | | encoding using iconv().
* @Added iconv() function (using libc or libiconv) (Stig)Stig Bakken2000-12-151-0/+1
|
* Move php_memnstr to the header file, so that the function body is availableSascha Schumann2000-09-271-1/+15
| | | | | in all compilation units (note the static linkage).
* @- Added the pathinfo() function. (Sterling)Sterling Hughes2000-09-101-0/+1
|
* Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.David Croft2000-07-241-22/+10
| | | | | | | | | Added a few RCS $Id$ tags. # Note: I have avoided changing any .h files if the corresponding .c file # had not already been changed as I am not sure if there are any legal # issues here. So some extensions still have PHP 3 headers.
* wordwrap function from Chris Russel <russel@yorku.ca>David Croft2000-07-221-0/+1
| | | | | | | | | | | | differences from his patch: - wordwrap width and wrap-string now optional parameters (default to 75 and "\n" respectively) - wordwrap_byte is now just an automatic special case of wordwrap - Zend API compliant @- Added new function "wordwrap" to wordwrap long strings from Chris @ Russel <russel@yorku.ca> (David Croft)
* @- Updated str_pad() to be able to pad on left/right/both sides. (Andrei)Andrei Zmievski2000-07-081-0/+2
|
* Rename macros which begin with underscore to appropiate macros. The generalSascha Schumann2000-07-031-3/+3
| | | | | | | rule is: macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
* @- Added str_pad() for padding a string with an arbitrary string on left orAndrei Zmievski2000-06-061-0/+1
| | | | | | | | | @ right. (Andrei) Added str_pad() for padding a string with an arbitrary string on left or right. # With all those macros, the code is starting to eerily resemble Perl's guts.
* Added sscanf() function.Clayton Collie2000-06-061-0/+1
|