Expand description
Utility functions.
FunctionsΒ§
- alpha_
idx_ πto_ uint_ idx - This is the reverse function to
uint_idx_to_alpha_idx. - get_
alpha_ πfocus_ id - get_
multi_ πextension - Get the full extension of a path, including all extensions.
For example, for βfoo.tar.gzβ, this function returns βtar.gzβ, and not just βgzβ,
like
path.extension()would. - get_
multi_ πextension_ from_ filename - search_
upward π - This function searches upward from
startfor directories or files matchingitem. It returns aVec<PathBuf>to all found instances in order of closest to furthest away. The function only searches up within subdirectories ofend. - uint_
idx_ πto_ alpha_ idx - This function takes a number and converts itβs digits into the range a-p. This is nice because it makes for some easily typed ids. The function first formats the number as a hex digit and then performs the mapping.