Re: talk on XPCOM and String APIs

2014-03-26 Thread Neil

L. David Baron wrote:


our string APIs (a bit about what the internal string APIs do and why and how 
to use them)
 

I don't think we currently return terminated strings for string tail or 
1-arg substring of a terminated string, I'm sure we could but there 
doesn't seem to be a big demand for it. One workaround for 
Substring(foo, N) is to directly construct an nsDependentString(foo, N).


I had also pondered as to whether we should use literal strings for 
static atoms; I think they're currently some sort of dummy shared buffer.


--
Warning: May contain traces of nuts.
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


talk on XPCOM and String APIs

2014-03-25 Thread L. David Baron
During a Layout work week in Taipei last week, I gave a talk on:
 (1) some bits of XPCOM and its history that I thought were worth
 talking about
 (2) our string APIs (a bit about what the internal string APIs do
 and why and how to use them)
(roughly a half hour on each topic)

Since others might be interested, it's at:
https://air.mozilla.org/xpcom-and-internal-strings-in-gecko/

-David

-- 
턞   L. David Baron http://dbaron.org/   턂
턢   Mozilla  https://www.mozilla.org/   턂
 Before I built a wall I'd ask to know
 What I was walling in or walling out,
 And to whom I was like to give offense.
   - Robert Frost, Mending Wall (1914)


signature.asc
Description: Digital signature
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform