sark 0.6.5

Simple Asynchronous Rust webKit - Server
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub(crate) fn seg_next(path: &[u8], idx: usize) -> Option<(usize, usize, usize)> {
    if idx >= path.len() {
        return None;
    }
    let start = idx + 1;
    let mut end = start;
    while end < path.len() && path[end] != b'/' {
        end += 1;
    }
    Some((start, end, end))
}