Graham Campbell
722f30d132
CS fixes
2014-09-27 17:23:34 +01:00
Daniel St. Jules
26a0fed52e
Merge and fix containsAll
2014-09-27 09:07:37 -07:00
Daniel St. Jules
1c0026ca00
Cleanup containsAny
2014-09-27 08:42:51 -07:00
Lucas Michot
da5ee7057d
Add containsAll
2014-09-23 23:51:27 +02:00
Lucas Michot
410ceac663
Add containsAny
2014-09-23 23:48:28 +02:00
Lucas Michot
bc11fce93e
Add assertStringy shortcut
2014-09-23 22:48:14 +02:00
Daniel St. Jules
c577684e0a
Renamed toTitleCase
2014-09-14 09:27:46 -07:00
Lucas Michot
681463de87
Add casetitle function
2014-09-14 14:16:09 +02:00
Daniel St. Jules
8fe30d18b7
Fix toAscii failing to remove remaining non-ascii characters
2014-04-19 00:49:46 -04:00
Daniel St. Jules
ae7527ad4a
Remove leading or trailing replacement from slugified string, if present
2014-04-19 00:33:59 -04:00
Yuri Druzhkov
f74f535b78
add preg_quote, add test on regex special symbols
2014-04-15 10:09:11 +04:00
Yuri Druzhkov
5c5087db13
dashes fixes
2014-04-01 18:03:48 +04:00
Daniel St. Jules
e46797a9f8
Updated pad methods
2014-03-19 00:40:36 -04:00
Daniel St. Jules
f0805f522d
Merge branch 'pr/20' after cleanup
2014-03-18 23:36:52 -04:00
Bilge
6103eca714
Rewrote Stringy::pad to be DRY.
...
Fixed "Class 'CommonTest' not found" error when running specific tests in PHPUnit by including tests directory in Composer's autoloader.
2014-03-18 23:34:54 -04:00
Daniel St. Jules
7832e22e09
Update require paths in tests
2014-03-09 20:12:53 -04:00
Daniel St. Jules
6e7415a9f5
Merge pull request #24 from maximal/patch-1
...
Remove conflicting transliteration for Bulgarian
2014-03-05 19:23:16 -05:00
MaximAL
cd41723b12
Update CommonTest.php
2014-02-19 10:43:06 +03:00
Daniel St. Jules
404909ffaa
Fixes #19 : Handle consecutive invalid chars in slugify
2014-02-17 11:22:59 -05:00
Daniel St. Jules
1965da2e39
Made str and encoding protected, added getEncoding
...
Neither should be private, so as to allow users to easily extend the
class
2014-02-16 21:22:32 -05:00
Bilge
5d7e9a8d36
Optimized replace() and collapseWhitespace() by reusing regexReplace().
...
Fixed bug in replace() where replacement string was being escaped with preg_quote() and added matching tests.
2014-02-14 01:26:55 +00:00
Daniel St. Jules
9399f7a694
Fix isJSON
...
Thanks to Drainedsoul
2014-02-13 06:32:54 -05:00
Daniel St. Jules
220d4f95c0
Fix indentation in test - it was bugging me
2014-02-12 19:07:38 -05:00
Daniel St. Jules
b3e922c517
Start using PSR-4
2014-02-12 19:02:19 -05:00
Daniel St. Jules
3f5b6a2413
Update ArrayAccess interface implementation, add details to readme
2014-02-06 18:27:21 -05:00
Daniel St. Jules
ebc58a51ef
Stringy\Stringy now implements the ArrayAccess interface
2014-02-06 00:07:20 -05:00
Daniel St. Jules
1c13f2ad7e
Renamed count to countSubstr, implemented Countable interface
2014-02-03 23:41:57 -05:00
Daniel St. Jules
7313dcc07e
Fix failing tests, remove PHP 5.4 short array syntax
2014-02-02 16:10:06 -05:00
Daniel St. Jules
f14e8c16a4
Implemented IteratorAggregate, added chars()
2014-02-02 16:07:47 -05:00
Daniel St. Jules
c230885a13
Require objects to have a __toString method, update readme
2013-12-15 01:08:23 -05:00
Daniel St. Jules
1f25d0c793
Merge Pull Request #18
2013-12-15 00:15:34 -05:00
Ivan Kerin
d54628e6ae
Support Bulgarian in toAscii
...
The “proper” bulgarian translitaration should encode ь to y [1],
However, since its not really that important to understand the actual
word, very rearly used and breaks compatibility with Russian, it might
be best to just leave it be, since Russian is a much larger torget.
[1] http://en.wikipedia.org/wiki/Romanization_of_Bulgarian
2013-12-13 11:05:23 +00:00
gotterdemarung
3458fd79fd
Stringy->$str became private to ensure its sting content and guarantee zero-exception __toString() execution
2013-12-10 22:34:19 +02:00
gotterdemarung
6e5e5e055f
primitives check in constructor & toString
2013-12-10 22:19:42 +02:00
gotterdemarung
75404a0338
Stringy must correctly handle non-string arguments and implicitly cast to string to avoid problems in __toString() method
2013-12-10 22:15:28 +02:00
Glynn Forrest
906f217dc1
Adding optional $replacement parameter to slugify.
2013-11-26 14:11:41 +00:00
Daniel St. Jules
f6085ed2cb
Cleanup tests a bit
...
Getting over my irrational fear of multi-line return statements
2013-09-27 20:13:04 -04:00
Daniel St. Jules
88145e83e8
Update replace() to correctly apply preg_quote to pattern and replacement
2013-09-14 23:59:46 -04:00
Daniel St. Jules
9bd5a9c0c8
Added regexReplace()
2013-09-14 23:45:18 -04:00
Daniel St. Jules
41ea0277b2
Added $caseSensitive to count()
2013-09-14 14:58:11 -04:00
Daniel St. Jules
61cd5f5f4d
Added toLowerCase() and toUpperCase()
2013-09-14 11:22:52 -04:00
Daniel St. Jules
ea20aebc91
Added $caseSensitive to contains()
2013-09-14 01:32:52 -04:00
Daniel St. Jules
02da00c433
Merge branch 'pr/12'
2013-09-05 22:41:19 -04:00
Borales
07f23d6165
Adding cyrillic letters
2013-09-04 18:23:50 +03:00
ChristianGaertner
bc175f0e12
Added test to cover 100% + fixed fatal error
2013-09-04 08:02:56 +02:00
Daniel St. Jules
a667c4aa6a
Fix and merge branch 'isJson'
2013-08-31 19:12:46 -04:00
Lucas
cd5e897ac3
isJson() function, with tests
2013-08-31 18:43:16 -04:00
Daniel St. Jules
390671e131
Cleanup and merge branch 'isserialized'
2013-08-31 18:37:58 -04:00
Lucas
0b76c56333
function isSerialized(), with tests
2013-08-31 18:20:39 -04:00
Daniel St. Jules
5f35226926
Merge branch 'better-construct', update testConstruct and create
2013-08-27 01:34:44 -04:00