File: |
src/voku/helper/UTF8.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Class source |
Class: |
Portable UTF-8
Manipulate UTF-8 text strings in pure PHP |
Author: |
By Lars Moelleken |
Last change: |
Apply fixes from StyleCI
[+]: fix for issue #108
... and fix phpstan reported stuff.
[!]: removed "deprecated" methods
[+]: test with PHP 8.1
[~]: "UTF8" -> micro optimizations + phpdoc improvments
[~]: "UTF8" -> micro optimizations
[+] "UTF8::rawurldecode()" + "UTF8::urldecode()" -> optimize performance
[+] "UTF8::normalize_whitespace()" -> can now also remove "control characters" if needed v2
[+] "UTF8::normalize_whitespace()" -> can now also remove "control characters" if needed
[+] "UTF8::is_printable()" -> fix for non-printable control characters
[+]: use native functions from PHP 8.0 v2
[+]: use native functions from PHP 8.0
[+]: try to run test for php 8
[~]: optimize performance by re-using the result of "strlen()"
[+]: "UTF8::str_obfuscate()" + tests added
[~]: "UTF8::str_split()" -> replace ```Bootup::is_php('7.4')``` usage with ```\function_exists('mb_str_split')```
-> https://github.com/voku/portable-utf8/pull/99#issuecomment-654817203
[*]: optimize phpdocs v2
[~]: optimize phpdocs
+ add more tests
+ try to fix phpstan.neon config
trim('0002', '0') returns '0002'
expected is '2'
(bool)('0') is false
the same problem is in ltrim and rtrim
[*]: auto code-style fixes only
[+]: use "voku/simple-php-code-parser" for building the "README"
[+]: "README.md" -> skip "deprecated" methods
[+]: fix errors reported by phpstan (level: max)
[*]: update the changelog
[~]: move examples into the code
[~]: remove default parameter usages
[*]: autogenerated documentation v2.3
[*]: autogenerated documentation v2.2
[+]: add "UTF8::css_identifier()"
+ autogenerated documentation, this needs some more love
[-]: "UTF8::is_utf8_string()" -> clean-up
-> remove unneeded variable only
[+]: fix "UTF8::is_utf8*" -> big thanks @daniel-jeffery
"The UTF8::is_utf8_string function is incorrectly detecting UTF8 encoding when the last byte in a string forms an incomplete multibyte character." - https://github.com/voku/portable-utf8/issues/94
[+]: fix some php notices (php 7.0)
[+]: fix some php notices (php 7.4)
[+]: fix some php notices
|
Date: |
2 years ago |
Size: |
449,789 bytes |
|
|
|