Name
ReferencesA name is used to uniquely identify a specific item or node. It is a combination of a text label and an optional integer index.
Constructors
Name
#Constructor for names with indices.
Fields
Properties
Methods
Equals
#Compare two names for equality.
Parameters:
| other (Name) | ID to compare to. |
Returns: True if both IDs are identical.
Equals
#Compare two names for equality.
Parameters:
| obj (object) | ID to compare to. |
Returns: True if the IDs are identical.
Overrides: Object.Equals
IsAllowedChar
#Tests whether a specific char is allowed in a name label. Most latinate upper and lower case letters are allowed, as well as some symbols such as underscores, periods, colons and braces.
Parameters:
| c (char) | Character to test. |
Returns: True if character is allowed.
IsAllowedLabel
#Tests whether a string is a valid name label.