Struct rupantor::parser::PhoneticParser [−][src]
pub struct PhoneticParser { /* fields omitted */ }
Parses and converts text into Bengali according to given grammar.
Methods
impl PhoneticParser
[src]
impl PhoneticParser
pub fn new(rule: &JsonValue) -> PhoneticParser
[src]
pub fn new(rule: &JsonValue) -> PhoneticParser
Creates a new PhoneticParser
instance from the given Json
value. The Json value must need to be a Json Object containing
the required values, otherwise a panic would occur.
pub fn convert(&self, input: &str) -> String
[src]
pub fn convert(&self, input: &str) -> String
Converts the given input string into Bengali according to the grammar.
Auto Trait Implementations
impl Send for PhoneticParser
impl Send for PhoneticParser
impl Sync for PhoneticParser
impl Sync for PhoneticParser