increment_utf8

Function increment_utf8 

Source
fn increment_utf8(data: &str) -> Option<String>
Expand description

Increment a UTF8 string by one, returning None if it can’t be incremented. This makes it so that the returned string will always compare greater than the input string or any other string with the same prefix. This is necessary since the statistics may have been truncated: if we have a min statistic of “fo” that may have originally been “foz” or anything else with the prefix “fo”. E.g. increment_utf8("foo") >= "foo" and increment_utf8("foo") >= "fooz" In this example `increment_utf8(“foo”) == “fop”