233 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
e456dfae91 Add a comment explaining how to fix callers that trigger the null-termination assertion. r=jag rs=scc b=104651
git-svn-id: svn://10.0.0.236/trunk@107592 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:36:36 +00:00
dbaron%fas.harvard.edu
ab4b9ed8e0 Fix nsDependentString users who were passing non-NULL terminated buffers. b=104651 rr=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@107579 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:51:27 +00:00
dbaron%fas.harvard.edu
52bea38360 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
git-svn-id: svn://10.0.0.236/trunk@107556 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:12:20 +00:00
alecf%netscape.com
6ebb917688 Back out my backout, now that mac seems to be fixed
git-svn-id: svn://10.0.0.236/trunk@106633 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:39:18 +00:00
alecf%netscape.com
d764923a0d Back out my checkin because !(*@3 PSM is screwed.
git-svn-id: svn://10.0.0.236/trunk@106627 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 02:41:48 +00:00
alecf%netscape.com
345e7b6e33 bug 100214 - Remove string dependency on XPCOM routines that depend on unicharutil, r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@106596 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:16:23 +00:00
jaggernaut%netscape.com
fbfa1c9edc Bug 70083: add nsASingleFragmentString to hierarchy. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@106505 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 08:24:55 +00:00
jaggernaut%netscape.com
9851f5a7fa Bug 70083: add nsASingleFragmentString to hierarchy. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@106474 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 11:40:01 +00:00
jaggernaut%netscape.com
e50f948785 Bug 105987: Clean up nsCharTraits.h, use slightly faster implementations where possible, r=dbaron, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@106472 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 09:40:08 +00:00
jaggernaut%netscape.com
39042c626f Use typedefs throughout the string code. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@105374 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-13 15:01:21 +00:00
jaggernaut%netscape.com
0fe9a77221 Bug 104337: Remove nsPrivateReadableString from string hierarchy, r=dbaron, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@105257 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 07:48:27 +00:00
jaggernaut%netscape.com
17085b914f Bug 104337: Remove nsPrivateSharableString from string hierarchy. r=dbaron, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@105256 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 07:34:28 +00:00
jaggernaut%netscape.com
386b4306b6 We'll want support for IsVoid and SetIsVoid on nsACString too. r=jst,dbaron, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@105026 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 07:51:16 +00:00
jaggernaut%netscape.com
ea5b2d6296 Bug 102523: Non-ASCII characters are showing up as '?'s in certain cases because the ASCII to UCS2 code which we recently started using more was doing an incorrect conversion. r=bbaetz, r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104413 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-02 10:18:31 +00:00
jaggernaut%netscape.com
a95627f25b Removing dead code, r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104216 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 10:18:32 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
jaggernaut%netscape.com
5938d73d86 Bug 100750: string iterator users should use correct typedefs. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@103709 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 09:35:50 +00:00
jaggernaut%netscape.com
5fc8712864 Remove dead string files from the tree, r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@103661 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 23:55:19 +00:00
jaggernaut%netscape.com
cbf6249310 Add support for IsVoid and SetIsVoid, add NS_COM to nsAStringGenerator. r=jst, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@102910 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 08:23:46 +00:00
alecf%netscape.com
ab0aba9085 string changes for MOZ_TRACK_MODULE_DEPS - bug 98371 r=cls
git-svn-id: svn://10.0.0.236/trunk@102385 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 04:06:10 +00:00
jaggernaut%netscape.com
ef4c7debee Bug 94235: add NS_COM to declaration of nsPrintfCString. r=/sr= jst,scc
git-svn-id: svn://10.0.0.236/trunk@100656 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 09:27:47 +00:00
scc%mozilla.org
19f12c4578 bug #90394: r=dbaron, sr=asa(?). A simple fix to a big leak when |nsXPIDLC?String|s are never accessed after assignment, deallocation failed. By storing the initial pointer in the _storage_ start slot, this is avoided.
git-svn-id: svn://10.0.0.236/trunk@99113 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-12 06:48:23 +00:00
scc%mozilla.org
fbdb51c5e7 fixing ports bustage
git-svn-id: svn://10.0.0.236/trunk@98640 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-04 17:52:39 +00:00
scc%mozilla.org
ec04d01fa0 fixing build bustage (typo), thanks gcc 2.7.2.3 for instantiating my unused template member functions :-(
git-svn-id: svn://10.0.0.236/trunk@98633 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-04 07:04:17 +00:00
scc%mozilla.org
6142aa7617 bug #76846: r=cls, build bustage fix for 64-bit platforms
git-svn-id: svn://10.0.0.236/trunk@98631 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-04 06:06:22 +00:00
scc%mozilla.org
15463ecab1 OK, Windows is going to complain about the change from unsigned to signed, so we'll save that for later
git-svn-id: svn://10.0.0.236/trunk@98277 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 12:58:44 +00:00
scc%mozilla.org
09a45773e9 bug #74726: sr=waterson, r=beard. Make |nsXPIDLC?String| inherit from |nsSharableC?String|, the new implementation is now in the string hierarchy (and out of string/obsolete).
git-svn-id: svn://10.0.0.236/trunk@98275 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 12:47:43 +00:00
scc%mozilla.org
ee60a98c74 bug #74726: sr=waterson, r=beard. Here's the new version of |nsXPIDLC?String| in all new files, and a factored header that sets up debugging defines. These files are not yet part of the build, but will become so with my next checkin
git-svn-id: svn://10.0.0.236/trunk@98273 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 11:25:08 +00:00
scc%mozilla.org
73c3c7385c bug #75164: sr={brendan, sfraser}. Adding the generators |nsSubstituteC?String|, which will replace |ReplaceSubstring|. Also fixing a declaration in "nsAStringGenerator.h".
git-svn-id: svn://10.0.0.236/trunk@95820 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:49:51 +00:00
scc%mozilla.org
c099dfea65 bug #78398: sr=waterson. Getting the new header file "nsAStringGenerator.h" exported to dist.
git-svn-id: svn://10.0.0.236/trunk@95783 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 03:31:23 +00:00
scc%mozilla.org
3ec01ebea0 bug #78398: sr=waterson, adding a new abstract type (this here's the new file it comes in) |nsAC?StringGenerator|
git-svn-id: svn://10.0.0.236/trunk@95782 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 03:29:48 +00:00
scc%mozilla.org
ffd6409fe7 bug #75220: r=vidr, sr=jst ... had just been waiting for the commercial fixes, and now mscott has landed those. Finally get rid of |nsLiteralC?String| and |nsLocalC?String|. Use |nsDependentC?String| now instead.
git-svn-id: svn://10.0.0.236/trunk@95777 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 02:44:46 +00:00
scc%mozilla.org
dd17908843 bug #63923: sr=sfraser, r=waterson (aka ``thrill-kitty''), casting to an abstract base prevents people on crack-baby platforms from using an |NS_LITERAL_STRING| (incompatibly) as an |nsAutoString|. Who's ready for a full rebuild?
git-svn-id: svn://10.0.0.236/trunk@95769 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 01:45:13 +00:00
scc%mozilla.org
fccb53ea7f ok, but make this local bustage fix into a global one
git-svn-id: svn://10.0.0.236/trunk@95666 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:43:30 +00:00
mkaply%us.ibm.com
bc8f7af020 Nope, didn't work - broke stuff
git-svn-id: svn://10.0.0.236/trunk@95657 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 04:24:18 +00:00
mkaply%us.ibm.com
a446cb4836 Valiant attempt to fix AIX and BeOS bustage
git-svn-id: svn://10.0.0.236/trunk@95654 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 03:36:31 +00:00
scc%mozilla.org
2449cc0679 bug #75220: sr=jst, r=vidur. Renaming the member function |Promises| to the more meaningful |IsDependentOn|.
git-svn-id: svn://10.0.0.236/trunk@95639 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:50:56 +00:00
scc%mozilla.org
b226abdbef bug #69872, sr=jst, r=jag. Make |nsDependentC?String|s rebindable.
git-svn-id: svn://10.0.0.236/trunk@95637 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:45:03 +00:00
jst%netscape.com
535c86019d 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.
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:27:30 +00:00
dbaron%fas.harvard.edu
226a8a9ed9 Fix NS commercial Unix build bustage on some compilers by (at least temporarily) making PRUnichar always be equivalent to PRUint16 rather than sometimes being wchar_t. r=scc sr=brendan b=75544
git-svn-id: svn://10.0.0.236/trunk@95473 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:44:17 +00:00
vidur%netscape.com
0d991aa43f Changes necessary for fixes to bug 18843. Better handling of string implementations without an underlying buffer handle. r/sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95227 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:53:16 +00:00
scc%mozilla.org
3fefa47415 bug #75220: rs=brendan, r=axel@pike.org. fixing string names. export the new header files.
git-svn-id: svn://10.0.0.236/trunk@95126 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 12:38:41 +00:00
scc%mozilla.org
e42403ea50 bug #75220: rs=brendan, r=axel@pike.org. fixing string names.
git-svn-id: svn://10.0.0.236/trunk@95124 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 12:36:35 +00:00
scc%mozilla.org
73f506738e bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. cvs remove the obsolete files.
git-svn-id: svn://10.0.0.236/trunk@95113 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 06:57:02 +00:00
scc%mozilla.org
ce6222443e bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Stop exporting the old header file "nsCommonString.h" (now that all users of the old name have been fixed)
git-svn-id: svn://10.0.0.236/trunk@95107 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:55:23 +00:00
scc%mozilla.org
b4be013eed bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Fix all users of the old name.
git-svn-id: svn://10.0.0.236/trunk@95106 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:52:43 +00:00
scc%mozilla.org
ec1b27c490 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Stop building the old implementation in "nsCommonString.cpp", and |typedef| the old type to an alias for |nsSharable[C]String|.
git-svn-id: svn://10.0.0.236/trunk@95105 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:49:20 +00:00
scc%mozilla.org
7369553c7c bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Export the new header file "nsSharableString.h".
git-svn-id: svn://10.0.0.236/trunk@95103 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:43:31 +00:00
scc%mozilla.org
1256e0e034 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|
git-svn-id: svn://10.0.0.236/trunk@95100 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:41:32 +00:00
scc%mozilla.org
5f8f895b28 bug #75551: r=jst, sr=sfraser. Added |CaseInsensitiveFindInReadable|
git-svn-id: svn://10.0.0.236/trunk@94803 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 05:16:10 +00:00