obadh_engine 0.9.1

A linguistically accurate Roman to Bengali transliteration engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::definitions::conjuncts::ConjunctDefinitions;
use crate::engine::inline_parts::DefaultInlineParts;

pub(super) type BorrowedParts<'a> = DefaultInlineParts<'a>;

pub(super) fn extended_is_valid<'a>(
    parts: &[&'a str],
    next: &'a str,
    conjunct_defs: &ConjunctDefinitions,
) -> bool {
    let mut extended = BorrowedParts::from_slice(parts);
    extended.push(next);
    conjunct_defs.can_form_conjunct_from_parts(extended.as_slice())
}