zerustech/string

ZerusTech String Component

dev-master / 1.0.x-dev 2016-10-09 07:10 UTC

This package is auto-updated.

Last update: 2024-03-09 14:17:03 UTC


README

Build Status

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.