[Issue 5221] entity.c: Merge Walter's list with Thomas'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 29 12:01:20 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5221



--- Comment #12 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-01-29 11:59:07 PST ---
(In reply to comment #11)
> The odd ones that stand out are:
> 
> <!ENTITY AMP              "&#38;" ><!--AMPERSAND -->

amp is 0x0026.

> // The name has a dot (you already noticed.)
> <!ENTITY b.Delta          "&#x1D6AB;" ><!--MATHEMATICAL BOLD CAPITAL DELTA -->

Yep, the DMD parser can't handle it.

> // Notice the leading space in the value.
> <!ENTITY DotDot           " &#x020DC;" ><!--COMBINING FOUR DOTS ABOVE -->

Means nothing.

> // The entity has two characters in its value.
> <!ENTITY bne              "&#x0003D;&#x020E5;" ><!--EQUALS SIGN with reverse
> slash -->

They are called composited characters.

try:
writeln(cast(dchar)0x003D);
writeln(cast(dchar)0x003D,cast(dchar)0x20E5);

And spot the difference.

> // Double chars + initial &.
> <!ENTITY nvlt             "&#x0003C;&#x020D2;" ><!--LESS-THAN SIGN with
> vertical line -->
> 

nvlt is 0x003C,0x20D2.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list