Граф коммитов

1061 Коммитов

Автор SHA1 Сообщение Дата
Mounir Lamouri d55a633ca1 Bug 549475: Implement HTML5-specified value sanitization algorithm for HTMLInputElement. r=sicking,ehsan,bsmedberg sr=jst
--HG--
rename : layout/reftests/editor/newline-1.html => layout/reftests/editor/newline-4.html
2010-07-21 02:11:19 +02:00
Olli Pettay 6f759b3d50 Bug 577472 - Quickstub string handling shouldn't addref/release the string buffer, r=mrbkap
--HG--
extra : rebase_source : 5c343f210f3fb4a0aca5fc5f8b9b2d492248d3f3
2010-07-19 13:34:23 +03:00
Mitchell Field d0f35f6883 Remove @status FROZEN and @status UNDER_REVIEW. r=bsmedberg
--HG--
extra : rebase_source : 7fab31a6b7898e05ff828482390846cc9ce2854d
2010-07-02 10:27:06 -04:00
Olli Pettay 4a3cfaa4e8 Bug 574089 - Optimize ::GetInnerHTML, r=jst
--HG--
extra : rebase_source : 3ed1549eaa96d3ff3fe6bf2bb2562dd9e68fcc17
2010-06-26 23:39:56 +03:00
Michael Kohler 6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Jonas Sicking c24e5442a9 Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg 2010-03-08 07:44:59 -08:00
Chris Jones f181d3cf73 Bug 441324, part 4: Enable infallible operator new (leaving malloc fallible) in Gecko, and play well with the wince shunt. r=bsmedberg r=blassey r=vlad 2010-03-03 23:02:58 -06:00
Jonas Sicking 21ba749fb2 Bug 541245 part 4: Be consistent about prohibited characters such as 0xFFFE in UTF8<->UTF16 conversion code. r=smontagu 2010-02-23 09:38:10 -08:00
Jonas Sicking 2eb1e75087 Bug 541245 part 2: Make UTF8<->UTF16 comparison code consistent in the face of badly encoded strings. r=smontagu 2010-02-23 09:38:10 -08:00
Jonas Sicking 5db97f9537 Bug 422868 part 1: Fix UTF8 <-> UTF16 conversion code to deal with all encoding errors consistently. r=smontagu 2010-02-23 09:38:10 -08:00
Neil Rashbrook b871244cc3 Bug 538476 Allow ToInteger to take an nsresult* parameter to match the external string API r=bsmedberg 2010-01-08 23:43:50 +00:00
Jonas Sicking 0b77e1fa89 Bug 526500: Fix bug in OOM handing for nsTSubstring::SetLength. Also change Capacity to return 0 rather than -1 for immutable strings to avoid similar surprises in the future. Finally Make SetCapacity return a boolean indicating success/failure to make it easier to check for oom handling. r=bsmedberg sr=dbaron 2009-11-18 17:14:29 -08:00
Neil Rashbrook 63ff447dc4 Bug 520366 AppendInt only handles 32 bit signed ints r=bsmedberg 2009-11-04 21:33:23 +00:00
Chris Jones 708e2e04ae Backed out changeset 8cbc47eee659 2009-10-02 18:09:08 -05:00
Chris Jones f2df9d3504 bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad 2009-10-01 21:50:09 -05:00
Benjamin Smedberg ba372f3a4c Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
Neil Rashbrook 16b1fe13c8 Bug 499027 Copying an empty string to a new string allocates a buffer r=dbaron sr=jst 2009-08-14 12:03:05 +01:00
Jeff Walden 47019f7663 Remove stray semicolon that Linux gcc hates, r=red 2009-08-06 12:48:58 -07:00
Jeff Walden e847bcc870 Bug 428465 - nsTArray should refuse to compile with T=nsAutoString (or work correctly). r=bsmedberg 2009-08-03 21:13:28 -07:00
Neil Rashbrook dba2472e83 Bug 504660 Make sEmptyBuffer non-const so EnsureMutable can safely use it for an empty string r=bsmedberg 2009-07-20 21:04:44 +01:00
L. David Baron 53e2566c2b Use char16_t when available, and when it is, don't test for -fshort-wchar. (Bug 502298) r=bsmedberg 2009-07-20 07:04:41 -04:00
Bob Clary c5196b6787 bug 395651 - crash test by Jesse Ruderman. 2009-04-24 10:08:22 -07:00
Bob Clary 2baa715643 bug 394275 - crash test by Jesse Ruderman. 2009-04-24 10:08:22 -07:00
Neil Rashbrook eeca3c2f77 Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg 2009-03-04 09:50:22 +00:00
Dão Gottwald 7724726ab5 Backed out changeset 2df29cb1ed93 2009-02-07 15:07:36 +01:00
Tyler Downer ca2d87685b Bug 471930 - Strip User Docs from XPCOM. r=bsmedberg 2009-02-07 13:54:47 +01:00
Daniel Holbert 4301671b45 Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
Fred Jendrzejewski 424883d380 Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Benjamin Smedberg bfbe5114fe Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron
--HG--
extra : rebase_source : b0c9f51f2860aa1008c447334fa9075dd0b8e718
2009-01-15 13:44:46 -05:00
Benjamin Smedberg 470d4ccbfb Bug 469072 - Annotations in XPCOM, and a couple related code fixups, to make outparams spit out useful warnings, r=bent 2008-12-11 15:13:52 -05:00
Daniel Holbert 5492039225 Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe 2008-10-01 23:49:45 -07:00
Jonas Sicking 69b9ff0371 Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst 2008-09-30 17:50:42 -07:00
Benjamin Smedberg f0fdeb2ef7 Remove the v1 string ABI compatibility hacks. Replace references of nsTAString_CharT with nsTSubstring_CharT which is the new base class. r=dbaron 2008-09-19 11:07:22 -04:00
Serge Gautherie cb3c0524ac Bug 410708 – Compiler warning in nsUTF8Utils.h
(Av2) Use char notation
2008-08-09 04:36:52 +02:00
Boris Zbarsky 878d2da364 Bug 265534. Take some string constructors out of line to reduce codesize. r=bsmedberg, sr=dbaron 2008-08-18 11:40:49 -04:00
Marco Pesenti Gritti 5f039b9eb5 Make sure that nsString and nsString_external are the same size. b=430581 r=benjamin 2008-07-30 08:06:54 +02:00
Benjamin Smedberg a124d5b9a1 Bug 442714 - Mark NS_STACK_CLASS on nsAutoString, r=dbaron 2008-06-30 14:46:47 -04:00
Jeff Walden becc8f7cf3 Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68). acid3++ r=dbaron 2008-06-02 21:29:00 -04:00
dbaron@dbaron.org d7e5cb7c5b Fix -Wconversion warnings that prevent compiling netwerk/cookie/src/ (which makes warnings fatal) with gcc 4.3 on x86_64. b=409384 r=bsmedberg a=beltzner 2008-03-06 15:03:50 -08:00
benjamin@smedbergs.us 4d7ff5db89 Bug 409384 - Firefox 3.0b2 fauks to compile with gcc 4.3, r=dwitte+dbaron a=damons 2008-02-26 14:44:41 -08:00
dwitte@stanford.edu 84e6172062 update copy_string() to the single-fragment string world, and optimize write() to not return a value. b=282083, r+sr=jst, a=schrep 2008-01-03 16:07:06 -08:00
benjamin@smedbergs.us fd5b74bf13 Bug 396052 - Firefox fails to start when run from a directory with non-native characters, r=luser sr=neil 2007-12-31 07:15:43 -08:00
jst@mozilla.org ff5edada7b Fixing bug 395651. Make our UTF-8 and UTF-16 comparison code etc more robust when dealing with invalid UTF-16 data. r+sr=jonas@sicking.cc, a=jst@mozilla.org/jonas@sicking.cc 2007-09-14 16:09:49 -07:00
jst@mozilla.org 651a54cda2 Fixing bug 394275. Fix problem with UTF16 to UTF8 character conversions when dealing with broken UTF16 characters. r+sr=jonas@sicking.cc 2007-09-07 13:28:27 -07:00
jwalden@mit.edu d09c44d69c Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change 2007-09-04 23:41:35 -07:00
bent.mozilla@gmail.com 8b4a7312a5 Bug 385250 - "IsVoid and IsTerminated may return something other than PR_TRUE and PR_FALSE". r=dbaron, sr=jag, a=bz. 2007-08-19 20:09:30 -07:00
philringnalda@gmail.com 3432251d59 Bug 380783 - nsStringAPI.h: no equivalent of IsVoid (tell if string is null), patch by Mook <mook.moz+mozbz@gmail.com>, r=bsmedberg/dbaron, sr=dbaron, a1.9=bz 2007-08-17 20:48:16 -07:00
aaronr@us.ibm.com 5b7b541d9a make nsStringContainer_base smaller bug 390849, r+sr+a=bsmedberg 2007-08-07 16:37:44 -07:00
benjamin@smedbergs.us 6586a4906f Bug 387132 followup - build the reftest-fast tool correctly with libxul, r=vlad a=only functional change is NPOB 2007-08-06 13:13:19 -07:00
asqueella@gmail.com cb5ac9d2d1 Bug 339069 - Optimization for RFindInReadable
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r=darin, sr=dbaron
2007-07-23 18:30:19 -07:00
jst@mozilla.org 0240a7e8d9 Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org 2007-07-11 13:46:43 -07:00
neil@parkwaycc.co.uk 10de8387c8 Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
jwalden@mit.edu 6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
jruderman@hmc.edu 5339922cd3 Fix bug 383426 (OOM crash). r=peterv, sr=roc. 2007-07-02 23:03:11 -07:00
bent.mozilla@gmail.com 4f8634673c Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg. 2007-05-16 13:10:18 -07:00
hg@mozilla.com 05e5d33a57 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00
timeless%mozdev.org cfde29cd47 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
updating comment
2006-12-24 12:27:45 +00:00
timeless%mozdev.org f2a71aa0dd Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
2006-12-21 07:13:58 +00:00
timeless%mozdev.org 05804e5bfe Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
2006-12-21 07:03:23 +00:00
mozilla%weilbacher.org 157e788e06 Fix XPCOM build break on OS/2, see bug 345517. p=abwillis1, r=benjamin 2006-12-07 22:54:18 +00:00
benjamin%smedbergs.us e1fc008627 From bug 345517 - fix adoptcount logging for the frozen string API, r=darin 2006-11-10 20:05:04 +00:00
smontagu%smontagu.org 63552c0f0c Prevent the IS_*_SURROGATE macros from identifying code points in supplementary planes as surrogates. Bug 347867, r+sr=darin 2006-08-10 10:12:37 +00:00
alfred.peng%sun.com d54f29958e Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
jst: review+
darin: superreview+
2006-08-04 08:36:36 +00:00
darin%meer.net 1fe60255fb fixing win32 build bustage 2006-06-28 23:49:57 +00:00
darin%meer.net 218045e9fd fixing win32 bustage 2006-06-28 22:54:40 +00:00
darin%meer.net 1bda9a04bc fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron 2006-06-28 22:11:39 +00:00
dveditz%cruzio.com 4a2fa425a7 bug 284219 addendum, missed biesi's review comment 2006-06-22 22:21:52 +00:00
dveditz%cruzio.com 506140bd0c Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
simplify OOM checks when growing an nsAString. r/sr=darin
2006-06-22 19:07:30 +00:00
benjamin%smedbergs.us f51ee5d8fd Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin 2006-05-31 14:28:14 +00:00
bzbarsky%mit.edu 5abe2229c9 Do better logging of string leaks. Bug 336914, r+sr=darin 2006-05-12 03:36:37 +00:00
benjamin%smedbergs.us 08887664c9 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
2006-05-03 16:11:14 +00:00
darin%meer.net 621c803bd5 fixes bug 327719 "Passing a big double serialize a rounded double" patch by afatecha@idea.com.py r=dbaron sr=darin 2006-03-15 14:23:11 +00:00
bryner%brianryner.com f75f6a2bff Backing out patch for bug 328755 due to crash regression bug 328842. r=darin. 2006-03-01 00:38:15 +00:00
bryner%brianryner.com f7d6ac5402 Don't allocate a buffer when assigning a zero-length string, just call Truncate() instead (bug 328755). r=darin. 2006-02-27 19:44:48 +00:00
timeless%mozdev.org 1ce5986f6b Bug 106386 Correct misspellings in source code
r=bernd rs=brendan
2006-02-23 09:36:43 +00:00
darin%meer.net e2bb3bb1e7 fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard and doesn't clear F_VOIDED flag" r=bzbarsky 2006-02-04 00:42:18 +00:00
cbiesinger%web.de c2d981f764 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin
2006-02-03 14:18:39 +00:00
bryner%brianryner.com ecc0706743 Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin. 2006-01-24 19:22:02 +00:00
timeless%mozdev.org 9b0852aaf7 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan
2005-11-25 21:57:13 +00:00
jshin%mailaps.org 29c5a75f9a bug 317281 : Make UCS4 to High/Low surrogate pair a little bit more efficient (r=smontagu, sr=bz) 2005-11-22 07:48:49 +00:00
bzbarsky%mit.edu 7d7e006845 Make definition match declaration for AppendUCS4ToUTF16. Bug 316859, patch by
Greg Onufer <gonufer@yahoo.com>, r+sr=bzbarsky
2005-11-20 19:21:48 +00:00
bzbarsky%mit.edu 11d61012cd Fix stupid mistake in previous commit. Bug 316394, caught by smontagu 2005-11-17 15:13:25 +00:00
bzbarsky%mit.edu add8c53fcc Fix build bustage. Bug 316394 2005-11-15 19:18:26 +00:00
bzbarsky%mit.edu 79da4ded63 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
2005-11-15 18:17:22 +00:00
bsmedberg%covad.net a4d3866df3 Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver 2005-11-10 14:43:22 +00:00
bsmedberg%covad.net a7253270ad 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. 2005-11-08 18:17:49 +00:00
bsmedberg%covad.net 33ca187193 Bug 315438 - Want nsTAString const char_type* BeginWriting() const; signature r=darin 2005-11-08 14:16:16 +00:00
bzbarsky%mit.edu aee1056ad7 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.
2005-11-04 19:52:18 +00:00
bsmedberg%covad.net acf28ad4d1 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
2005-11-02 20:38:21 +00:00
bryner%brianryner.com ddd7501923 Don't use memcpy for single-character Replace/Assign since it performs worse than simple assignment. Bug 312681, r+sr=darin. 2005-10-17 16:28:21 +00:00
dbaron%dbaron.org abc0ac68ae Back out bug 311456, at least for now, because it caused bug 311676. 2005-10-09 09:48:25 +00:00
darin%meer.net 8dbb1899d0 fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard" r+sr=bzbarsky 2005-10-07 21:52:18 +00:00
bsmedberg%covad.net f0d2e05a7e 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 2005-08-15 18:29:55 +00:00
bsmedberg%covad.net 8992fb4c7d Backout bug 299992 - too much odd platform-specific bustage 2005-08-11 22:07:08 +00:00
bsmedberg%covad.net e9c48557e9 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 2005-08-11 20:40:53 +00:00
darin%meer.net 08464ff71a fixes bug 297973 "It's possible to allocate a nsAString in the Gecko SDK" r=bryner sr=dbaron a=asa 2005-06-20 17:26:56 +00:00
darin%meer.net 3b218b11f8 fixes bug 288786 "Add BeginWriting equivalent to frozen string API" r=biesi sr=dbaron a=asa 2005-04-27 01:38:35 +00:00
bsmedberg%covad.net 7e03c0b224 Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin 2005-04-06 03:35:24 +00:00
bsmedberg%covad.net beadf6cd74 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. 2005-04-01 18:22:57 +00:00
timeless%mozdev.org e05ed3d0ac Bug 284034 nsReadableUtils ToNew* methods crash on OOM
patch by ajschult@verizon.net r=darin sr=darin
2005-03-01 05:14:22 +00:00
dbaron%dbaron.org 34a6bff9a1 Calculator should not underestimate converter. b=241440 Patch from <wind.li@sun.com>. r=dbaron sr=dveditz a=dveditz 2005-02-17 20:17:13 +00:00
darin%meer.net c4287b12c7 fixes bug 277549 "Out of memory in MutatePrep is not well handled" r=dveditz sr=dbaron a=asa 2005-02-16 07:20:20 +00:00
darin%meer.net 54cde78765 fixes bug 281056 "make --disable-v1-string-abi build again" r+sr=bryner 2005-02-07 04:00:02 +00:00
darin%meer.net dd78f625f5 landing xpcom patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=dbaron sr=jst 2005-02-02 22:18:37 +00:00
bryner%brianryner.com 742738a46c Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin. 2005-01-24 16:44:41 +00:00
cbiesinger%web.de 13bd35b35a 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
2004-12-15 17:25:42 +00:00
darin%meer.net 9aee2fe67a fixes bug 270110 "Add versions of nsDependentString and friends to the Gecko SDK" r=bsmedberg 2004-11-30 00:57:24 +00:00
darin%meer.net e149e8077b fixes bug 271630 "XPCOM glue broken on Linux/PPC [monkeypox orange]" r=bsmedberg 2004-11-30 00:28:48 +00:00
bryner%brianryner.com 2a500b8d07 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. 2004-11-25 07:03:20 +00:00
timeless%mozdev.org 6abcae9c71 Bug 270768 spelling
rs=brendan
2004-11-24 00:54:11 +00:00
darin%meer.net 90246214db fixes bug 264274 "support dependent strings in frozen string API" r=biesi sr=bsmedberg 2004-11-16 04:44:57 +00:00
bsmedberg%covad.net 82022506fd Bug 267767 - Make XPCOM memory management functions frozen exports. r=darin sr=shaver 2004-11-12 19:26:37 +00:00
darin%meer.net 52ac61d678 landing patch for bug 262218 "libxpcom.so should only export frozen symbols" r=bsmedberg sr=bryner 2004-10-25 19:34:45 +00:00
bzbarsky%mit.edu e4430de4cc 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
2004-10-19 21:46:45 +00:00
darin%meer.net e5a653f18b output number of leaked string buffers 2004-09-07 19:57:20 +00:00
bryner%brianryner.com 60809809d5 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. 2004-09-05 22:55:34 +00:00
cbiesinger%web.de c3d23a6ea2 Bug 258014 make @param names match function signature
r+sr=darin
2004-09-05 13:25:51 +00:00
db48x%yahoo.com 71f9388bc5 bug 244956: Small correction to comments in nsStringAPI.h
patch by Jonathan Watt <jonathan.watt@strath.ac.uk>, r/sr=shaver
2004-07-30 16:00:59 +00:00
cbiesinger%web.de 07e6f643be adding missing NS_COM to fix win bustage 2004-07-25 13:58:47 +00:00
cbiesinger%web.de 95f74ea211 remove InsertWithConversion
Bug 113234 r=darin sr=dbaron
2004-07-25 12:25:43 +00:00
cbiesinger%web.de 8148905a30 Bug 113243 Get rid of (Compare|Equals)WithConversion
r=darin sr=dbaron
2004-07-25 12:23:28 +00:00
cbiesinger%web.de edd98105f6 Bug 252541 remove nsString::IsSpace and nsString::IsASCII
r=darin sr=dbaron
2004-07-25 12:12:39 +00:00
darin%meer.net 71af9d4396 fixes bug 248695 "string code misuses realloc" r=timeless sr=dbaron 2004-07-19 20:01:42 +00:00
bryner%brianryner.com 23089547be Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron. 2004-07-14 22:14:34 +00:00
roc+%cs.cmu.edu 442a384196 Bug 226439. Make nsCharTraits<PRUnichar>::ASCIIToLower handle Unicode characters whose lowercase form is ASCII. r+sr=darin 2004-06-16 23:29:49 +00:00
cbiesinger%web.de c36edfc815 fixing bustage... 2004-06-11 16:39:38 +00:00
cbiesinger%web.de a4396ff7b4 bug 245673 named literal strings should be const
r+sr=darin
2004-06-11 15:05:29 +00:00
jst%mozilla.jstenback.com 7d0180067b Fixing bug 245930. Don't crash if attempting to replace data past the end of a string. r=dbaron@dbaron.org, sr=darin@meer.net 2004-06-08 22:30:11 +00:00
roc+%cs.cmu.edu 3e1ec49312 fixing bustage AGAIN. 2004-06-06 04:42:45 +00:00
roc+%cs.cmu.edu 250f041a52 fixing bustage. 2004-06-06 03:38:35 +00:00
roc+%cs.cmu.edu 07612ec0fd Bug 226439. Add ASCII and Literal versions of Append, EqualsIgnoreCase, and Assign. r+sr=darin 2004-06-06 02:17:00 +00:00
timeless%mozdev.org 6db62762d9 Bug 242382 Trunk build failure in nsObjectFrame.cpp
patch by roland.mainz@nrubsig.org r=roc sr=roc
2004-05-18 04:10:43 +00:00
jst%mozilla.jstenback.com ccbb6dceef Fixing bug 243484. Adding 'count' out params to ToNewUTF8String() and UTF8ToNewUnicode() that tells the caller how many units (8 or 16 bit) that was returned. r=dbaron@dbaron.org, sr=darin@meer.net 2004-05-13 17:45:03 +00:00
bryner%brianryner.com f129c38c01 Fix XPCOM_BREAK_ON_LOAD by restoring pre-string-branch Find() behavior when starting index is negative. Bug 243429, r+sr=darin 2004-05-12 19:26:30 +00:00
smontagu%smontagu.org bd087f358d Add code comments from bug 242315 comment 17. r+sr=bzbarsky. 2004-05-07 22:21:26 +00:00
roc+%cs.cmu.edu 0cd525a091 Bug 226439. Add EqualsASCII(char*) string method that compares with a null-terminated char* in a single pass. Have the non-templated EqualsLiteral use it. r+sr=dbaron 2004-04-30 12:05:14 +00:00
roc+%cs.cmu.edu 81bc2e5a85 Fix btek bustage ... I hope. 2004-04-28 19:23:58 +00:00
roc+%cs.cmu.edu aaea444448 Bug 226439. Some small conversion to use EqualsLiteral to see effect on code size, r+sr=dbaron. Additionally, some comments to clarify that EqualsLiteral is only for actual literals, and to properly credit Corey Kosak who showed me the template trick. Also re-enabled the template for MSVC++ 7.1, which can apparently handle it. 2004-04-28 17:48:02 +00:00
roc+%cs.cmu.edu 97abad3f9f Fixing bustage ... MSVC can't handle the array size template. 2004-04-24 22:46:24 +00:00
roc+%cs.cmu.edu a1950ea73d Bug 226439. Use templates for ultra-efficient EqualsLiteral string method. r=darin,sr=dbaron. THIS MAY CAUSE BUSTAGE. DO NOT BE ALARMED. 2004-04-24 22:02:22 +00:00
darin%meer.net edc1e0d23c landing patch for bug 239716 "inout wstring methods are difficult to implement with nsEmbedString" patch by marco@gnome.org r=darin sr=dbaron 2004-04-20 00:21:34 +00:00
cls%seawood.org 5249125cc3 Explicitly declare inlined function as inline & remove COM declaration.
Fixing native mingw build bustage.
Bug #240106 r=darin
2004-04-19 21:37:39 +00:00
bzbarsky%mit.edu 538c66e542 Fix RFindCharInSet to work again. Bug 240837, r+sr=darin 2004-04-19 20:18:05 +00:00
gerv%gerv.net 31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
cbiesinger%web.de c88fe8ffac bug 235504, remove const char* version of nsCString::EqualsWithConversion,
second try
r=darin sr=dbaron
2004-04-15 20:44:53 +00:00
cbiesinger%web.de a3e0432ac4 ...and this one, too 2004-04-14 21:20:06 +00:00
cbiesinger%web.de ce0000dee3 backing out this part of my last checkin due to bustage 2004-04-14 21:19:29 +00:00
cbiesinger%web.de 6ad20397bf Bug 235504 Remove nsCString::EqualsWithConversion(const char*)
r=darin sr=dbaron
2004-04-14 20:09:30 +00:00
cbiesinger%web.de f36e49d422 fix bustage 2004-04-13 19:34:40 +00:00
cbiesinger%web.de a8c9d6354b bug 240106, add 64-bit version of nsC?String::AppendInt
r=darin sr=dbaron
2004-04-13 19:13:49 +00:00
darin%meer.net 50c5f2be4e fixes bug 239123 "exported functions in nsStringAPI.h should be frozen for 1.7 final" r=bsmedberg sr=dbaron a=asa 2004-04-11 20:52:32 +00:00
darin%meer.net 8b6ac86a2c fixes bug 239441 "AIX: Undefined symbols when linking mozilla-bin after Bug 239303" r=bsmedberg,dougt sr=dbaron a=brendan 2004-04-03 21:54:49 +00:00
darin%meer.net a4963da5ce fixes bug 238088 "Support compile-time backwards compatible nsAString in Gecko SDK" r=bsmedberg sr=dbaron a=chofmann 2004-04-01 22:39:51 +00:00
darin%meer.net d3c91aae68 fixes bug 239303 "provide basic string conversion routines for the Gecko SDK" r=bsmedberg sr=dbaron a=chofmann 2004-04-01 20:47:48 +00:00
pkw%us.ibm.com 04f59202ba Bug 237682 - AIX: Warnings about missing nsACString copy constructor
r/sr=darin@meer.net, a=asa@mozilla.org
2004-03-22 20:25:36 +00:00
darin%meer.net 7c70a6cb04 fixing a comment typo 2004-03-16 18:34:25 +00:00
darin%meer.net 1629547b88 adding null checks for bug 236003 "nsTSubstring::Equals(char *) crashes if passed a NULL pointer" r=dbaron 2004-03-09 06:23:35 +00:00
jst%mozilla.jstenback.com 7ce3ca81d5 Fixing bug 236595. Making nsAdoptingString not adopt strings that aren't owned by the string that's adopted from. Also un-inlining operator=(const self_type&). r+sr=darin@meer.net 2004-03-06 03:29:49 +00:00
darin%meer.net 6a9b4c1c76 fixes bug 235272 "RFind is broken [was: Thunderbird treats two-letter folder msf files as folders themselves]" r=jst sr=bienvenu 2004-03-04 07:54:22 +00:00
darin%meer.net c380c59f65 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin 2004-02-28 22:34:07 +00:00
darin%meer.net 80f8efd35c fixes bug 235355 "hangs/crashes after choosing Server Settings in Mail&Newsgroup Account Settings, click o.k." r+sr=dbaron 2004-02-25 03:24:29 +00:00
darin%meer.net f6875e2d3c fixes bug 234916 "Remove global/static NS_NAMED_LITERAL_C?STRING usage [was: Firefox crashes on startup on Mac OS X]" r=jst sr=dbaron 2004-02-25 02:08:34 +00:00
darin%meer.net d3491a301b adding brackets to correct last checkin (r=gisburn) 2004-02-23 19:57:18 +00:00
darin%meer.net fb4fea465d Checking in bustage fix for SUNPRO_CC (Sun Workshop/Forte), bug=235273
Thanks to timeless and gisburn for their help.
2004-02-23 19:24:41 +00:00
timeless%mozdev.org 93ff09dd87 Bug 235207 Build failure in mozilla/xpcom/string/src/nsStringObsolete.cpp
patch by roland.mainz@nrubsig.org sr=dbaron
2004-02-23 01:43:44 +00:00
jst%mozilla.jstenback.com ea534cf241 Duh, silly me. Fixing bogus attempt at casting... 2004-02-21 01:02:26 +00:00
darin%meer.net adf6f03670 removing bogus const type qualifier to fix IRIX compiler warning (thanks to dbaron for noticing this) 2004-02-20 23:28:49 +00:00
jst%mozilla.jstenback.com add5e48c18 Fixing bug 235041. Adding nsAdoptingString, a string class that can be returned by value from functions returning malloc'ed strings, w/o the overhead of extra string copying/mallocs. r=dbaron@dbaron.org, sr=darin@meer.net 2004-02-20 23:23:35 +00:00
darin%meer.net 44ce35aebb landing patch for bug 234864 "string branch landing resulted in large spike in heap allocations (brad:A metric)" r+sr=dbaron
this patch also introduces nsTFixedString and removes CBufDescriptor.
2004-02-20 01:53:23 +00:00
darin%meer.net ac7b627975 correcting bustage fix per dbaron: "reenable that for non-gcc compilers" 2004-02-19 06:29:08 +00:00
darin%meer.net aa60ebaca5 bustage fix for gcc-2.95.3 (speedracer) and egcs-2.91.66 (btek+monkeypox) r=bz 2004-02-19 05:54:04 +00:00
darin%meer.net 6154264bd2 bustage fix for GCC 3.4 2004-02-19 04:18:18 +00:00
darin%meer.net 07f71da316 fixing OS/2 bustage from string branch landing,
nsString.h needs to continue to define IGNORE_CASE for backwards compatibility
2004-02-19 04:15:22 +00:00
darin%meer.net 8d65e087ae landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00
bryner%brianryner.com 85dbf281fb Change a few more destructors in XPCOM to be non-virtual, and comment destructors that need to be virtual. Bug 229875, r=dougt, sr=dbaron. 2004-02-11 06:19:03 +00:00
dbaron%dbaron.org 36f4864d42 Speed up constructors of nsAutoString and nsCAutoString by calling nsStrPrivate::Initialize only once. b=188828 r=darin sr=alecf 2004-01-29 04:00:47 +00:00
dbaron%dbaron.org 8b1b6977cf Comment this out until we figure out what to do about nsXPIDLString's shared empty buffer handle. b=112547 2004-01-22 04:30:03 +00:00
jst%mozilla.jstenback.com fc9f3d6ea3 Fixing bug 183373. Provide XPCOM methods for accessing a shared empty string object. r=bryner@brianryner.com, sr=dbaron@dbaron.org 2004-01-21 21:36:40 +00:00
dbaron%dbaron.org 345194dd62 Fix Windows debug bustage. b=231737, 112547 2004-01-21 18:29:38 +00:00
peterv%propagandism.org f277ca4791 Rename verify to verifyThread to fix OS X debug build bustage. 2004-01-21 12:25:50 +00:00
dbaron%dbaron.org a075871e8e Assert when shared buffers are used on multiple threads. b=112547 r=jst sr=darin 2004-01-21 04:39:58 +00:00
jst%mozilla.jstenback.com 05f83fbe5d Fixing bug 230849. Making LossyCopyUTF16toASCII() and CopyASCIItoUTF8() truncate the destination even when the source is null. r=jshin@mailaps.org, sr=peterv@propagandism.org 2004-01-14 19:26:17 +00:00
peter%propagandism.org 21e7e7a67f Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst. 2003-12-23 09:24:11 +00:00
dwitte%stanford.edu 857bdeb8cf fix regression due to silly casting fu.
b=225887, r=bryner, sr=alecf, a=dbaron.
2003-11-20 21:33:50 +00:00
dwitte%stanford.edu a80c072618 removing unnecessary branch.
b=225887, r=jag, sr=alecf.
2003-11-18 12:31:25 +00:00
peter%propagandism.org 93e0a01614 Restoring fix for bug 224231, didn't affect btek's Tp. 2003-11-02 12:58:29 +00:00
peter%propagandism.org 0b431feb53 Back out a part of the fix for bug 224231 to see if it affects btek's Tp. 2003-11-02 11:59:54 +00:00
peter%propagandism.org 8658999689 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron. 2003-11-01 09:35:48 +00:00
timeless%mozdev.org 346f57ac0a Bug 221826 only create stack objects in Cut if they'll be used
r=dbaron sr=dbaron
2003-10-12 23:28:31 +00:00
peter%propagandism.org 4c00c9dd8c trying to fix bustage. 2003-10-09 17:02:05 +00:00
peter%propagandism.org 9059682e5b Move voidable string into xpcom. Part of fix for bug 221387 (XPathExpression.createExpression doesn't throw NAMESPACE_ERR). r=bz, sr=dbaron. 2003-10-09 16:15:29 +00:00
cls%seawood.org 1b51ba858c Set MODULE in makefiles at the top of a heirarchy so that module-deps lists are more precise and builds will have the proper order if some subdirs contain other modules. 2003-08-16 00:42:35 +00:00
cls%seawood.org 74a903bcdb Move mozilla/string into mozilla/xpcom/.
Bug #214700 r=dougt sr=leaf a=mkaply
2003-08-14 23:50:21 +00:00
dougt%meer.net ed09f93043 Fix for 205023. Adds nsTraceRefcnt stubs that access a global to allow tracing refcnt to work with the GRE/xpcom glue builds. r=dbaron 2003-08-05 05:29:10 +00:00
jaggernaut%netscape.com ac2ee6a6b1 Bug 151916: substring helpers for start and end (StringHead, StringTail, Substring(string, start)). r=dbaron, sr=bzbarsky 2003-07-14 07:42:24 +00:00
jaggernaut%netscape.com 2d7ed90a69 Bug 73353: clean up MODULE/REQUIRES story. r=cls, sr=bryner 2003-07-13 22:29:00 +00:00
dwitte%stanford.edu d78b684d26 Bug 113733: nsXPIDLCString doesn't have an assignment operator.
adds |operator=( const self_type& )| to nsSharable{C}String and nsXPIDL{C}String, to prevent the compiler from synthesizing its own (which won't do the right thing).

This should fix a bunch of XPIDLString-related cfront compile warnings.

original patch by jag, updated by me; r=dbaron, sr=jag.
2003-07-12 07:14:37 +00:00
dbaron%dbaron.org 7f9ed75392 Make ns[C]String::AppendFloat locale-independent. b=209569 r=jag sr=bzbarsky 2003-07-09 06:53:44 +00:00
darin%netscape.com ca48f5672f fixes bug 163988 'Crashes at www.macgamer.com (HREF="&#)' patch=waltershen@netscape.com r=dbaron sr=jag 2003-07-02 21:20:14 +00:00
jshin%mailaps.org 4f939c139c bug 183156 (a part of) : rename CopyUTF16toASCII as LossyCopyUTF16toASCII (r,sr=jag) 2003-06-27 07:44:13 +00:00