Commit Graph
239 Commits
Author SHA1 Message Date
Daniel Holbert 30e219ecea Bug 624410: Add gcc-suggested parentheses in nsReadableUtils.cpp to silence build warning. r=dwitte 2011-03-29 08:47:53 -07:00
Justin Lebar 02a6d6af4a Bug 592557 - Eliminate uses of PR_Atomic{Increment,Decrement} functions in favor of PR_ATOMIC_{INCREMENT,DECREMENT} macros. r=bsmedberg,gal 2011-03-28 15:58:49 -04:00
Justin Lebar 84b148d901 Bug 586698 - Add SSE versions of LossyConvertEncoding; r=tterribe,jst 2010-08-13 09:15:44 -07:00
Mounir Lamouri 2bcd5b2f0d Bug 636750 (1/4) - Add ToDouble to nsTString. r=bsmedberg 2011-03-25 12:13:59 +01:00
Mats Palmgren 24d0ea454d Bug 615147. r=dbaron a=blocking2.0:final 2011-01-14 01:22:26 +01:00
Boris Zbarsky 0cf06ba1e5 Bug 608914 part 1. Remove the nsString overloads of AppendInt and move AppendFloat up to nsAString. r=bsmedberg 2010-11-30 13:18:15 -05:00
Dave Townsend aea25dc578 Backing out bug 614058, bug 609272, bug 478445, bug 499628, bug 605296, bug 608914 and bug 614724 due to potentially causing bug 615736 CLOSED TREE. a=backout 2010-12-01 11:01:56 -08:00
Boris Zbarsky 798ef867c9 Bug 608914 part 1. Remove the nsString overloads of AppendInt and move AppendFloat up to nsAString. r=bsmedberg 2010-11-30 13:18:15 -05:00
Olli Pettay b10f0ebbcd Bug 600301 - Optimize ReplacePrep, r=benjamin, a=benjamin 2010-11-07 21:39:04 +02:00
Justin Lebar 93c8b7d9da Bug 145975 - Implement nsCaseInsensitiveUTF8StringComparator r=smontagu 2010-08-31 18:03:40 -07:00
Boris Zbarsky 5be4772ff0 Bug 584299. Inline the string constructors and destructors again. r=bsmedberg 2010-08-06 20:46:51 -04:00
Mounir Lamouri c317c7ae13 Bug 549475: Implement HTML5-specified value sanitization algorithm for HTMLInputElement. r=sicking,ehsan,bsmedberg sr=jst 2010-07-21 02:11:19 +02:00
Olli Pettay e97c029e22 Bug 574089 - Optimize ::GetInnerHTML, r=jst 2010-06-26 23:39:56 +03:00
Jonas Sicking 48366287f1 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
Jonas Sicking ded6d8d657 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
Jonas Sicking 7582856f31 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 e006f779df Bug 520366 AppendInt only handles 32 bit signed ints r=bsmedberg 2009-11-04 21:33:23 +00:00
Benjamin Smedberg 4ec69e1eff 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 63c77e3cdc 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
Neil Rashbrook b15be8f4bb 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
Neil Rashbrook c111019db9 Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg 2009-03-04 09:50:22 +00:00
Daniel Holbert 37cf5be52d 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 cbc6639bab Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg 2009-01-22 17:15:34 +13:00
Benjamin Smedberg d6e071646d Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron 2009-01-15 13:44:46 -05:00
Benjamin Smedberg 0b842e5583 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
Boris Zbarsky 1090af6c0c 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 f15fdc0ee5 Make sure that nsString and nsString_external are the same size. b=430581 r=benjamin 2008-07-30 08:06:54 +02:00
a955f4a276 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
cb7c4528ba Fixing bug 395651. Make our UTF-8 and UTF-16 comparison code etc more robust when dealing with invalid UTF-16 data. [email protected], [email protected]/[email protected] 2007-09-14 16:09:49 -07:00
22cd77f01a Bug 339069 - Optimization for RFindInReadable
p=Alfred Kayser <[email protected]>
r=darin, sr=dbaron
2007-07-23 18:30:19 -07:00
36dfc1e1c9 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
98de634631 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
c2654f2ce0 Fix bug 383426 (OOM crash). r=peterv, sr=roc. 2007-07-02 23:03:11 -07:00
410163cbfe 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
[email protected] 2ca566cd74 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
[email protected] 0bd0cac89f From bug 345517 - fix adoptcount logging for the frozen string API, r=darin 2006-11-10 20:05:04 +00:00
[email protected] 84692d0eca fixing win32 build bustage 2006-06-28 23:49:57 +00:00
[email protected] 160a444055 fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron 2006-06-28 22:11:39 +00:00
[email protected] 8e2c7034df Do better logging of string leaks. Bug 336914, r+sr=darin 2006-05-12 03:36:37 +00:00
[email protected] e3c2e42d5d fixes bug 327719 "Passing a big double serialize a rounded double" patch by [email protected] r=dbaron sr=darin 2006-03-15 14:23:11 +00:00
[email protected] bb24d899c4 Backing out patch for bug 328755 due to crash regression bug 328842. r=darin. 2006-03-01 00:38:15 +00:00
[email protected] 4122b05d50 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
[email protected] a89a85b0a6 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
[email protected] d380365706 Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin. 2006-01-24 19:22:02 +00:00
[email protected] 2384d73ca1 Make definition match declaration for AppendUCS4ToUTF16. Bug 316859, patch by
Greg Onufer <[email protected]>, r+sr=bzbarsky
2005-11-20 19:21:48 +00:00
[email protected] 79803d9aa2 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
[email protected] b99567001b Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver 2005-11-10 14:43:22 +00:00
[email protected] b47c9f2b3e 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
[email protected] d45196cb8d 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
[email protected] 861b005324 Back out bug 311456, at least for now, because it caused bug 311676. 2005-10-09 09:48:25 +00:00