rfc:unicode_text_processing

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
rfc:unicode_text_processing [2022/12/16 13:54] derickrfc:unicode_text_processing [2022/12/18 17:29] – Fix several typos or difficult wording theodorejb
Line 32: Line 32:
  
 The proposal is to make the ''Text'' class part of the PHP core. This would The proposal is to make the ''Text'' class part of the PHP core. This would
-mean that it is therefore always available to user. As the implementation+mean that it is therefore always available to users. As the implementation
 requires ICU, this would also mean that PHP will depend on the ICU library. requires ICU, this would also mean that PHP will depend on the ICU library.
  
Line 109: Line 109:
 ==== Construction ==== ==== Construction ====
  
-This section lists all the method that construct a Text object.+This section lists all the methods that construct a Text object.
  
 === __construct(string $text, string $locale = 'root/standard') : \Text === === __construct(string $text, string $locale = 'root/standard') : \Text ===
Line 122: Line 122:
 === static Text::create(string $text, string $locale = 'root/standard') : \Text === === static Text::create(string $text, string $locale = 'root/standard') : \Text ===
  
-The Symfony String packageoffers a static function to construct a String+The Symfony String package offers a static function to construct a String
 through a single-character function (''u''), which you can import into the through a single-character function (''u''), which you can import into the
 file scope (with ''use''). file scope (with ''use'').
  
 This method solves a similar use, so that you can shorten ''new Text(…)'' to This method solves a similar use, so that you can shorten ''new Text(…)'' to
-''t'' after having imported the method into the file's scope with: +''t'' after having imported the method into the file's scope with (for example)
-For example with ''use \Text::create as t''.+''use \Text::create as t''.
  
 === static Text::join(array(string|Text) $elements, string|Text $separator, string $collator = NULL) : \Text === === static Text::join(array(string|Text) $elements, string|Text $separator, string $collator = NULL) : \Text ===
Line 138: Line 138:
  
 If the ''$collator'' is not specified, it uses the collection of the first If the ''$collator'' is not specified, it uses the collection of the first
-element in the ''$elements'' array. This will also be then set on the created+element in the ''$elements'' array. This will then also be set on the created
 object. object.
  
rfc/unicode_text_processing.txt · Last modified: 2022/12/21 11:48 by derick