You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/src/internal/mod.rs

53 lines
1022 B
Rust

3 years ago
use crate::Options;
mod clean;
mod initialise;
pub mod rpc;
mod sort;
3 years ago
mod strings;
pub mod structs;
3 years ago
pub fn sort(a: &[String], options: Options) -> structs::Sorted {
sort::sort(a, options)
}
3 years ago
pub fn clean(a: &[String], options: Options) -> Vec<String> {
clean::clean(a, options)
}
pub fn init(options: Options) {
initialise::init(options);
}
3 years ago
pub fn info(a: String) {
strings::info(a);
}
pub fn crash(a: String, b: i32) {
strings::crash(a, b);
}
pub fn log(a: String) {
strings::log(a);
}
3 years ago
pub fn prompt(a: String, b: bool) -> bool {
strings::prompt(a, b)
}
#[macro_export]
macro_rules! uwu {
($x:expr) => {{
let uwu: String = String::from_str($x).unwrap();
let uwu = uwu.replace("l", "w");
let uwu = uwu.replace("L", "W");
let uwu = uwu.replace("r", "w");
let uwu = uwu.replace("R", "W");
let uwu = uwu.replace("na", "nya");
let uwu = uwu.replace("Na", "Nya");
let uwu = uwu.replace("NA", "NYA");
uwu
}};
}