Project

General

Profile

Actions

Task #59132

closed

Move GenralUtility::isFirstPartOfStr() to StringUtility::isFirstPartOfStr()

Added by Tobias Braumann almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2014-05-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

It's very confusing when looking for string operations and you find only the function isLastPartOfString() in StringUtility. So I didn't expect any other string operations, but then i found my needed function isFirstPartOfStr() in GenralUtility?! Maybe there are more string operations that should move to StringUtility.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #45499: \TYPO3\CMS\Utility\StringUtility is not used in core - consider deprecationClosed2013-02-15

Actions
Actions #1

Updated by Markus Klein almost 10 years ago

Hi Tobias!

Yes our swiss army knife GeneralUtility holds way too many functions. But we didn't touch functions like isFirstPartOfStr() because they are in place for a very long time and are used a lot.
So a solution would be to duplicate it for the StringUtility class. Don't know when the time is right to deprecate it from GeneralUtility.

Actions #2

Updated by Tobias Braumann almost 10 years ago

That make senses! Then duplicate is maybe a good solution for now. So people have time to change from GeneralUtility to StringUtility.

Actions #3

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #6

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #7

Updated by Gerrit Code Review almost 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #8

Updated by Gerrit Code Review almost 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #9

Updated by Gerrit Code Review almost 10 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #10

Updated by Gerrit Code Review almost 10 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #11

Updated by Gerrit Code Review almost 10 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30611

Actions #12

Updated by Markus Klein almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF