Module cuttlefish_util

Function Index

ceiling/1remember when you learned about decimal places.
conf_get_value/2
conf_get_value/3
filter_by_variable_starts_with/2
fuzzy_variable_match/2
levenshtein/2Calculates the Levenshtein distance between two strings.
matches_for_variable_def/2
numerify/1Turn a string into a number if list_to_float or list_to_integer accept it as valid.
replace_proplist_value/3replace the element in a proplist.

Function Details

ceiling/1

ceiling(X::float()) -> integer()

remember when you learned about decimal places. about a minute later, you learned about rounding up and down. This is rounding up.

conf_get_value/2

conf_get_value(Key, Conf) -> any()

conf_get_value/3

conf_get_value(Key, Conf, Default) -> any()

filter_by_variable_starts_with/2

filter_by_variable_starts_with(Prefix, Conf) -> any()

fuzzy_variable_match/2

fuzzy_variable_match(Var, VarDef) -> any()

levenshtein/2

levenshtein(StringA::string(), StringB::string()) -> integer()

Calculates the Levenshtein distance between two strings

matches_for_variable_def/2

matches_for_variable_def(VarDef, Conf) -> any()

numerify/1

numerify(Num::string()) -> integer() | float() | cuttlefish_error:error()

Turn a string into a number if list_to_float or list_to_integer accept it as valid

replace_proplist_value/3

replace_proplist_value(Key::atom() | string(), Value::any(), Proplist::[{string(), any()}]) -> [{string(), any()}]

replace the element in a proplist


Generated by EDoc