Packages

  • package root
    Definition Classes
    root
  • package grizzled

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The home page for the Grizzled Scala Library is http://software.clapper.org/grizzled-scala/. Please see that page for complete details, including installation instructions.

    Definition Classes
    root
  • package string

    String- and text-related classes.

    String- and text-related classes.

    Definition Classes
    grizzled
  • package template

    Scala classes that provide for variable substitution within strings, akin to the Python StringTemplate library.

    Scala classes that provide for variable substitution within strings, akin to the Python StringTemplate library. Several syntaxes are supported.

    Definition Classes
    string
  • StringTemplate
  • SubstitutionException
  • UnixShellStringTemplate
  • Variable
  • WindowsCmdStringTemplate
p

grizzled.string

template

package template

Scala classes that provide for variable substitution within strings, akin to the Python StringTemplate library. Several syntaxes are supported.

Linear Supertypes
AnyRef, Any

Type Members

  1. abstract class StringTemplate extends AnyRef

    A simple, configurable string template that substitutes variable references within a string.

  2. final case class SubstitutionException(message: String) extends Exception with Product with Serializable

    An exception used to signal substitution errors.

  3. class UnixShellStringTemplate extends StringTemplate

    A string template that uses the Unix shell-like syntax ${varname} (or $varname) for variable references.

    A string template that uses the Unix shell-like syntax ${varname} (or $varname) for variable references. A variable's name may consist of alphanumerics and underscores. To include a literal "$" in a string, escape it with a backslash.

    For this class, the general form of a variable reference is:

    ${varname?default}

    }

    The ?default suffix is optional and specifies a default value to be used if the variable has no value.

    A shorthand form of a variable reference is:

    $varname

    The default capability is not available in the shorthand form.

  4. class Variable extends AnyRef

    Information about a parsed variable name.

  5. class WindowsCmdStringTemplate extends StringTemplate

    A string template that uses the cmd Windows.exe syntax %varname% for variable references.

    A string template that uses the cmd Windows.exe syntax %varname% for variable references. A variable's name may consist of alphanumerics and underscores. To include a literal "%" in a string, use two in a row ("%%").

Inherited from AnyRef

Inherited from Any

Ungrouped