benjamin%smedbergs.us
897c6c82d6
Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin
...
git-svn-id: svn://10.0.0.236/trunk@198732 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-31 14:28:14 +00:00
bzbarsky%mit.edu
b21642b02c
Do better logging of string leaks. Bug 336914, r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@196369 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-12 03:36:37 +00:00
benjamin%smedbergs.us
dd146efb7b
Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
...
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
git-svn-id: svn://10.0.0.236/trunk@195900 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 16:11:14 +00:00
darin%meer.net
4663818f13
fixes bug 327719 "Passing a big double serialize a rounded double" patch by afatecha@idea.com.py r=dbaron sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@192416 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 14:23:11 +00:00
bryner%brianryner.com
0eb842dfa8
Backing out patch for bug 328755 due to crash regression bug 328842. r=darin.
...
git-svn-id: svn://10.0.0.236/trunk@191450 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-01 00:38:15 +00:00
bryner%brianryner.com
fa9f41637c
Don't allocate a buffer when assigning a zero-length string, just call Truncate() instead (bug 328755). r=darin.
...
git-svn-id: svn://10.0.0.236/trunk@191323 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 19:44:48 +00:00
timeless%mozdev.org
af51e73d0e
Bug 106386 Correct misspellings in source code
...
r=bernd rs=brendan
git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 09:36:43 +00:00
darin%meer.net
47f1c672ec
fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard and doesn't clear F_VOIDED flag" r=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@188910 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-04 00:42:18 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bryner%brianryner.com
256fd4c351
Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@188104 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-24 19:22:02 +00:00
timeless%mozdev.org
dae7b0629a
Bug 106386 Correct misspellings in source code
...
patch by unknown@simplemachines.org r=timeless rs=brendan
git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
jshin%mailaps.org
a1a064295d
bug 317281 : Make UCS4 to High/Low surrogate pair a little bit more efficient (r=smontagu, sr=bz)
...
git-svn-id: svn://10.0.0.236/trunk@185129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 07:48:49 +00:00
bzbarsky%mit.edu
d167950632
Make definition match declaration for AppendUCS4ToUTF16. Bug 316859, patch by
...
Greg Onufer <gonufer@yahoo.com>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@185013 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 19:21:48 +00:00
bzbarsky%mit.edu
a452309e84
Fix stupid mistake in previous commit. Bug 316394, caught by smontagu
...
git-svn-id: svn://10.0.0.236/trunk@184818 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 15:13:25 +00:00
bzbarsky%mit.edu
2c6c1d1961
Fix build bustage. Bug 316394
...
git-svn-id: svn://10.0.0.236/trunk@184657 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 19:18:26 +00:00
bzbarsky%mit.edu
48dbeb8ec0
Move some basic macros for working with UTF16 from intl to XPCOM; use them in
...
some places including the HTML parser. Part of fix for bug 316394; the CSS
parser changes are still coming. r=smontagu, r=mrbkap on parser changes, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@184651 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 18:17:22 +00:00
bsmedberg%covad.net
7344fa60e3
Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver
...
git-svn-id: svn://10.0.0.236/trunk@184392 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 14:43:22 +00:00
bsmedberg%covad.net
112c33275c
Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree.
...
git-svn-id: svn://10.0.0.236/trunk@184304 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 18:17:49 +00:00
bsmedberg%covad.net
b3deca975e
Bug 315438 - Want nsTAString const char_type* BeginWriting() const; signature r=darin
...
git-svn-id: svn://10.0.0.236/trunk@184295 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 14:16:16 +00:00
bzbarsky%mit.edu
9af8442fc0
Implement a in-place (no copy) CompareUTF8toUTF16, and use it to make the atom
...
hashtable lookups zero-copy. Patch by jst, bug 314465 (with lots of the
discussion in bug 277479), r=bsmedberg,dbaron,brendan (on the PLDHashTable
keyhash value assumptions), sr=bzbarsky, moa=shaver.
git-svn-id: svn://10.0.0.236/trunk@184156 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 19:52:18 +00:00
bsmedberg%covad.net
d15fe4686d
Bug 289010 - Move nsVoidArray/nsCOMArray to the XPCOM glue, and a few other things to make the glue easier to use, r=shaver+darin . The following files were CVS-copied from xpcom/ds to xpcom/glue:
...
nsVoidArray.h
nsVoidArray.cpp
nsCOMArray.h
nsCOMArray.cpp
nsQuickSort.h
nsQuickSort.cpp
git-svn-id: svn://10.0.0.236/trunk@184052 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 20:38:21 +00:00
bryner%brianryner.com
4027bc91f8
Don't use memcpy for single-character Replace/Assign since it performs worse than simple assignment. Bug 312681, r+sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@182378 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-17 16:28:21 +00:00
dbaron%dbaron.org
807c1883a1
Back out bug 311456, at least for now, because it caused bug 311676.
...
git-svn-id: svn://10.0.0.236/trunk@181845 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 09:48:25 +00:00
darin%meer.net
467e6b2b97
fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard" r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@181788 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-07 21:52:18 +00:00
bsmedberg%covad.net
f5a3c325b8
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
...
git-svn-id: svn://10.0.0.236/trunk@177766 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 18:29:55 +00:00
bsmedberg%covad.net
bb73805324
Backout bug 299992 - too much odd platform-specific bustage
...
git-svn-id: svn://10.0.0.236/trunk@177596 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 22:07:08 +00:00
bsmedberg%covad.net
b80f390773
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
...
git-svn-id: svn://10.0.0.236/trunk@177591 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 20:40:53 +00:00
darin%meer.net
b19c32b495
fixes bug 297973 "It's possible to allocate a nsAString in the Gecko SDK" r=bryner sr=dbaron a=asa
...
git-svn-id: svn://10.0.0.236/trunk@174852 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 17:26:56 +00:00
darin%meer.net
1af07ec016
fixes bug 288786 "Add BeginWriting equivalent to frozen string API" r=biesi sr=dbaron a=asa
...
git-svn-id: svn://10.0.0.236/trunk@172761 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-27 01:38:35 +00:00
bsmedberg%covad.net
f0ad878c0e
Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin
...
git-svn-id: svn://10.0.0.236/trunk@171774 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 03:35:24 +00:00
bsmedberg%covad.net
06d0e4ec39
Bug 288626 - Begin switch from MOZILLA_STRICT_API to MOZILLA_INTERNAL_API rs=darin for the Makefile var additions. Should not affect the build yet, until we flip a few switches at the end.
...
git-svn-id: svn://10.0.0.236/trunk@171465 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-01 18:22:57 +00:00
timeless%mozdev.org
2206b50003
Bug 284034 nsReadableUtils ToNew* methods crash on OOM
...
patch by ajschult@verizon.net r=darin sr=darin
git-svn-id: svn://10.0.0.236/trunk@170033 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-01 05:14:22 +00:00
dbaron%dbaron.org
03af0da567
Calculator should not underestimate converter. b=241440 Patch from <wind.li@sun.com>. r=dbaron sr=dveditz a=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@169325 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-17 20:17:13 +00:00
darin%meer.net
6dc58b5d14
fixes bug 277549 "Out of memory in MutatePrep is not well handled" r=dveditz sr=dbaron a=asa
...
git-svn-id: svn://10.0.0.236/trunk@169236 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-16 07:20:20 +00:00
darin%meer.net
97e4a99da0
fixes bug 281056 "make --disable-v1-string-abi build again" r+sr=bryner
...
git-svn-id: svn://10.0.0.236/trunk@168898 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 04:00:02 +00:00
darin%meer.net
ba67c97eb4
landing xpcom patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=dbaron sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@168722 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 22:18:37 +00:00
bryner%brianryner.com
348b3c5fdb
Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@168238 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 16:44:41 +00:00
cbiesinger%web.de
65f16e8004
Bug 274086 fix "unused variable" warning in opt builds, which prevent building
...
with -Werror
patch by Crispin Flowerday <crispin@flowerday.cx> r=bsmedberg sr=darin
git-svn-id: svn://10.0.0.236/trunk@166751 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 17:25:42 +00:00
darin%meer.net
5dc959305e
fixes bug 270110 "Add versions of nsDependentString and friends to the Gecko SDK" r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@165920 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-30 00:57:24 +00:00
darin%meer.net
b12726648a
fixes bug 271630 "XPCOM glue broken on Linux/PPC [monkeypox orange]" r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@165919 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-30 00:28:48 +00:00
bryner%brianryner.com
7a461c49a4
Reduce string copying and allocation in the parser by only copying the scanner buffer when we need to mutate the string. Allow a nsDependentString / nsDependentSubstring to be created without being bound to anything. Move StripChar() onto nsSubstring from nsString. Bug 269853, r=jst, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@165773 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 07:03:20 +00:00
timeless%mozdev.org
1fc0d742c3
Bug 270768 spelling
...
rs=brendan
git-svn-id: svn://10.0.0.236/trunk@165695 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 00:54:11 +00:00
darin%meer.net
a8b241a7fc
fixes bug 264274 "support dependent strings in frozen string API" r=biesi sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@165390 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-16 04:44:57 +00:00
bsmedberg%covad.net
80c1808b53
Bug 267767 - Make XPCOM memory management functions frozen exports. r=darin sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@165320 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-12 19:26:37 +00:00
darin%meer.net
3f701b6803
landing patch for bug 262218 "libxpcom.so should only export frozen symbols" r=bsmedberg sr=bryner
...
git-svn-id: svn://10.0.0.236/trunk@164375 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-25 19:34:45 +00:00
bzbarsky%mit.edu
94247cc1f8
Fix nsPageFrame to not set string lengths to negative numbers, and fix string
...
code to not go into an infinite loop if someone tries it. Bug 263365,
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@164052 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-19 21:46:45 +00:00
darin%meer.net
08cb51a4ff
output number of leaked string buffers
...
git-svn-id: svn://10.0.0.236/trunk@161870 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-07 19:57:20 +00:00
bryner%brianryner.com
644a6650d1
HPUX aCC A.01.21 can't deal with the literal string template, so disable it, at least for this compiler version. Bug 239465, r=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@161801 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 22:55:34 +00:00
cbiesinger%web.de
1c24d39d79
Bug 258014 make @param names match function signature
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@161781 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 13:25:51 +00:00
db48x%yahoo.com
bcee21063e
bug 244956: Small correction to comments in nsStringAPI.h
...
patch by Jonathan Watt <jonathan.watt@strath.ac.uk>, r/sr=shaver
git-svn-id: svn://10.0.0.236/trunk@160139 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-30 16:00:59 +00:00