Module rust_utils::utils [−][src]
Functions
alphabetize | Alphabetizes a vector of strings |
capitalize | capitalize the first letter in a string |
concat_str | concatenates (joins) 2 or more strings in a vector together |
find_char | returns the location (starting from 0) of the first instance of a character in a string skips any leading digits useful for parsing arguments returns the string’s length if the char is not found |
get_dir | returns a list of files/directories using path string |
get_execname | get the name of the executable |
get_filename | get the name of the file/directory from a file path |
get_parent | gets the parent directory from a file path |
get_shared_val | gets a shared value (temp file in /tmp) value must be a string value |
set_shared_val | saves a string to a shared value (temp file in /tmp) value must be a string value |