Clean up Unicode function names

Created on 2 May 2013, over 11 years ago
Updated 31 July 2024, about 2 months ago

#1938670: Convert unicode.inc to \Drupal\Component\Utility\Unicode β†’ comes with some PHP function wrappers. Unicode::truncate(), Unicode::mimeHeaderEncode(), etc. Some of them arn't living under the naming conventions:

  • Unicode::ucfirst()
  • Unicode::substr()

Although it is nice to have PHP wrappers be similarly named to the PHP functions, it's even nicer to have consistent coding standards.

Possible solutions:

  1. Fix the case of the functions: Unicode::ucFirst(), Unicode::subStr(), etc.
  2. Rename the functions entirely: Unicode::upperCaseFirst(), Unicode::subString(), etc.
  3. Leave as is and live with the broken coding standards
πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 39 minutes ago

Created by

πŸ‡¨πŸ‡¦Canada RobLoach Earth

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024