[Standards] Proposed XMPP Extension: Character counting in message bodies

Ralph Meijer ralphm at ik.nu
Wed Dec 18 16:00:15 UTC 2019


On 18-12-2019 16:40, Marvin W wrote:
> [..]
>
> Also that's a weird counting there, usually I would expect end to 
> point to the position after the last referenced character - at least 
> that's what you do in most programming languages (e.g. 
> "&&&"[0:14] will give you "&&&amp" without the 
> last ";").

I'd not be opposed to changing the definition of 'end' here. Twitter 
Entities [1] also points to the character after.

[1] 
https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object

-- 
ralphm



More information about the Standards mailing list