Crate spongebob

source ·
Expand description

Functions to manipulate text in the style of the SpongeBob mocking meme.

§Examples

use spongebob::alternate;
assert_eq!(alternate("Hello, world!"), "HeLlO, wOrLd!");

Functions§

  • Alternate the case of each letter of each word, skipping non-alphabetic characters.
  • Randomize the case of each letter of each word, passing non-alphabetic characters through.