[][src]Function voca_rs::case::swap_case

pub fn swap_case(subject: &str) -> String

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

Arguments

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"