Package

grizzled.string

template

Permalink

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. template
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class StringTemplate extends AnyRef

    Permalink

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

  2. class UnixShellStringTemplate extends StringTemplate

    Permalink

    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.

    Annotations
    @SuppressWarnings()
  3. class Variable extends AnyRef

    Permalink

    Information about a parsed variable name.

  4. class WindowsCmdStringTemplate extends StringTemplate

    Permalink

    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