Function rdigit_num

Source
pub fn rdigit_num(s: &str) -> usize
Expand description

Determines number of digits at the end of the string.

ยงExamples

use my_ecs::prelude::*;

assert_eq!(2, str_util::rdigit_num("hello42"));
assert_eq!(0, str_util::rdigit_num("1a")); // Doesn't end with digits.