Class

s_mach.string

S_Mach_String_StringPML

Related Doc: package string

Permalink

implicit final class S_Mach_String_StringPML extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. S_Mach_String_StringPML
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new S_Mach_String_StringPML(self: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def collapseDelims(delimiterSubst: String)(implicit lexer: Lexer): String

    Permalink

    Collapse all delimiters to the same string and trim all leading and trailing delimiters

    Collapse all delimiters to the same string and trim all leading and trailing delimiters

    delimiterSubst

    string to replace delimiter runs with

    returns

    string with all delimiters collapsed to delimiterSubst and all leading and trailing delimiters trimmed

    Annotations
    @inline()
  6. def collapseWhitespace: String

    Permalink

    returns

    string with all whitespace collapsed to a single space and all leading and trailing whitespace trimmed

    Annotations
    @inline()
  7. def convert[A](f: (String) ⇒ A): Option[A]

    Permalink

    Parse a string to some type

    Parse a string to some type

    f

    function to parse string to type

    returns

    None if String fails to convert to A OR Some(A) if string can be converted to a valid A value

    Annotations
    @inline()
  8. def ensureSuffix(suffix: String): String

    Permalink

    suffix

    string to ensure is at the end of the string

    returns

    string with suffix appended if string does not end with suffix

    Annotations
    @inline()
  9. def findAllReplace(zomFindReplace: Seq[(Seq[String], String)], caseSensitive: Boolean): String

    Permalink

    Replace string sections by matching from a set of string literals and replacing with a replacement string literal.

    Replace string sections by matching from a set of string literals and replacing with a replacement string literal.

    zomFindReplace

    zero or more (find string literal, replace string literal) tuples

    caseSensitive

    TRUE to for case-sensitive matching FALSE otherwise

    returns

    string with all replacements. For each (find*,replace) pair, any occurrences of any find are substituted with replace. See note1 above.

    Annotations
    @inline()
  10. def findAllReplaceTokens(zomFindReplace: Seq[(Seq[String], String)], caseSensitive: Boolean = true)(implicit lexer: Lexer): String

    Permalink

    Replace tokens in string sections by matching from a set of string literals to a replacement string literal.

    Replace tokens in string sections by matching from a set of string literals to a replacement string literal.

    zomFindReplace

    zero or more (find string literal, replace string literal) tuples

    caseSensitive

    TRUE to for case-sensitive matching FALSE otherwise

    returns

    string with all replacements. For each (find*,replace) pair, any occurrences of any find are substituted with replace. See note1 above.

    Annotations
    @inline()
  11. def findRegexReplace(zomRegex: Seq[(Regex, String)]): String

    Permalink

    Replace string sections by matching regex and replacing with a string literal.

    Replace string sections by matching regex and replacing with a string literal.

    zomRegex

    zero or more (regex, replacement string literal) tuples

    returns

    string with all occurrences of regex replaced with the paired string. See note1 above.

    Annotations
    @inline()
  12. def findRegexReplaceMatch(zomRegex: Seq[(Regex, (Match) ⇒ String)]): String

    Permalink

    Replace string sections by matching regex and replacing with result of match function.

    Replace string sections by matching regex and replacing with result of match function.

    zomRegex

    zero or more (regex, match function) tuples

    returns

    string with all occurrences of regexes replaced with the string returned by passing the match generated by the regex to the paired function. See note1 above.

    Annotations
    @inline()
  13. def findReplace(zomFindReplace: Seq[(String, String)], caseSensitive: Boolean = true): String

    Permalink

    Replace string sections by matching string literal with a replacement string literal.

    Replace string sections by matching string literal with a replacement string literal.

    zomFindReplace

    zero or more (find string literal, replace string literal) tuples

    caseSensitive

    TRUE to for case-sensitive matching FALSE otherwise

    returns

    string with all replacements. For each (find,replace) pair, all occurrences of find that match regions of the string substituted with replace. See note1 above.

    Annotations
    @inline()
  14. def findReplaceTokens(zomFindReplace: Seq[(String, String)], caseSensitive: Boolean = true)(implicit lexer: Lexer): String

    Permalink

    Replace tokens in a string by matching string literal and replacing with a replacement string literal.

    Replace tokens in a string by matching string literal and replacing with a replacement string literal.

    zomFindReplace

    zero or more (find string literal, replace string literal) tuples

    caseSensitive

    TRUE to for case-sensitive matching FALSE otherwise

    returns

    string with all replacements. For each (find,replace) pair, all occurrences of find that match a token exactly are substituted with replace. See note1 above.

    Annotations
    @inline()
  15. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  16. def indent(n: Int, spacer: String = " "): String

    Permalink

    n

    number of spacers to indent with

    spacer

    the spacer string to use while indenting

    returns

    string with all lines indented by n occurrences of s

    Annotations
    @inline()
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lex(implicit lexer: Lexer): LexResult

    Permalink

    returns

    lazily separate all tokens and delimiters contained in string

    Annotations
    @inline()
  19. def mapTokens(f: (String) ⇒ String)(implicit lexer: Lexer): String

    Permalink

    In-place transform tokens in the string preserving delimiters

    In-place transform tokens in the string preserving delimiters

    f

    function to map tokens

    returns

    a string with all tokens replaced with the result of passing the token to f. all delimiters is preserved

    Annotations
    @inline()
  20. val self: String

    Permalink
  21. def toCamelCase(implicit lexer: Lexer): String

    Permalink

    returns

    all tokens camel-cased i.e. camelCase

    Annotations
    @inline()
  22. def toDoubleOpt: Option[Double]

    Permalink

    returns

    None if String fails to convert to Double OR Some(Double) if string can be converted to a valid Double value

    Annotations
    @inline()
  23. def toIntOpt: Option[Int]

    Permalink

    returns

    None if String fails to convert to Int OR Some(Int) if string can be converted to a valid Int value

    Annotations
    @inline()
  24. def toLongOpt: Option[Long]

    Permalink

    returns

    None if String fails to convert to Long OR Some(Long) if string can be converted to a valid Long value

    Annotations
    @inline()
  25. def toOption: Option[String]

    Permalink

    returns

    None if string length is 0 OR Some(String) if length > 0

    Annotations
    @inline()
  26. def toPascalCase(implicit lexer: Lexer): String

    Permalink

    returns

    all tokens camel-cased i.e. CamelCase

    Annotations
    @inline()
  27. def toProperCase: String

    Permalink

    returns

    the first character to uppercase and the remaining characters to lowercase

    Annotations
    @inline()
  28. def toSnakeCase(implicit lexer: Lexer): String

    Permalink

    returns

    all tokens camel-cased i.e. camel_case

    Annotations
    @inline()
  29. def toString(): String

    Permalink
    Definition Classes
    Any
  30. def toTitleCase(implicit lexer: Lexer): String

    Permalink

    returns

    each token in proper case with delimiter preserved

    Annotations
    @inline()
  31. def toTokens(implicit lexer: Lexer): Iterator[String]

    Permalink

    returns

    all tokens contained in string

    Annotations
    @inline()

Inherited from AnyVal

Inherited from Any

Ungrouped