private static String matchSingleVCardPrefixedField(String prefix, String rawText, bool trim) { var values = VCardResultParser.matchSingleVCardPrefixedField(prefix, rawText, trim, false); return(values == null || values.Count == 0 ? null : values[0]); }
private static String[] matchVCardPrefixedField(String prefix, String rawText, bool trim) { List <List <String> > values = VCardResultParser.matchVCardPrefixedField(prefix, rawText, trim, false); if (values == null || values.Count == 0) { return(null); } int size = values.Count; String[] result = new String[size]; for (int i = 0; i < size; i++) { result[i] = values[i][0]; } return(result); }