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

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

Returns the max 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::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"