#[inline(always)]
pub fn is_between(c: u8, min_inclusive: u8, max_inclusive: u8) -> bool {
(c.wrapping_sub(min_inclusive) as u32) <= ((max_inclusive.wrapping_sub(min_inclusive)) as u32)
}
#[inline]
pub fn to_lower(mut c: u8) -> u8 {
if is_between(c, b'A', b'Z') {
c |= 0x20;
}
c
}
#[inline]
pub fn to_upper(mut c: u8) -> u8 {
if is_between(c, b'a', b'z') {
c &= !0x20;
}
c
}
#[inline]
pub fn to_upper_in_place(command: &mut [u8]) {
command.make_ascii_uppercase();
}
#[inline]
pub fn to_lower_in_place(command: &mut [u8]) {
command.make_ascii_lowercase();
}