StringUtils

reqt.StringUtils
object StringUtils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def indent(n: Int): String
def nlLiteral: String

Concrete fields

val nl: String
val q: String
val q3: String

Extensions

Extensions

extension (s: String)
def deCapitalize: String
def dropQuotes: String
def editDistanceTo(t: String): Int
def hasNewline: Boolean
def initLetters: String
def level(base: Int): Int
def p: Unit
def partitionByCharEscaped(c: Char, esc: Char): (String, String)
def skipFirstToken: String
def skipFirstWord: String
def skipIndent: String
def spaceSplit: Array[String]
def splitEscaped(c: Char, esc: Char): Array[String]

Strip leading whitespace. From Java 17 there is stripLeading on String; this is here to run on Java 8, 11.

Strip leading whitespace. From Java 17 there is stripLeading on String; this is here to run on Java 8, 11.

Attributes

def toLines: Array[String]
def trimIndent(nbrSpaces: Int): String

Indent and trim each line with spaces and add trailing newline if missing. From Java 17 there is indent on String; this is here to run on Java 8, 11.

Indent and trim each line with spaces and add trailing newline if missing. From Java 17 there is indent on String; this is here to run on Java 8, 11.

Attributes

def words: Array[String]
def wrap(n: Int): String
def wrapLongLineAtWords(n: Int): String