rfc:grapheme_str_split

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:grapheme_str_split [2024/03/09 06:27] – Switch to Under Discussion for grapheme_str_split function youkidearitairfc:grapheme_str_split [2024/04/10 19:21] (current) – Implemented grapheme_str_split function youkidearitai
Line 3: Line 3:
   * Date: 2024-03-04   * Date: 2024-03-04
   * Author: Yuya Hamada, youkidearitai@gmail.com   * Author: Yuya Hamada, youkidearitai@gmail.com
-  * Status: Under Discussion+  * Status: Implemented
   * First Published at: http://wiki.php.net/rfc/grapheme_str_split   * First Published at: http://wiki.php.net/rfc/grapheme_str_split
  
 ===== Introduction ===== ===== Introduction =====
-I noticed PHP does not have a grapheme cluster based str_split function. So I think need str_split for grapheme cluster, grapheme_str_split function using ICU. Creating this function in the Intl extension would provide stronger support for grapheme clusters. This feature will allow to correctly handle emoji and Variation Selectors.+I noticed PHP does not have a grapheme cluster based str_split function. So I think need str_split for grapheme cluster, grapheme_str_split function using [[https://unicode-org.github.io/icu/userguide/icu4c/|ICU]]. Creating this function in the Intl extension would provide stronger support for grapheme clusters. This feature will allow to correctly handle emoji and Variation Selectors.
  
 grapheme_str_split function is correctly support for grapheme cluster. grapheme_str_split function is correctly support for grapheme cluster.
Line 50: Line 50:
 </code> </code>
  
-Examples of other languages. Ruby is already support grapheme clusters as [[https://ruby-doc.org/3.2.2/String.html#method-i-grapheme_clusters|String#each_grapheme_clusters]]+Examples of other languages. Ruby is already support grapheme clusters as [[https://ruby-doc.org/3.2.2/String.html#method-i-grapheme_clusters|String#grapheme_clusters]]
  
 <code> <code>
Line 106: Line 106:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-next PHP 8.x+PHP 8.4
  
 ===== RFC Impact ===== ===== RFC Impact =====
Line 135: Line 135:
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
-Include these so readers know where you are heading and can discuss the proposed voting options.+<doodle title="Add grapheme cluster for str_split function: grapheme_str_split" auth="youkidearitai" voteType="single" closed="false" closeon="2024-04-10T00:00:00Z"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
  
rfc/grapheme_str_split.1709965662.txt.gz · Last modified: 2024/03/09 06:27 by youkidearitai