Function voca_rs::manipulate::reverse_grapheme
source · Expand description
Reverses the subject
taking care of surrogate pairs and combining marks.
Arguments
subject
- The string to reverse.
Example
use voca_rs::*;
manipulate::reverse_grapheme("café");
// => "éfac"
manipulate::reverse_grapheme("a̐éö̲");
// => "ö̲éa̐"
use voca_rs::Voca;
"café"._reverse_grapheme();
// => "éfac"