ExtensionsString

ostrat.ExtensionsString
final class ExtensionsString(val thisString: String) extends AnyVal

Extension methods for String. Brought into scope by the stringToImplicit method in the package object.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def --(other: String): String

Concatenates a space and then the other String.

Concatenates a space and then the other String.

Attributes

def ---(other: String): String

Concaternates a newline character and then the other [String]].

Concaternates a newline character and then the other [String]].

Attributes

def ----(other: String): String

Concaternates 2 newline characters and then the other [String]].

Concaternates 2 newline characters and then the other [String]].

Attributes

def -:-(other: String): String

Appends a colon character, a space then the operand String wit

Appends a colon character, a space then the operand String wit

Attributes

def /(other: String): String

Concatenates a '/' character and then the other String. Useful for constructing directory/ folder paths on the Web, Linux and Unix

Concatenates a '/' character and then the other String. Useful for constructing directory/ folder paths on the Web, Linux and Unix

Attributes

def addEnqu(s2: String): String
def appendCommas(extraStrings: String*): String

Appends strings with a comma and space separator

Appends strings with a comma and space separator

Attributes

def appendParenth(innerStr: String): String
def appendParenthSemis(innerStrs: String*): String
def appendSemicolons(extraStrings: String*): String

Appends extra Strings to thisString separated by " ;".

Appends extra Strings to thisString separated by " ;".

Attributes

Tries to parse this String as an Int in base32 format expression.

Tries to parse this String as an Int in base32 format expression.

Attributes

Tries to parse this String as a natural non negative Int in base32 format expression.

Tries to parse this String as a natural non negative Int in base32 format expression.

Attributes

Tries to parse this String as a Boolean expression.

Tries to parse this String as a Boolean expression.

Attributes

def asDbl: EMon[Double]

Tries to parse this String as a Double expression.

Tries to parse this String as a Double expression.

Attributes

Tries to parse this String as an Int in hexadecimal format expression.

Tries to parse this String as an Int in hexadecimal format expression.

Attributes

Tries to parse this String as a natural non negative Int in hexadecimal format expression.

Tries to parse this String as a natural non negative Int in hexadecimal format expression.

Attributes

def asInt: EMon[Int]

Tries to parse this String as an Int expression.

Tries to parse this String as an Int expression.

Attributes

def asLong: EMon[Long]

Tries to parse this String as a Long expression.

Tries to parse this String as a Long expression.

Attributes

def asNat: EMon[Int]

Tries to parse this String as a natural non negative Int expression.

Tries to parse this String as a natural non negative Int expression.

Attributes

Tries to parse this String as a Double expression.

Tries to parse this String as a Double expression.

Attributes

def asType[A](implicit ev: Unshow[A]): EMon[A]

Attempts to parse this String into an RSON expression of the given type.

Attempts to parse this String into an RSON expression of the given type.

Attributes

def boolAtStsIndex(index: Int): EMon[Boolean]

Parses this String into EMon statements and tries to get a Boolean value from the Statement given by the index.

Parses this String into EMon statements and tries to get a Boolean value from the Statement given by the index.

Attributes

def commaInts(ints: Int*): String
def compareChars(operand: String): Int

Returns the number of Chars from the first that match from this String to the operand String.

Returns the number of Chars from the first that match from this String to the operand String.

Attributes

def dblAtStsIndex(index: Int): EMon[Double]

Parses this String into EMon statements and tries to get a Double value from the Statement given by the index.

Parses this String into EMon statements and tries to get a Double value from the Statement given by the index.

Attributes

def dotAppend(extraStrings: String*): String
def emptyMap(nullSubstitute: => String): String

Substitutes the given value for empty Strings or nulls.

Substitutes the given value for empty Strings or nulls.

Attributes

encloses string in Curly brackets

encloses string in Curly brackets

Attributes

encloses string in parentheses

encloses string in parentheses

Attributes

encloses string in Square brackets

encloses string in Square brackets

Attributes

def findBoolSetting(settingStr: String): EMon[Boolean]

Find setting of the given name and type Boolean, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of the given name and type Boolean, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findBoolSettingBool(settingStr: String, elseValue: Boolean): Boolean

Find setting of the given name and type Boolean, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of the given name and type Boolean, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findDblSetting(settingStr: String): EMon[Double]

Find setting of the given name and type Double, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of the given name and type Double, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findDblSettingElse(settingStr: String, elseValue: Double): Double

Find setting of the given name and type Double, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of the given name and type Double, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findIntSetting(settingStr: String): EMon[Int]

Find setting of type Int from this String extension method, parsing this String as RSON Statements.

Find setting of type Int from this String extension method, parsing this String as RSON Statements.

Attributes

def findIntSettingElse(settingStr: String, elseValue: Int): Int

Find setting of the given name and type Int, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of the given name and type Int, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findSetting[T : Unshow](settingStr: String): EMon[T]

Find setting of type T from this String extension method, parsing this String as RSON Statements.

Find setting of type T from this String extension method, parsing this String as RSON Statements.

Attributes

def findSettingElse[T : Unshow](settingStr: String, elseValue: T): T

Find setting of type T, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Find setting of type T, from this String, or return the default value, extension method, parsing this String as RSON Statements.

Attributes

def findType[A](implicit ev: Unshow[A]): EMon[A]

Searches for Statement of type A. Can be a value of type A or a setting of a type A.

Searches for Statement of type A. Can be a value of type A or a setting of a type A.

Attributes

def findTypeDo[A : Unshow](f: A => Unit): Unit
def findTypeElse[A : Unshow](elseValue: => A): A

Finds Statement of type A and returns value or returns the elseValue if not found.

Finds Statement of type A and returns value or returns the elseValue if not found.

Attributes

Replaces the reserved HTML characters with their corresponding entities, in order to display XML code as text. Eg '>' is replaced by ">".

Replaces the reserved HTML characters with their corresponding entities, in order to display XML code as text. Eg '>' is replaced by ">".

Attributes

def ifPrepend(pred: Boolean, operand: => String): String

Prepends the operand String if the predicate is true.

Prepends the operand String if the predicate is true.

Attributes

def intAtStsIndex(index: Int): EMon[Int]

Parses this String into EMon statements and tries to get a Int value from the Statement given by the index.

Parses this String into EMon statements and tries to get a Int value from the Statement given by the index.

Attributes

def lengthFix(newLenIn: Int, packChar: Char): String
def longAtStsIndex(index: Int): EMon[Long]

Parses this String into EMon statements and tries to get a Long value from the Statement given by the index.

Parses this String into EMon statements and tries to get a Long value from the Statement given by the index.

Attributes

def natAtStsIndex(index: Int): EMon[Int]

Parses this String into EMon statements and tries to get a Int value from the Statement given by the index.

Parses this String into EMon statements and tries to get a Int value from the Statement given by the index.

Attributes

Replaces newline characters into space characters.

Replaces newline characters into space characters.

Attributes

def nli(indent: Int): String

Concatenates a newline special character followed by spaces to this string.

Concatenates a newline special character followed by spaces to this string.

Attributes

def optAppend(optionOther: Option[String]): String

Parses this String into an RSON expression.

Parses this String into an RSON expression.

Attributes

Parses this String into RSON statements.

Parses this String into RSON statements.

Attributes

Parses this String into RSON tokens.

Parses this String into RSON tokens.

Attributes

Parses this String into EMon statements and tries to get a positive, non negative Double value from the Statement given by the index.

Parses this String into EMon statements and tries to get a positive, non negative Double value from the Statement given by the index.

Attributes

Converts this String to an immutable Array based collection of CharArr.

Converts this String to an immutable Array based collection of CharArr.

Attributes

def typeAtStsIndex[A : Unshow](index: Int): EMon[A]

Parses this String into EMon statements and tries to get the value from the Statement given by the index.

Parses this String into EMon statements and tries to get the value from the Statement given by the index.

Attributes

Concrete fields