1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-09-08 20:20:47 +02:00

Document hasLowerCase and hasUpperCase

This commit is contained in:
Daniel St. Jules
2015-02-09 22:10:46 -08:00
parent b2386b6c33
commit 04b12c9500
3 changed files with 76 additions and 46 deletions

View File

@@ -26,6 +26,8 @@ PHP 5.3+ and HHVM. Inspired by underscore.string.js.
* [ensureRight](#ensureright)
* [first](#first)
* [getEncoding](#getencoding)
* [hasLowerCase](#haslowercase)
* [hasUpperCase](#hasuppercase)
* [humanize](#humanize)
* [insert](#insert)
* [isAlpha](#isalpha)
@@ -405,6 +407,32 @@ Returns the encoding used by the Stringy object.
S::create('fòô bàř', 'UTF-8')->getEncoding(); // 'UTF-8'
```
#### hasLowerCase
$stringy->hasLowerCase()
S::hasLowerCase(string $str [, string $encoding ])
Returns true if the string contains a lower case char, false otherwise.
```php
S::create('fòô bàř', 'UTF-8')->hasLowerCase();
S::hasLowerCase('fòô bàř', 'UTF-8'); // true
```
#### hasUpperCase
$stringy->hasUpperCase()
S::hasUpperCase(string $str [, string $encoding ])
Returns true if the string contains an upper case char, false otherwise.
```php
S::create('fòô bàř', 'UTF-8')->hasUpperCase();
S::hasUpperCase('fòô bàř', 'UTF-8'); // false
```
#### humanize
$stringy->humanize()