ef127f6855
Fixes #5316 : Added startsWith()
and endsWith()
to yii\helpers\StringHelper
. Methods are binary-safe, multibyte-safe and optionally case-insensitive
2014-10-05 13:58:56 +04:00
7af92173b1
length arg of byteSubstr is now optional
2014-07-30 13:29:01 +02:00
a620342315
Adjusted phpdoc, tests and changelog for StringHelper::truncate and StringHelper::truncateWords
2014-04-29 18:23:48 +04:00
1c80b9d2cc
Test case for new truncate methods.
...
Test case for new truncate methods.
2014-04-02 08:51:02 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
26767735dc
Renamed byte methods, moved path methods back to StringHelper
2013-12-04 14:26:47 +01:00
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
2013-12-04 09:48:01 +01:00
1c24b3e0d8
removed TestCase and WebTestCase.
2013-11-16 21:30:20 -05:00
949dda5fdb
tagged tests with @group tags
2013-09-14 12:49:47 +02:00
0596fa82fd
code style fixes
2013-08-13 02:43:47 +04:00
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00
641e6ee7cf
ported inflection methods from StringHelper to Inflector helper class
2013-05-22 08:34:17 +02:00
5575f53657
CS fixes.
2013-05-11 15:38:07 +06:00
776162b05e
created StringHelper::basename()
...
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
4be9e195c2
Add Newlines
...
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
9da81894be
moved helper test from util namespace to helpers namespace, added tests for StringHelper
2013-03-29 18:23:50 +04:00