[][src]Function voca_rs::chop::max

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

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

Arguments

Example

use voca_rs::*;
chop::max("rain");
// => "r"
chop::max("cafe\u{0301}"); // or "café"
// => "\u{0301}"
chop::max("a̐éö̲"); // or "a\u{310}e\u{301}o\u{308}\u{332}"
// => "\u{332}"
use voca_rs::Voca;
"rain"._max_code_point();
// => "r"