diff --git a/build.gradle.kts b/build.gradle.kts index 74e03a72..dcce3fda 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ loadMavenPublishProperties() allprojects { group = "org.glavo.kala" - version = "0.60.0"// + "-SNAPSHOT" + version = "0.60.1"// + "-SNAPSHOT" description = "Basic components of Kala" diff --git a/kala-base/src/main/java/kala/text/StringView.java b/kala-base/src/main/java/kala/text/StringView.java index 136b8a9c..d108ceed 100644 --- a/kala-base/src/main/java/kala/text/StringView.java +++ b/kala-base/src/main/java/kala/text/StringView.java @@ -112,6 +112,10 @@ public byte[] getBytes(Charset charset, int beginIndex, int endIndex) { return this.substring(start, end); } + public @NotNull StringView substring(int beginIndex) { + return substring(beginIndex, length); + } + public @NotNull StringView substring(int beginIndex, int endIndex) { Conditions.checkPositionIndices(beginIndex, endIndex, length); return beginIndex != endIndex ? new StringView(value, offset + beginIndex, endIndex - beginIndex) : EMPTY;