Function voca_rs::case::swap_case

source ·
pub fn swap_case(subject: &str) -> String
Expand description

Converts the uppercase alpha characters of subject to lowercase and lowercase characters to uppercase.

Arguments

  • subject - The string to swap the case.

Example

use voca_rs::*;
case::swap_case("League of Shadows");
// => "lEAGUE OF sHADOWS"
case::swap_case("2 üBer Bees");
// => "2 ÜbER bEES"
use voca_rs::Voca;
"League of Shadows"._swap_case();
// => "lEAGUE OF sHADOWS"