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

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

Converts the uppercase alpha caracters 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"