php-patchwork-utf8 1.1.7-1 (i386 binary) in ubuntu trusty
Patchwork UTF-8 provides both a portability layer for Unicode handling in PHP,
and a class that mirrors the quasi complete set of native string functions,
enhanced to UTF-8 grapheme clusters awareness.
.
Patchwork UTF-8 provides pure PHP implementations for mbstring, iconv, and
intl. The following set of portability-
on a server even if those extensions are not enabled:
.
* utf8_encode, utf8_decode,
* mbstring: mb_convert_
mb_
mb_strpos, mb_strrpos, mb_strtolower, mb_strtoupper,
mb_
mb_strrichr, mb_strripos, mb_strstr,
* iconv: iconv, iconv_mime_decode, iconv_mime_
iconv_
ob_
* intl: Normalizer, grapheme_extract, grapheme_stripos, grapheme_stristr,
grapheme_
grapheme_
.
The Patchwork\Utf8 class implements the quasi-complete set of native string
functions that need UTF-8 grapheme clusters awareness. Function names,
arguments and behavior carefully replicates native PHP string functions.
.
Some more functions are also provided to help handling UTF-8 strings
.
* isUtf8(): checks if a string contains well formed UTF-8 data,
* toAscii(): generic UTF-8 to ASCII transliteration,
* strtocasefold(): unicode transformation for caseless matching,
* strtonatfold(): generic case sensitive transformation for collation
matching
.
Mirrored string functions are: strlen, substr, strpos, stripos, strrpos,
strripos, strstr, stristr, strrchr, strrichr, strtolower, strtoupper,
wordwrap, chr, count_chars, ltrim, ord, rtrim, trim, str_ireplace, str_pad,
str_shuffle, str_split, str_word_count, strcmp, strnatcmp, strcasecmp,
strnatcasecmp, strncasecmp, strncmp, strcspn, strpbrk, strrev, strspn, strtr,
substr_compare, substr_count, substr_replace, ucfirst, lcfirst, ucwords,
number_format, utf8_encode, utf8_decode.
Details
- Package version:
- 1.1.7-1
- Status:
- Published
- Component:
- universe
- Priority:
- Optional
Downloadable files
- php-patchwork-utf8_1.1.7-1_all.deb (492.9 KiB)
Package relationships
- Depends on: