rfc:ustring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
rfc:ustring [2014/10/21 07:00] – created krakjoerfc:ustring [2014/10/23 07:27] krakjoe
Line 2: Line 2:
   * Version: 0.1   * Version: 0.1
   * Date: 2014-10-21   * Date: 2014-10-21
-  * Author: krakjoe, Phil Sturgeon+  * Author: Phil Sturgeon, Joe Watkins
   * Status: Under Discussion   * Status: Under Discussion
   * First Published at: http://wiki.php.net/rfc/ustring   * First Published at: http://wiki.php.net/rfc/ustring
Line 10: Line 10:
 UString aims to tackle the issues of working with Unicode strings in PHP, via a core, default-enabled extension. UString aims to tackle the issues of working with Unicode strings in PHP, via a core, default-enabled extension.
  
-It does this via adding a new class called UString. This class will contain various methods to allow working with charsets such as UTF-8 (default), UTF-16 and several others. UString will provide a userland API, and a backend API for using various different backends. The current implementation supports ICU, but other backends have been suggested, including a native Windows backend.+It does this via adding a new class called UString. This class will contain various methods to allow working with charsets such as UTF-8 (default), UTF-16 and several others.  
 + 
 +UString provides an extension API, so that other extensions may easily work with and return UString instances.
  
 Having UString sit on top of the ICU library will cover most cases, and it is powerful and has been battle tested for years. Having UString sit on top of the ICU library will cover most cases, and it is powerful and has been battle tested for years.
Line 39: Line 41:
  
 Frameworks and components will be able to use UString as a base for their own string classes, which many of them already do. Frameworks and components will be able to use UString as a base for their own string classes, which many of them already do.
-Not a full String API Replacement+ 
 +===== Not a full String API Replacement =====
  
 Many people want to see the string library replaced with a whole new API. Many people don't. This does not try to replace all string usage in PHP, it only aims to replace the main uses of mbstring with a more performant alternative. Many people want to see the string library replaced with a whole new API. Many people don't. This does not try to replace all string usage in PHP, it only aims to replace the main uses of mbstring with a more performant alternative.
Line 63: Line 66:
  
 ===== References ===== ===== References =====
-Links to external references, discussions or RFCs+http://news.php.net/php.internals/78174
rfc/ustring.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1