mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-11-16 09:34:09 +00:00
Added support for contains function
This commit is contained in:
@@ -79,6 +79,17 @@ final String result = collapseWhitespace(title);
|
||||
// result = "foo bar";
|
||||
```
|
||||
|
||||
## contains(value, needle, caseSensitive)
|
||||
|
||||
Verifies that the needle is contained in value.
|
||||
|
||||
```java
|
||||
boolean result = contains("foo bar", "bazz", false);
|
||||
// result = false
|
||||
|
||||
boolean result = contains("foo bar", "FOO");
|
||||
// result = true
|
||||
```
|
||||
|
||||
|
||||
## Other functions that can be added
|
||||
|
||||
Reference in New Issue
Block a user