public class EnhancedString
extends scala.AnyVal
| Constructor and Description | 
|---|
| EnhancedString(java.lang.String underlying) | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | asciiBytes()Returns the ASCII encoded bytes of this string. | 
| boolean | endsWith(char c)Determines whether the underlying String ends with the given character. | 
| scala.collection.immutable.LinearSeq<java.lang.String> | fastSplit(char delimiter)Splits the underlying string into the segments that are delimited by the given character. | 
| void | getAsciiBytes(byte[] array,
             int offset)Copies the ASCII encoded bytes of this string into the given byte array starting at the  offsetindex. | 
| scala.collection.immutable.Stream<java.lang.String> | lazySplit(char delimiter)Lazily splits the underlying string into the segments that are delimited by the given character. | 
| java.lang.String | nullAsEmpty()If the underlying string is null the method returns the empty string, otherwise the underlying string. | 
| boolean | startsWith(char c)Determines whether the underlying String starts with the given character. | 
| java.lang.String | stripMarginWithNewline(java.lang.String newline)Strips margin and fixes the newline sequence to the given one preventing dependencies on the build platform | 
| scala.Option<java.lang.String> | toOption()Returns Some(String) if the underlying string is non-empty, None otherwise | 
| java.lang.String | toRootLowerCase()Provides a default toLowerCase that doesn't suffer from the dreaded turkish-i problem. | 
| java.lang.String | underlying() | 
public java.lang.String underlying()
public scala.collection.immutable.LinearSeq<java.lang.String> fastSplit(char delimiter)
delimiter - (undocumented)public scala.collection.immutable.Stream<java.lang.String> lazySplit(char delimiter)
delimiter - (undocumented)public scala.Option<java.lang.String> toOption()
public java.lang.String nullAsEmpty()
public byte[] asciiBytes()
public void getAsciiBytes(byte[] array,
                          int offset)
offset index.
 Truncates characters to 8-bit byte value.
 If the array does not have enough space for the whole string only the portion that fits is copied.array - (undocumented)offset - (undocumented)public boolean startsWith(char c)
c - (undocumented)public boolean endsWith(char c)
c - (undocumented)public java.lang.String stripMarginWithNewline(java.lang.String newline)
public java.lang.String toRootLowerCase()