Function voca_rs::chop::min

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

Returns the min character from the subject by its code point. NOTE: Unicode escape must not be a surrogate

Arguments

  • subject - The string to extract from.

Example

use voca_rs::*;
chop::min("rain");
// => "a"
chop::min("cafe\u{0301}"); // or "café"
// => "a"
chop::min("Über das Floß.");
// => " "
use voca_rs::Voca;
"rain"._min_code_point();
// => "a"