mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
DoCoMo bookmark link pass
This commit is contained in:
@@ -36,7 +36,7 @@ use crate::{exceptions::Exceptions, RXingResult};
|
||||
use super::{
|
||||
GeoResultParser, ISBNResultParser, ParsedClientResult, ParsedRXingResult, ProductResultParser,
|
||||
SMSMMSResultParser, TelResultParser, TextParsedRXingResult, URIResultParser, URLTOResultParser,
|
||||
WifiResultParser,
|
||||
WifiResultParser, BookmarkDoCoMoResultParser,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -103,8 +103,8 @@ pub fn getMassagedText(result: &RXingResult) -> String {
|
||||
}
|
||||
|
||||
pub fn parseRXingResult(theRXingResult: &RXingResult) -> ParsedClientResult {
|
||||
let PARSERS: [&ParserFunction; 8] = [
|
||||
// new BookmarkDoCoMoRXingResultParser(),
|
||||
let PARSERS: [&ParserFunction; 9] = [
|
||||
&BookmarkDoCoMoResultParser::parse,
|
||||
// new AddressBookDoCoMoRXingResultParser(),
|
||||
// new EmailDoCoMoRXingResultParser(),
|
||||
// new AddressBookAURXingResultParser(),
|
||||
@@ -392,3 +392,11 @@ pub fn matchSinglePrefixedField(
|
||||
}
|
||||
// return matches == null ? null : matches[0];
|
||||
}
|
||||
|
||||
pub fn match_do_co_mo_prefixed_field( prefix:&str, raw_text:&str) -> Option<Vec<String>> {
|
||||
matchPrefixedField(prefix, raw_text, ';', true)
|
||||
}
|
||||
|
||||
pub fn match_single_do_co_mo_prefixed_field( prefix:&str, raw_text:&str, trim:bool) -> Option<String>{
|
||||
matchSinglePrefixedField(prefix, raw_text, ';', trim)
|
||||
}
|
||||
Reference in New Issue
Block a user