Companion

object Companion

Functions

of
Link copied to clipboard
common
fun of(vararg strings: String): Name

Convert a list of strings to a Name interpreting all arguments as token bodies without indices

parse
Link copied to clipboard
common
fun parse(string: String): Name

Convert a String to name parsing it and extracting name tokens and index syntax. This operation is rather heavy so it should be used with care in high performance code.

Properties

EMPTY
Link copied to clipboard
common
val EMPTY: Name
MATCH_ALL_TOKEN
Link copied to clipboard
common
val MATCH_ALL_TOKEN: NameToken

Token that allows to match the whole tail or the whole head of the name. Must match at least one token.

MATCH_ANY_TOKEN
Link copied to clipboard
common
val MATCH_ANY_TOKEN: NameToken

Match any single token (both body and index)

NAME_SEPARATOR
Link copied to clipboard
common
const val NAME_SEPARATOR: String