855 Commits

Author SHA1 Message Date
bent.mozilla%gmail.com
e9f948b44b Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg.
git-svn-id: svn://10.0.0.236/trunk@226538 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 20:10:18 +00:00
timeless%mozdev.org
4ed094a7fd Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
updating comment


git-svn-id: svn://10.0.0.236/trunk@217408 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-24 12:27:45 +00:00
timeless%mozdev.org
0dbce75039 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin


git-svn-id: svn://10.0.0.236/trunk@217295 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 07:13:58 +00:00
timeless%mozdev.org
3ea4e560e3 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin


git-svn-id: svn://10.0.0.236/trunk@217292 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 07:03:23 +00:00
mozilla%weilbacher.org
ed9c885ce9 Fix XPCOM build break on OS/2, see bug 345517. p=abwillis1, r=benjamin
git-svn-id: svn://10.0.0.236/trunk@216705 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 22:54:18 +00:00
benjamin%smedbergs.us
cae89c5987 From bug 345517 - fix adoptcount logging for the frozen string API, r=darin
git-svn-id: svn://10.0.0.236/trunk@215113 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-10 20:05:04 +00:00
smontagu%smontagu.org
edc2bb652e Prevent the IS_*_SURROGATE macros from identifying code points in supplementary planes as surrogates. Bug 347867, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@207040 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-10 10:12:37 +00:00
alfred.peng%sun.com
cfde3452d5 Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
jst: review+
darin: superreview+


git-svn-id: svn://10.0.0.236/trunk@206550 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 08:36:36 +00:00
darin%meer.net
3ebe1b89e8 fixing win32 build bustage
git-svn-id: svn://10.0.0.236/trunk@201167 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 23:49:57 +00:00
darin%meer.net
5b62b43f3d fixing win32 bustage
git-svn-id: svn://10.0.0.236/trunk@201157 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 22:54:40 +00:00
darin%meer.net
d49c6a4307 fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@201151 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 22:11:39 +00:00
dveditz%cruzio.com
1df5c4d525 bug 284219 addendum, missed biesi's review comment
git-svn-id: svn://10.0.0.236/trunk@200636 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 22:21:52 +00:00
dveditz%cruzio.com
f869942298 Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
simplify OOM checks when growing an nsAString. r/sr=darin


git-svn-id: svn://10.0.0.236/trunk@200610 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:30 +00:00
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