30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
}
static OF_INLINE OFString*
parse_numeric_entity(const char *entity, size_t length)
{
uint32_t c;
size_t i;
char buf[4];
if (length == 1 || *entity != '#')
return nil;
c = 0;
entity++;
length--;
|
|
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
}
static OF_INLINE OFString*
parse_numeric_entity(const char *entity, size_t length)
{
uint32_t c;
size_t i;
char buf[5];
if (length == 1 || *entity != '#')
return nil;
c = 0;
entity++;
length--;
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
else
return nil;
}
}
if ((i = of_string_unicode_to_utf8(c, buf)) == 0)
return nil;
return [OFString stringWithCString: buf
length: i];
}
@implementation OFXMLParser
+ xmlParser
|
>
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
else
return nil;
}
}
if ((i = of_string_unicode_to_utf8(c, buf)) == 0)
return nil;
buf[i] = 0;
return [OFString stringWithCString: buf
length: i];
}
@implementation OFXMLParser
+ xmlParser
|