rfc:add_str_begin_and_end_functions

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
Next revisionBoth sides next revision
rfc:add_str_begin_and_end_functions [2019/07/05 02:01] – Added references to other languages wkhudgins92rfc:add_str_begin_and_end_functions [2019/07/05 08:32] – Use new function names in RFC title nikic
Line 1: Line 1:
-====== PHP RFC: Add str begin and end functions ======+====== PHP RFC: Add str_starts_withs(), str_ends_with() and related functions ======
   * Version: 0.4   * Version: 0.4
   * Date: 2016-08-01 (use today's date here) **Updated: 2019-06-18**   * Date: 2016-08-01 (use today's date here) **Updated: 2019-06-18**
   * Author: Will Hudgins, will@wkhudgins.info   * Author: Will Hudgins, will@wkhudgins.info
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: https://wiki.php.net/rfc/add_str_begin_and_end_functions   * First Published at: https://wiki.php.net/rfc/add_str_begin_and_end_functions
  
Line 50: Line 50:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-Next PHP 7.release.+Next eligible PHP 7.release.
  
 ===== RFC Impact ===== ===== RFC Impact =====
Line 76: Line 76:
  
 ===== Future Scope ===== ===== Future Scope =====
 +
 Once this feature is approved and added, it will not need any future improvements. Once this feature is approved and added, it will not need any future improvements.
  
-===== Proposed Voting Choices ===== +===== Vote ===== 
-This project requires a 2/3 majority to be approved.+ 
 +Voting closes 2019-07-20. 
 + 
 +<doodle  
 +title="Do you want str_starts_with, str_starts_with_ci, str_ends_with, and str_ends_with_ci functions in PHP 7.4?" auth="user" voteType="single" closed="no"> 
 +   * yes 
 +   * no 
 +</doodle> 
 + 
 +---- 
 + 
 +<doodle  
 +title="Do you want mb_ str_starts_with, mb_str_starts_with_ci, mb_str_ends_with, and mb_str_ends_with_ci functions in PHP 7.4?" auth="user" voteType="single" closed="no"> 
 +   * yes 
 +   * no 
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 92: Line 108:
 ===== References ===== ===== References =====
 Implementation of similar methods/functions in other languages: Implementation of similar methods/functions in other languages:
-http://ruby-doc.org/core-2.1.1/String.html#method-i-start_with-3F +
-https://golang.org/pkg/strings/#HasPrefix +
-https://hackage.haskell.org/package/MissingH-1.4.0.1/docs/Data-String-Utils.html#v:startswith+
 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
 +
 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
 +
 https://docs.python.org/3/library/stdtypes.html?highlight=startswith#str.startswith https://docs.python.org/3/library/stdtypes.html?highlight=startswith#str.startswith
 +
 https://docs.python.org/3/library/stdtypes.html?highlight=startswith#str.endswith https://docs.python.org/3/library/stdtypes.html?highlight=startswith#str.endswith
 +
 https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#startsWith(java.lang.String) https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#startsWith(java.lang.String)
 +
 +http://ruby-doc.org/core-2.1.1/String.html#method-i-start_with-3F
 +
 https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#startsWithIgnoreCase-java.lang.CharSequence-java.lang.CharSequence- https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#startsWithIgnoreCase-java.lang.CharSequence-java.lang.CharSequence-
 +
 +https://golang.org/pkg/strings/#HasPrefix
 +
 +https://hackage.haskell.org/package/MissingH-1.4.0.1/docs/Data-String-Utils.html#v:startswith
  
 Related feature request: [[bugid@50434]]. Related feature request: [[bugid@50434]].
rfc/add_str_begin_and_end_functions.txt · Last modified: 2019/07/22 08:47 by nikic