File: tests/Utf8GlobalPart2Test.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  Portable UTF-8  >  tests/Utf8GlobalPart2Test.php  
File: tests/Utf8GlobalPart2Test.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
Last change: [+]: enable nearly all phpstorm inspections

- do not use "=== false" | "=== true" for "bool" types
- "GRAPHEME_CLUSTER_RX" -> is not used anymore and is now deprecated
- fix "UTF8::decode_mimeheader" fallback -> now we always use the symfony polyfill (mb_decode_mimeheader has different results) + tests
- fix "UTF8::get_unique_string()" -> use "mt_rand" as fallback
- fix "UTF8::strtr()" -> now it works also with arrays + tests
- fix phpdoc for "UTF8::normalize_line_ending()"
- fix phpdoc for "UTF8::split()" & "UTF8::str_split()"
- add "UTF8::str_split_array()"
- add "UTF8::stripos_in_byte()"
- use more type checks for parameters
- optimize "UTF8::filter()"
- optimize "UTF8::is_url()" + fix deprecated php (>= 7.3) constants
- optimize "UTF8::str_limit_after_word()"
- optimize "UTF8::substr()"
- optimize "UTF8::str_capitalize_name_helper()" -> performance -> use break
- add many new tests
[+]: add "to_int()" && "to_string()" v2
[+]: add "to_int()" && "to_string()"
Date: 9 months ago
Size: 59,669 bytes

 

You need to be a registered user and login to get this file.

1,567,719 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo

For more information send a message to info at phpclasses dot org.