Module beamui.core.functions
Various utility and sugar functions.
Import line
import beamui.core.functions;
Functions
Name | Description |
caching(obj)
|
|
eliminate(value)
|
Destroys object and nullifies its reference. Does nothing if value is null.
|
eliminate(values)
|
Destroys every element of the array and nullifies everything
|
eliminate(values)
|
Destroys every key (if needed) and value in the associative array, nullifies everything
|
emap(s)
|
Simple bloat-free eager map
|
equalShortClassName(type, shortName)
|
Check whether first name of class is equal to a string
|
fastCast(base)
|
|
fromWStringz(s)
|
Conversion from wchar z-string
|
getShortClassName(obj)
|
Get the short class name, i.e. without module path. obj must not be null
|
normalizeEOLs(s)
|
Normalize end of line style - convert to '\n'
|
wrapAround(index, first, last)
|
Move index into [first, last] range in a cyclic manner
|