RichString

uk.gov.hmrc.hmrcfrontend.views.Implicits.RichString
implicit class RichString(s: String) extends RichString

Attributes

Graph
Supertypes
class RichString
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def indent(n: Int, indentFirstLine: Boolean): String

Indent a (multiline) string n spaces.

Indent a (multiline) string n spaces.

Value parameters

n

Number of spaces to indent the string. It can be a negative value, in which case it attempts to unindent n spaces, as much as possible until it hits the margin.

Attributes

Inherited from:
RichString
def ltrim: String

Attributes

Inherited from:
RichString
def nunjucksCapitalize: String

Implements https://mozilla.github.io/nunjucks/templating.html#capitalize. Unlike Scala's scala.collection.immutable.StringLike#capitalize() Nunjucks' capitalize converts the first letter to uppercase and the rest to lowercase.

Implements https://mozilla.github.io/nunjucks/templating.html#capitalize. Unlike Scala's scala.collection.immutable.StringLike#capitalize() Nunjucks' capitalize converts the first letter to uppercase and the rest to lowercase.

Attributes

Inherited from:
RichString
def rtrim: String

Attributes

Inherited from:
RichString

Attributes

Inherited from:
RichString

Attributes

Inherited from:
RichString
def toHint: Hint

Attributes

Inherited from:
RichString
def toKey: Key

Attributes

Inherited from:
RichString
def toLabel: Label

Attributes

Inherited from:
RichString

Attributes

Inherited from:
RichString
def toOption: Option[String]

Attributes

Inherited from:
RichString
def toTag: Tag

Attributes

Inherited from:
RichString
def toText: Text

Attributes

Inherited from:
RichString