Identifier.create

Convenience wrapper around Identifier.create(cstring, Identifier) that throws on parsing error.

  1. Identifier create(cstring line)
    struct Identifier
    static
    create
    (
    cstring line
    )
  2. istring create(cstring line, Identifier identifier)

Parameters

line cstring

An string matching 'host/plugin-instance/type-instance'. Both instance part are optionals, in which case the '-' should be omitted.

Return Value

The parsed identifier.

Throws

If the argument line is not a valid identifier.

Meta