Now we can support BDAY in DoCoMo MECARD format

git-svn-id: https://zxing.googlecode.com/svn/trunk@493 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-06-27 19:38:24 +00:00
parent 295319a685
commit d392d57c67

View file

@ -44,13 +44,17 @@ public final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultPar
String email = matchSinglePrefixedField("EMAIL:", rawText);
String note = matchSinglePrefixedField("NOTE:", rawText);
String address = matchSinglePrefixedField("ADR:", rawText);
String birthday = matchSinglePrefixedField("BDAY:", rawText);
if (birthday != null && !isStringOfDigits(birthday, 8)) {
return null;
}
return new AddressBookParsedResult(new String[] {name},
phoneNumbers,
new String[] {email},
note,
address,
null,
null,
birthday,
null);
}