12 $data =
"BEGIN:VCARD\r\nLABEL;ENCODING=QUOTED-PRINTABLE:Aach=65n\r\nEND:VCARD";
16 $this->assertInstanceOf(
'Sabre\\VObject\\Component',
$result);
17 $this->assertEquals(
'VCARD',
$result->name);
18 $this->assertEquals(1, count(
$result->children()));
25 $data =
"BEGIN:VCARD\r\nLABEL;ENCODING=QUOTED-PRINTABLE:Aa=\r\n ch=\r\n en\r\nEND:VCARD";
28 $this->assertInstanceOf(
'Sabre\\VObject\\Component',
$result);
29 $this->assertEquals(
'VCARD',
$result->name);
30 $this->assertEquals(1, count(
$result->children()));
37 $data =
"BEGIN:VCARD\r\nLABEL;ENCODING=QUOTED-PRINTABLE:Aachen=0D=0A=\r\n Germany\r\nEND:VCARD";
40 $this->assertInstanceOf(
'Sabre\\VObject\\Component',
$result);
41 $this->assertEquals(
'VCARD',
$result->name);
42 $this->assertEquals(1, count(
$result->children()));
50 $data =
"BEGIN:VCARD\r\nLABEL;ENCODING=QUOTED-PRINTABLE:Aachen=0D=0A=\r\nDeutschland:okay\r\nEND:VCARD";
53 $this->assertInstanceOf(
'Sabre\\VObject\\Component',
$result);
54 $this->assertEquals(
'VCARD',
$result->name);
55 $this->assertEquals(1, count(
$result->children()));
67 ADR;WORK;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:;;M=C3=BCnster =
68 Str. 1;M=C3=BCnster;;48143;Deutschland
74 '',
'',
'Münster Str. 1',
'Münster',
'',
'48143',
'Deutschland' 82 return (
string)$property;
testReadQuotesPrintableCompoundValues()
testReadQuotedPrintableSimple()
getPropertyValue(\Sabre\VObject\Property $property)
testReadQuotedPrintableNewlineHard()
testReadQuotedPrintableNewlineSoft()
testReadQuotedPrintableCompatibilityMS()
const OPTION_FORGIVING
If this option is passed to the reader, it will be less strict about the validity of the lines...
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.