Functions24 public, 1 private

Transforms all key-value-pairs in the provided source to its struct representation. Decoding is not done automatically.
publicstructkvpToStruct
requiredanysource
structOPTIONS{}
optionstringencodingUTF-8
optionbooleandecodeKeysfalse
optionbooleandecodeValuesfalse
optionbooleantrimKeysfalse
optionbooleantrimValuesfalse
Compares the provided structs and returns if the first struct contains the second struct.
publicbooleanstructContains
requiredstructs1
requiredstructs2
Performs a deep search in the provided struct for the specified value.
publicarraystructContainsValue
requiredstructsource
requiredstringvalue
stringpath
Copies the key-value-pairs of the provided struct. The provided struct may have a read-only lock.
publicstructstructCopyKVP
requiredstructtarget
Counts all keys (including nested ones) in the provided struct.
publicnumericstructCountDeep
requiredstructtarget
Deletes the specified key in the provided struct. The key may reach deep into the struct, but only the last key is removed from the struct.
publicbooleanstructDeleteDeep
Struct where the key is located.
requiredstructtarget
Key or chain of keys to delete.
requiredstringkey
Deletes all keys that match an empty counterpart. Returns the numbber of keys removed.
publicnumericstructDeleteEmpty
requiredstructtarget
structOPTIONS{}
optionbooleandeleteEmptyArraysfalse
optionbooleandeleteEmptyQueryfalse
optionbooleandeleteEmptyStructsfalse
optionbooleandeleteEmptyValuestrue
optionbooleanrecursivetrue
Compares keys and values of two structs and returns if they are all equal.
publicbooleanstructEquals
First struct.
requiredstructstruct1
Second struct.
requiredstructstruct2
Searches for missing keys and different values in the given structs. Case sensitive.
publicstructstructFindDifferences
requiredstructfirst
requiredstructsecond
Searches for missing keys and different values in the given structs. Case insensitive.
publicstructstructFindDifferencesNoCase
requiredstructfirst
requiredstructsecond
Searches the provided struct for the specified value. Returns the key(s) the value was found in.
publicanystructFindValue
requiredstructsource
requiredanyvalue
structOPTIONS{}
option"array", "boolean", "string"returnTypeboolean
Returns if the specified key in the provided struct is null.
publicbooleanstructIsNullValue
requiredstructstruct
requiredstringkey
Chains structKeyExists() calls similar to isDefined(). Supports mixed bracket/dot notation.
publicbooleanstructKeyChainExists
requiredstructstruct
requiredstringexpression
Groups all keys of the provided struct using the specified delimiters.
publicarraystructKeysByGroup
requiredstructstruct
stringdelimiters_0123456789
Merges the provided structs. The second struct may override existing values. Case of the keys will be only preserved if both structs are case-sensitive.
publicstructstructMerge
requiredanys1
requiredanys2
structOPTIONS{}
optionbooleannullToEmptyStringfalse
Builds a chained structure by separating keys with the specified delimiter(s). A trailing delimiter is considered as key, otherwise as value.
publicstructstructParseChain
requiredstringchain
stringdelimiters
Searches in the provided struct using the specified regular expression and returns the key of the first occurrence.
publicstringstructREfind
requiredstringexpression
requiredstructsource
Searches in the provided struct using the specified regular expression and returns the key of the first occurrence.
publicstringstructREfindNoCase
requiredstringexpression
requiredstructsource
Filters the provided struct using the specified regular expression.
publicstructstructREfilter
requiredstringexpression
requiredstructsource
Filters the provided struct using the specified regular expression.
publicstructstructREfilterNoCase
requiredstringexpression
requiredstructsource
Shuffles the order of the top level keys in the provided struct. Returns an array of the shuffled top level keys.
publicarraystructShuffle
requiredstructsource
Sorts the keys of the provided struct according to the specified order and returns the sorted keys in an array.
publicarraystructSortKeys
requiredstructsource
requiredstringsortType
stringsortOrderASC
Sorts the provided struct by their keys and moves them to a LinkedHashMap.
publicstructstructSortToLinked
requiredstructsource
structOPTIONS{}
option"ASC", "DESC"orderByASC
Returns an array that contains the sorted key order based on their value count.
publicarraystructSortByKeyLength
requiredstructstructure
stringsortOrderCountASC
stringsortOrderKeyASC
numericpadding1