summaryrefslogtreecommitdiffstats
path: root/vendor/fluent-syntax/src/parser/macros.rs
blob: 671d5432857408e870d9b48afe298b80a54e653e (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! get_byte {
    ($s:expr, $idx:expr) => {
        $s.source.as_ref().as_bytes().get($idx)
    };
}

macro_rules! get_current_byte {
    ($s:expr) => {
        $s.source.as_ref().as_bytes().get($s.ptr)
    };
}