Steele
Cc: Norbert Lindenberg; Erik Arvidsson; es-discuss@mozilla.org
Subject: Re: String.fromCodePoint and surrogate pairs?
The Unicode standard defines code point as any value in the range of
integers from 0 to 0x10 - see definitions D9 and D10 of chapter 3 [1].
Once you exclude
Lindenberg; Erik Arvidsson; es-discuss@mozilla.org
Subject: Re: String.fromCodePoint and surrogate pairs?
I don't have a good scenario at hand either that would require support for
surrogate code points, but in ECMAScript the question is often asked the other
way around: Why reject it? And given
It was suggested to me that we could probably extend String.fromCodePoint
to be aware of UTF-16 code units too. It seems doable since the lead
surrogate is not a valid code point.
The question is if it is worth it? It seems like we are going down a
slippery slope if we start to do things like
Do you know what the people who talked to you mean by aware of UTF-16 code
units?
As specified, String.fromCodePoint, accepts all UTF-16 code units because they
use a subset of the integers allowed as code points (0 to 0x versus 0 to
0x10). For non-surrogate values, you get exactly
Arvidsson
Cc: es-discuss@mozilla.org
Subject: Re: String.fromCodePoint and surrogate pairs?
Do you know what the people who talked to you mean by aware of UTF-16 code
units?
As specified, String.fromCodePoint, accepts all UTF-16 code units because they
use a subset of the integers allowed as code
[mailto:es-discuss-boun...@mozilla.org]
On Behalf Of Norbert Lindenberg
Sent: Wednesday, December 12, 2012 1:25 PM
To: Erik Arvidsson
Cc: es-discuss@mozilla.org
Subject: Re: String.fromCodePoint and surrogate pairs?
Do you know what the people who talked to you mean by aware of UTF-16 code
...@norbertlindenberg.com]
Sent: Wednesday, December 12, 2012 2:40 PM
To: Shawn Steele
Cc: Norbert Lindenberg; Erik Arvidsson; es-discuss@mozilla.org
Subject: Re: String.fromCodePoint and surrogate pairs?
The Unicode standard defines code point as any value in the range of integers
from 0
7 matches
Mail list logo