summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_unicode.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Fixed bug #76319Nikita Popov2018-05-251-2/+2
| | | | | | While at it, also make sure that mbstring case conversion takes into account the specified substitution character and substitution mode.
* year++Xinchen Hui2018-01-021-1/+1
|
* Fixed bug #65544 and #71298Nikita Popov2017-07-281-0/+12
|
* Implement full case mappingNikita Popov2017-07-281-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement full case mapping according to SpecialCasing.txt and also full case folding according to CaseFolding.txt (F). There are a number of caveats: * Only language-agnostic and unconditional full case mapping is implemented. The only language-agnostic conditional case mapping rule relates to Greek sigma in final position (Final_Sigma). Correctly handling this requires both arbitrary lookahead and lookbehind, which would require some larger changes to how the case mapping is implemented. This is a possible future extension. * The only language-specific handling that is implemented is for Turkish dotted/undotted Is, if the ISO-8859-9 encoding is used. This matches the previous behavior and makes sure that no codepoints not supported by the encoding are produced. A future extension would be to also handle the Turkish mappings specified by SpecialCasing.txt based on the mbfl internal language. * Full case folding is implemented, but case-insensitive mb_* operations continue to use simple case folding. The reason is that full case folding of the haystack string may change the position at which a match occurred. This would have to be mapped back into the position in the original string. * mb_convert_case() exposes both the full and the simple case mapping / folding, where full is the default. The constants are: * MB_CASE_LOWER (used by mb_strtolower) * MB_CASE_UPPER (used by mb_strtolower) * MB_CASE_TITLE * MB_CASE_FOLD * MB_CASE_LOWER_SIMPLE * MB_CASE_UPPER_SIMPLE * MB_CASE_TITLE_SIMPLE * MB_CASE_FOLD_SIMPLE (used by case-insensitive operations)
* Use case-folding for case insensitive comparisonsNikita Popov2017-07-281-0/+1
| | | | Instead of using lowercasing.
* Drop implementation-specific character propertiesNikita Popov2017-07-281-29/+3
| | | | | No point in keeping around non-standard character properties if we're not using them and most are not even being populated.
* Optimize php_unicode_is_lower/upper for ASCIINikita Popov2017-07-201-2/+18
|
* Directly accept encoding in php_unicode_convert_case()Nikita Popov2017-07-191-2/+4
| | | | | | As a side-effect mb_strtolower() and mb_strtoupper() now correctly handle a NULL encoding parameter by using the internal encoding. This is what caused the two test changes.
* Optimize php_unicode_is_prop()Nikita Popov2017-07-191-125/+116
| | | | | | | | Do not try to extract the properties from a bitmask. Instead make the function variadic and pass all properties individually. Also add a php_unicode_is_prop1() function to check only a single property.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-3/+3
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-1/+1
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - MFH: Fixed warnings.Moriyoshi Koizumi2008-07-241-2/+2
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Reverted the changes because the problem was elsewhere.Moriyoshi Koizumi2002-12-021-1/+1
|
* Fixing build on WIn32Frank M. Kromann2002-12-021-1/+1
| | | | | MBREGEX is disabled for now. 5 mbre_* functions are undefined on WIn32
* MFB (made mbstring compile on windows again).Edin Kadribasic2002-11-131-2/+2
|
* (PHP mb_convert_case) Add function that will convert the case of a stringWez Furlong2002-09-261-0/+201
Respecting it's encoding (or the internal encoding).