Commit Graph

39 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
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
Matheus Kerschbaum
44209e0bdf Bug 678155 - Remove NS_COM. r=bsmedberg 2011-08-18 15:46:39 +02:00
Rafael Ávila de Espíndola
6ac07872b4 Bug 623132 - Add constructor for nsCaseInsensitiveCStringComparator (which inherits from nsCStringComparator) to placate CLang; r=bsmedberg 2011-03-24 19:28:57 -04:00
Justin Lebar
93c8b7d9da Bug 145975 - Implement nsCaseInsensitiveUTF8StringComparator r=smontagu 2010-08-31 18:03:40 -07:00
Jonas Sicking
c8e37fb5f2 Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst 2008-09-30 17:50:42 -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
alfred.peng@sun.com
ce2138aaa9 Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
jst: review+
darin: superreview+
2006-08-04 08:36:36 +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
2f29121515 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
timeless@mozdev.org
8b5bd66f2f 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
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
d6a2f33bc0 Fixing bustage ... MSVC can't handle the array size template. 2004-04-24 22:46:24 +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
14e471acbc landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00
jst@netscape.com
72356253ff Fixing typo in comment. 2003-06-18 06:52:16 +00:00
jst@netscape.com
95ac8b0e7e Fixing typo in comment. 2003-06-17 16:30:35 +00:00
dougt@netscape.com
60f83f0895 177173 - Exports required string headers to SDK, r=jag, sr=alecf, a=robert@ocallahan.org 2002-10-30 14:11:03 +00:00
dougt@netscape.com
f2ff87ea7e Freezes nsAString, nsACString, nsAUTF8String. r=dougt, sr=alecf, a=brendan b=125389 2002-08-01 17:52:56 +00:00
dbaron@fas.harvard.edu
d243d76fb1 Make GetImplementationFlags more useful/extensible by changing the default implementation to return zero rather than returning the flags from the shared buffer handle, and add a constant for one expected future use. b=109571 r=jag sr=scc 2002-05-17 02:53:34 +00:00
jaggernaut@netscape.com
590cde589b Bug 139649: Fix string code to use IsDependentOn instead of depending on nsAPromiseString type. r=scc, sr=darin 2002-05-15 03:28:44 +00:00
alecf@netscape.com
65ff4eb341 fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin
2002-04-29 20:29:54 +00:00
jaggernaut@netscape.com
3b95be9b84 Bug 114288: Add nsStringComparator parameter to nsAString::Equals to mirror Compare and provide a way to do CaseInsensitive Equals. r=dbaron, sr=jst 2001-12-10 10:10:44 +00:00
dbaron@fas.harvard.edu
9876145627 Copy my comment changes from nsAString to nsACString. b=104663 r=jag sr=scc 2001-11-28 06:06:43 +00:00
dbaron@fas.harvard.edu
3e64e33073 Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc 2001-11-28 05:22:57 +00:00
dbaron@fas.harvard.edu
130be4eb02 Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc 2001-11-07 04:12:20 +00:00
alecf@netscape.com
bc16a5bac1 Back out my backout, now that mac seems to be fixed 2001-10-30 03:39:18 +00:00
alecf@netscape.com
4c0d3aaa50 Back out my checkin because !(*@3 PSM is screwed. 2001-10-30 02:41:48 +00:00
alecf@netscape.com
4239884c1d bug 100214 - Remove string dependency on XPCOM routines that depend on unicharutil, r=jag sr=scc 2001-10-29 23:16:23 +00:00
jaggernaut@netscape.com
e76b8751f7 Use typedefs throughout the string code. r=dbaron, sr=scc 2001-10-13 15:01:21 +00:00
jaggernaut@netscape.com
935d42044b Bug 104337: Remove nsPrivateSharableString from string hierarchy. r=dbaron, rs=scc. 2001-10-12 07:34:28 +00:00
jaggernaut@netscape.com
f11e34b6d8 We'll want support for IsVoid and SetIsVoid on nsACString too. r=jst,dbaron, rs=scc. 2001-10-10 07:51:16 +00:00
jaggernaut@netscape.com
1068a7e9e3 Add support for IsVoid and SetIsVoid, add NS_COM to nsAStringGenerator. r=jst, rs=scc. 2001-09-14 08:23:46 +00:00
scc@mozilla.org
a0da4e883a bug #75220: sr=jst, r=vidur. Renaming the member function |Promises| to the more meaningful |IsDependentOn|. 2001-05-21 23:50:56 +00:00
jst@netscape.com
519fe64e10 scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances. 2001-05-19 11:27:30 +00:00
scc@mozilla.org
d395e20683 bug #70740: r=mjudge, sr=sfraser. Provide case-insensitive comparison for all string classes 2001-04-18 05:20:06 +00:00
scc@mozilla.org
4e56e9386c landing string branch; see bug #73786 2001-04-02 19:40:52 +00:00