projects
/
svjatoslav_commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Helper function to split string into groups based on regexp. Possibility to retrieve...
[svjatoslav_commons.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
commons
/
string
/
String2.java
diff --git
a/src/main/java/eu/svjatoslav/commons/string/String2.java
b/src/main/java/eu/svjatoslav/commons/string/String2.java
index
af7ac27
..
07e3fdb
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/commons/string/String2.java
+++ b/
src/main/java/eu/svjatoslav/commons/string/String2.java
@@
-17,6
+17,9
@@
public class String2 {
addSuffix(value);
}
addSuffix(value);
}
+ public String2() {
+ }
+
public String2 repeat(int count){
String value = toString();
public String2 repeat(int count){
String value = toString();
@@
-56,6
+59,12
@@
public class String2 {
return this;
}
return this;
}
+ public String2 addSuffix(String s, int times) {
+ for (int i = 0; i < times; i++) addSuffix(s);
+ return this;
+ }
+
+
/**
* Cut given amount of characters from the left of the string.
*
/**
* Cut given amount of characters from the left of the string.
*