Skip to content

Commit e251cc0

Browse files
committed
fixed README.md
1 parent 68ff5f4 commit e251cc0

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ These are the available functions in current version of library:
3838
Appends Strings to value
3939

4040
```java
41-
import static strman.append
41+
import static strman.Strman.append
4242
append("f", "o", "o", "b", "a", "r")
4343
// result => "foobar"
4444
```
@@ -48,7 +48,7 @@ append("f", "o", "o", "b", "a", "r")
4848
Append an array of String to value
4949

5050
```java
51-
import static strman.appendArray
51+
import static strman.Strman.appendArray
5252
appendArray("f", new String[]{"o", "o", "b", "a", "r"}
5353
// result => "foobar"
5454
```
@@ -58,7 +58,7 @@ appendArray("f", new String[]{"o", "o", "b", "a", "r"}
5858
Get the character at index. This method will take care of negative indexes.
5959

6060
```java
61-
import static strman.at
61+
import static strman.Strman.at
6262
at("foobar", 0)
6363
// result => Optional("f")
6464
```
@@ -68,7 +68,7 @@ at("foobar", 0)
6868
Returns an array with strings between start and end.
6969

7070
```java
71-
import static strman.between
71+
import static strman.Strman.between
7272
between("[abc][def]", "[", "]")
7373
// result => ["abc","def"]
7474
```
@@ -78,7 +78,7 @@ between("[abc][def]", "[", "]")
7878
Returns a String array consisting of the characters in the String.
7979

8080
```java
81-
import static strman.chars
81+
import static strman.Strman.chars
8282
chars("title")
8383
// result => ["t", "i", "t", "l", "e"]
8484
```
@@ -88,7 +88,7 @@ chars("title")
8888
Replace consecutive whitespace characters with a single space.
8989

9090
```java
91-
import static strman.collapseWhitespace
91+
import static strman.Strman.collapseWhitespace
9292
collapseWhitespace("foo bar")
9393
// result => "foo bar"
9494
```
@@ -98,7 +98,7 @@ collapseWhitespace("foo bar")
9898
Verifies that the needle is contained in the value.
9999

100100
```java
101-
import static strman.contains
101+
import static strman.Strman.contains
102102
contains("foo bar","foo")
103103
// result => true
104104

@@ -111,7 +111,7 @@ contains("foo bar","FOO", false) // turning off case sensitivity
111111
Verifies that all needles are contained in value
112112

113113
```java
114-
import static strman.containsAll
114+
import static strman.Strman.containsAll
115115
containsAll("foo bar", new String[]{"foo", "bar"})
116116
// result => true
117117

@@ -124,7 +124,7 @@ containsAll("foo bar", new String[]{"FOO", "bar"},false)
124124
Verifies that one or more of needles are contained in value.
125125

126126
```java
127-
import static strman.containsAny
127+
import static strman.Strman.containsAny
128128
containsAny("bar foo", new String[]{"FOO", "BAR", "Test"}, true)
129129
// result => true
130130
```
@@ -134,7 +134,7 @@ containsAny("bar foo", new String[]{"FOO", "BAR", "Test"}, true)
134134
Count the number of times substr appears in value
135135

136136
```java
137-
import static strman.countSubstr
137+
import static strman.Strman.countSubstr
138138
countSubstr("aaaAAAaaa", "aaa")
139139
// result => 2
140140
countSubstr("aaaAAAaaa", "aaa", false, false)
@@ -146,7 +146,7 @@ countSubstr("aaaAAAaaa", "aaa", false, false)
146146
Test if value ends with search.
147147

148148
```java
149-
import static strman.endsWith
149+
import static strman.Strman.endsWith
150150
endsWith("foo bar", "bar")
151151
// result => true
152152
endsWith("foo Bar", "BAR", false)
@@ -158,7 +158,7 @@ endsWith("foo Bar", "BAR", false)
158158
Ensures that the value begins with prefix. If it doesn't exist, it's prepended.
159159

160160
```java
161-
import static strman.ensureLeft
161+
import static strman.Strman.ensureLeft
162162
ensureLeft("foobar", "foo")
163163
// result => "foobar"
164164
ensureLeft("bar", "foo")
@@ -172,7 +172,7 @@ ensureLeft("foobar", "FOO", false)
172172
Decodes data encoded with MIME base64
173173

174174
```java
175-
import static strman.base64Decode
175+
import static strman.Strman.base64Decode
176176
base64Decode("c3RybWFu")
177177
// result => "strman"
178178
```
@@ -182,7 +182,7 @@ base64Decode("c3RybWFu")
182182
Encodes data with MIME base64.
183183

184184
```java
185-
import static strman.base64Encode
185+
import static strman.Strman.base64Encode
186186
base64Encode("strman")
187187
// result => "c3RybWFu"
188188
```
@@ -192,7 +192,7 @@ base64Encode("strman")
192192
Convert binary unicode (16 digits) string to string chars
193193

194194
```java
195-
import static strman.binDecode
195+
import static strman.Strman.binDecode
196196
binDecode("0000000001000001")
197197
// result => "A"
198198
```
@@ -202,7 +202,7 @@ binDecode("0000000001000001")
202202
Convert string chars to binary unicode (16 digits)
203203

204204
```java
205-
import static strman.binEncode
205+
import static strman.Strman.binEncode
206206
binEncode("A")
207207
// result => "0000000001000001"
208208
```
@@ -212,7 +212,7 @@ binEncode("A")
212212
Convert decimal unicode (5 digits) string to string chars
213213

214214
```java
215-
import static strman.decDecode
215+
import static strman.Strman.decDecode
216216
decDecode("00065")
217217
// result => "A"
218218
```
@@ -222,7 +222,7 @@ decDecode("00065")
222222
Convert string chars to decimal unicode (5 digits)
223223

224224
```java
225-
import static strman.decEncode
225+
import static strman.Strman.decEncode
226226
decEncode("A")
227227
// result => "00065"
228228
```
@@ -232,7 +232,7 @@ decEncode("A")
232232
Ensures that the value ends with suffix. If it doesn't, it's appended.
233233

234234
```java
235-
import static strman.ensureRight
235+
import static strman.Strman.ensureRight
236236
ensureRight("foo", "bar")
237237
// result => "foobar"
238238

@@ -248,7 +248,7 @@ ensureRight("fooBAR", "bar", false)
248248
Returns the first n chars of String
249249

250250
```java
251-
import static strman.first
251+
import static strman.Strman.first
252252
first("foobar", 3)
253253
// result => "foo"
254254
```
@@ -258,7 +258,7 @@ first("foobar", 3)
258258
Return the first char of String
259259

260260
```java
261-
import static strman.head
261+
import static strman.Strman.head
262262
head("foobar")
263263
// result => "f"
264264
```
@@ -268,7 +268,7 @@ head("foobar")
268268
Convert hexadecimal unicode (4 digits) string to string chars
269269

270270
```java
271-
import static strman.hexDecode
271+
import static strman.Strman.hexDecode
272272
hexDecode("0041")
273273
// result => "A"
274274
```
@@ -278,7 +278,7 @@ hexDecode("0041")
278278
Convert string chars to hexadecimal unicode (4 digits)
279279

280280
```java
281-
import static strman.hexEncode
281+
import static strman.Strman.hexEncode
282282
hexEncode("A")
283283
// result => "0041"
284284
```
@@ -288,7 +288,7 @@ hexEncode("A")
288288
Tests if two Strings are inequal
289289

290290
```java
291-
import static strman.inequal
291+
import static strman.Strman.inequal
292292
inequal("a", "b")
293293
// result => true
294294
```
@@ -298,7 +298,7 @@ inequal("a", "b")
298298
Inserts 'substr' into the 'value' at the 'index' provided.
299299

300300
```java
301-
import static strman.insert
301+
import static strman.Strman.insert
302302
insert("fbar", "oo", 1)
303303
// result => "foobar"
304304
```
@@ -308,7 +308,7 @@ insert("fbar", "oo", 1)
308308
Return the last n chars of String
309309

310310
```java
311-
import static strman.last
311+
import static strman.Strman.last
312312
last("foobarfoo", 3)
313313
// result => "foo"
314314
```
@@ -318,7 +318,7 @@ last("foobarfoo", 3)
318318
Returns a new string of a given length such that the beginning of the string is padded.
319319

320320
```java
321-
import static strman.leftPad
321+
import static strman.Strman.leftPad
322322
leftPad("1", "0", 5)
323323
// result => "00001"
324324
```
@@ -328,7 +328,7 @@ leftPad("1", "0", 5)
328328
This method returns the index within the calling String object of the last occurrence of the specified value, searching backwards from the offset.
329329

330330
```java
331-
import static strman.lastIndexOf
331+
import static strman.Strman.lastIndexOf
332332
lastIndexOf("foobarfoobar", "F", false)
333333
// result => 6
334334
```
@@ -338,7 +338,7 @@ lastIndexOf("foobarfoobar", "F", false)
338338
Removes all spaces on left
339339

340340
```java
341-
import static strman.leftTrim
341+
import static strman.Strman.leftTrim
342342
leftTrim(" strman")
343343
// result => "strman"
344344
```
@@ -564,4 +564,4 @@ toSnakeCase("hello world")
564564

565565
License
566566
-------
567-
strman is licensed under the MIT License - see the `LICENSE` file for details.
567+
strman is licensed under the MIT License - see the `LICENSE` file for details.

0 commit comments

Comments
 (0)