Commit Graph

49 Commits

Author SHA1 Message Date
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
92ee1c1420 Bug 737164 part A - make the nsTSubstring string API infallible by default. Note that this patch for reviewing sanity does not modify the subclass APIs, that will be a separate revision, r=jlebar 2012-05-08 12:42:27 -04:00
Benjamin Smedberg
b9be1015dc Bug 743056 - nsPrintfCString is consistently misused because people don't understand its length-truncation behavior. Make it behave the way people expect by expanding the string as necessary (and use nsTSubstring::AppendPrintf to unify the codepath), r=jlebar 2012-04-13 12:58:59 -04:00
Mats Palmgren
4fd4116067 Bug 732951. r=bsmedberg 2012-03-20 19:02:38 +01:00
Nicholas Nethercote
c96906ad44 Bug 682431 (part 1) - Fix up ns{String,CString} SizeOf* functions. r=bz. 2012-02-19 19:16:41 -08:00
Nicholas Nethercote
4c7c575004 Bug 710054 - Add {nsString,nsCString}::SizeOf{In,Ex}cludingThis. r=bz. 2012-02-02 14:52:02 -08:00
Ehsan Akhgari
478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Jeff Muizelaar
c3e62faaa6 Bug 592009. Fix AppendPrintf to support more than 31 characters. r=bsmedberg
We can use vsmprintf to have the formatting code do the allocation for us.
2011-08-25 10:43:49 -04:00
Matheus Kerschbaum
44209e0bdf Bug 678155 - Remove NS_COM. r=bsmedberg 2011-08-18 15:46:39 +02: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
c4d31556c8 Bug 577472 - Quickstub string handling shouldn't addref/release the string buffer, r=mrbkap 2010-07-19 13:34:23 +03: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
Daniel Holbert
8992d625af 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
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
ceb385fd6f 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
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
mozilla@weilbacher.org
00d18922e3 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
0bd0cac89f From bug 345517 - fix adoptcount logging for the frozen string API, r=darin 2006-11-10 20:05:04 +00:00
darin@meer.net
94f2d8040c fixing win32 bustage 2006-06-28 22:54:40 +00:00
darin@meer.net
160a444055 fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron 2006-06-28 22:11:39 +00:00
timeless@mozdev.org
9ced5b09ba Bug 106386 Correct misspellings in source code
r=bernd rs=brendan
2006-02-23 09:36:43 +00:00
timeless@mozdev.org
21af79fe88 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan
2005-11-25 21:57:13 +00:00
bsmedberg@covad.net
b99567001b Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver 2005-11-10 14:43:22 +00:00
bryner@brianryner.com
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
darin@meer.net
afd68b4645 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
bryner@brianryner.com
6829e77924 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
bryner@brianryner.com
776cc12348 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
darin@meer.net
1461025238 fixes bug 264274 "support dependent strings in frozen string API" r=biesi sr=bsmedberg 2004-11-16 04:44:57 +00:00
bryner@brianryner.com
0e308c4434 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
8061c17d95 fixing bustage AGAIN. 2004-06-06 04:42:45 +00:00
roc+@cs.cmu.edu
52ccac6b35 fixing bustage. 2004-06-06 03:38:35 +00:00
roc+@cs.cmu.edu
8f74808557 Bug 226439. Add ASCII and Literal versions of Append, EqualsIgnoreCase, and Assign. r+sr=darin 2004-06-06 02:17:00 +00:00
roc+@cs.cmu.edu
992ee30677 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
d86039a1b1 Fix btek bustage ... I hope. 2004-04-28 19:23:58 +00:00
roc+@cs.cmu.edu
521d9eb8e9 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
a1cb1d962c 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
33f7ab6e0c 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
d640af6f3e 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
82cd78b924 bustage fix for GCC 3.4 2004-02-19 04:18:18 +00:00
darin@meer.net
14e471acbc landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00