Module dagon.core.props
Provides a dynamic type system for object properties.
Description
The dagon.core.props module defines the DProperty struct for storing
dynamically-typed property values, the Properties class for managing
collections of named properties, and utility functions for parsing and
handling property data. Properties can be numbers, vectors, or strings,
and are used for configuration, serialization, and runtime data storage.
Functions
| Name | Description |
copyStr(s)
|
Copies a string or array to a newly allocated buffer.
|
isValidIdentifier(s)
|
Returns true if the string is a valid identifier (starts with a letter or underscore).
|
isWhiteStr(s)
|
Returns true if the string consists only of whitespace or newlines.
|
parseProperties(input, props)
|
Parses a string containing property definitions and populates a Properties object.
|
Classes
| Name | Description |
Properties
|
Stores and manages a collection of named properties.
|
Structs
| Name | Description |
DProperty
|
Represents a single property value with type information.
|
Enums
| Name | Description |
DPropType
|
Supported property types.
|