Stringop

object Stringop

Properties

Link copied to clipboard
const val BAR: String
Link copied to clipboard
const val BAT: String
Link copied to clipboard
Link copied to clipboard
const val CARRIAGE_RETURN_VALUE: Int = 13
Link copied to clipboard
const val CS: String
Link copied to clipboard
const val DOS_RTN: String
Link copied to clipboard
const val FOO: String
Link copied to clipboard
val FSP: String
Link copied to clipboard
var id: Long
Link copied to clipboard
const val JAVA_RTN: String
Link copied to clipboard
Link copied to clipboard
const val LINE_FEED: String
Link copied to clipboard
const val LINE_FEED_VALUE: Int = 10
Link copied to clipboard
Link copied to clipboard
const val TAB: String

StandardCharsets.UTF_8.name();

Link copied to clipboard
Link copied to clipboard
const val TEST: String
Link copied to clipboard
val USH: String

Functions

Link copied to clipboard
fun appendEol(value: String?): String
Link copied to clipboard
fun appendFilePath(vararg pathElements: String): String
Link copied to clipboard
fun arrayToList(strArray: Array<String>): List<String>
Link copied to clipboard
Link copied to clipboard
fun capund(str: String?): String
Link copied to clipboard
fun check4match(s1: String?, s2: String?, r1: String?, r2: String?): String

Check for match.

Link copied to clipboard
fun concat(vararg args: String?): String

Empty String is returned if args is null. Otherwise all non-null element in arg is concatenated in order.

fun concat(pts: List<String?>?): String
Link copied to clipboard
fun countReturns(str: String?): Int
Link copied to clipboard
fun firstHexDiff(expected: String?, value: String?): String
Link copied to clipboard
fun getDollarString(pennies: Long): String
Link copied to clipboard
fun getEol(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun isBlank(value: String?): Boolean
Link copied to clipboard
fun isEmpty(str: String?): Boolean
Link copied to clipboard
fun isInteger(value: String): Boolean
Link copied to clipboard
fun isNumber(value: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun isRegexFound(regex: String, value: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun notNull(value: String?): String
Link copied to clipboard
fun parseBoolean(value: String?, defaultValue: Boolean = false): Boolean
Link copied to clipboard
fun parseInt(value: String): Int
fun parseInt(value: String, defaultValue: Int): Int
Link copied to clipboard
fun pullAfter(str: String?, searchStr: String?): String
Link copied to clipboard
Link copied to clipboard
fun replace(source: String, target: String?, replacement: String?): String
Link copied to clipboard
fun replaceAll(source: String, target: String, replacement: String?): String
Link copied to clipboard
fun replaceFirstLinePreserveIndentation(source: List<String>, lineToReplaceContaining: String?, fullReplacementLine: String?): List<String>
Link copied to clipboard
fun setEol(value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toLowerCase(value: String?): String
Link copied to clipboard
fun toMaxLength(value: String?, max: Int): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

All trailing empty Strings are removed.

Link copied to clipboard
fun upund(str: String): String
Link copied to clipboard
fun url2file(f: File)
Link copied to clipboard
fun wrapFixedWidth(str: String, width: Int): String