zerustech / string
ZerusTech String Component
dev-master / 1.0.x-dev
2016-10-09 07:10 UTC
Requires
- php: >=5.4
- zerustech/io: >=2.1.0-dev
This package is auto-updated.
Last update: 2025-01-09 16:06:53 UTC
README
ZerusTech String Component
The ZerusTech String Component is a library that provides classes and utilities to manipulate string.
Installation
You can install this component in 2 different ways:
Install it via Composer
$ cd <project-root-directory> $ composer require zerustech/string
Use the official Git repository zerustech/string
Examples
UTF32
This class represents the UTF32 encoding scheme.
<?php
require_once __DIR__.'/vendor/autoload.php';
use ZerusTech\Component\String\Unicode\UTF32;
// Converts UTF-32 code 0x20ac to UTF-8
UTF32::convertToUTF8(0x20ac); // 'e282ac'
// Converts UTF-32 code 0x20ac to UTF-16
UTF32::convertToUTF16(0x20ac); // '20ac'
References
License
The ZerusTech String Component is published under the MIT License.