Crates.io | aoc_utility |
lib.rs | aoc_utility |
version | 0.1.3 |
source | src |
created_at | 2024-06-18 17:42:47.316497 |
updated_at | 2024-06-26 17:45:30.868141 |
description | This is Advent of Code Utility for parsing daily input |
homepage | |
repository | |
max_upload_size | |
id | 1275696 |
size | 6,200 |
AOC_Utility is a Rust utility library made for advent of code. This utility is not made of solutions but rather tools to remove tasks that are repeated on a consistent basis.
pub fn split_words(s: &String) -> Vec<&str>
pub fn split_lines(s: &String) -> Vec<&str>
pub fn split_char(s: &String, split_c: char) -> Vec<&str>
pub fn vec_str_to_ints(str_vec: &Vec<&str>) -> Vec<usize>
pub fn split_words(s: &String) -> Vec<&str>
This function takes in a reference to a string. Then it splits the string into splices by delimiting based on spaces. All spaces are removed no matter the amount of spaces between words.
pub fn split_lines(s: &String) -> Vec<&str>
This function takes in a reference to a string. Then it splits the string into splices by delimiting based on \n
, new lines. All new lines are removed no matter the amount of new lines between lines.