Commit Graph

648 Commits

Author SHA1 Message Date
jaggernaut%netscape.com
6cb69b170f Bug 115671: Add faster To{Upper,Lower}Case for nsASingleFragment{C}String, r=dbaron, sr=dveditz, and ns{C}String, r=bbaetz, sr=scc 2001-12-23 02:56:41 +00:00
jaggernaut%netscape.com
cd66e519ad Backing myself out to see if I'm the cause of btek going from 1245ms to 1251ms. 2001-12-20 06:12:49 +00:00
jaggernaut%netscape.com
d86d275209 Bug 115671: Add (faster) To{Upper,Lower}Case for nsASingleFragmentStrings. r=dbaron, sr=dveditz 2001-12-20 02:15:35 +00:00
seawood%netscape.com
45bfbf0658 Landing the rest of the win32 gmake changes:
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup

Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
ccarlen%netscape.com
58b83da07b Bug 98349 - Convert Mac build to CW7 and XML projects. Removing obsolete .mcp files. r=pink/sr=sfraser 2001-12-11 05:35:08 +00:00
dbaron%fas.harvard.edu
458adf0b19 Fix nsSharableString::SetLength to correctly handle having a shared buffer. Override GetWritableFragment on nsSharableString (perhaps temporarily) to allow use of writing iterators on nsSharableString. b=114438 r=jag sr=jst 2001-12-11 03:33:09 +00:00
ccarlen%netscape.com
b564bb181b Adding new files for conversion to CW7 and XML project files. Bug 98349 r=pink/sr=sfraser. 2001-12-10 21:20:58 +00:00
jaggernaut%netscape.com
ddc0048d69 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
986705d7d8 Fix appending to nsSharableString by always null-terminating in SetLength. b=113188 r=jag sr=jst 2001-12-08 22:50:34 +00:00
jaggernaut%netscape.com
83839f350e BUg 113228: Replace nsC?String::To(Lower|Upper)Case with global To(Lower|Upper)Case. r=dbaron, sr=jst 2001-12-08 07:08:38 +00:00
dbaron%fas.harvard.edu
dc8b10ae25 Make nsSharableString::Assign set the length correctly when it's reusing its existing buffer. b=112483 r=scc sr=alecf 2001-12-03 23:14:15 +00:00
dbaron%fas.harvard.edu
581f35a9c1 Make nsSharableString::Assign set the length when it's reusing its existing buffer. b=112483 r=jag sr=hyatt 2001-12-03 03:54:32 +00:00
alecf%netscape.com
64bbae7daf move UTF8traits to the public realm for later consumption
r=dbaron r=jag (the string experts)
for bug 110531
2001-11-29 02:53:48 +00:00
dbaron%fas.harvard.edu
cb52b37066 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
824e7d22ca 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
jst%netscape.com
38b0b4de31 Checking in alecf's fix for bug 112209, string code performance regression. r=dbaron@netscape.com, sr=jst@netscape.com 2001-11-28 04:59:29 +00:00
jaggernaut%netscape.com
1c82bd3f23 Bug 103662: Allow wide concatenation of defined string constants, r=dbaron, sr=scc 2001-11-26 05:59:35 +00:00
seawood%netscape.com
7733357d51 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov
2001-11-21 09:49:41 +00:00
jaggernaut%netscape.com
0ecf7cce91 Bug 98213: Make data members of nsStr protected and clean up code. r=dbaron, sr=alecf 2001-11-14 12:35:52 +00:00
jaggernaut%netscape.com
00f1f74e7b Bug 53057: Removing implicit |CharT*| conversion operator for nsCString, r=dbaron, rs=scc 2001-11-10 22:00:31 +00:00
jband%netscape.com
e84b393c65 fix bug 108915 to unbust XPCOM_STANDALONE. This #ifdef's out calls into code that is only available when i18n is part of the build. This has no impact on the browser or gecko embeddings. r=jst sr=alecf a=blizzard 2001-11-09 00:34:56 +00:00
jaggernaut%netscape.com
796c9c271a Bug 108734: nsCString::Replace is broken. r=darin, sr=scc 2001-11-07 07:43:11 +00:00
dbaron%fas.harvard.edu
e53bb3af2f Add a comment explaining how to fix callers that trigger the null-termination assertion. r=jag rs=scc b=104651 2001-11-07 07:36:36 +00:00
dbaron%fas.harvard.edu
3f306cd4c2 Fix nsDependentString users who were passing non-NULL terminated buffers. b=104651 rr=jag rs=scc 2001-11-07 05:51:27 +00:00
dbaron%fas.harvard.edu
bfb2f49916 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
b486774c77 fix for minor leak bug 108640 r=jag, sr=sspitzer 2001-11-06 23:14:47 +00:00
alecf%netscape.com
1996026eb4 fix for bug 108597 - move mOwnsBuffer and mCharSize into smaller variables to reduce nsStr's overall size
r=jag, sr=waterson
2001-11-06 22:50:13 +00:00
ducarroz%netscape.com
321184f9e3 Fix for bug 86089. Replace attachments string in message compose fields by an array of nsIMsgAttachment objects. This architecture change allow us to dissocie the attachment name from the attachment url. We can also now carry over extra information like the attachment content type or Mac file type. This check in contains also fix for related bug 52428, bug 80895, bug 87765 and bug 89090.
R=varada, SR=sspitzer
2001-10-30 14:42:41 +00:00
alecf%netscape.com
ee9a106589 Back out my backout, now that mac seems to be fixed 2001-10-30 03:39:18 +00:00
alecf%netscape.com
acc45c0027 Back out my checkin because !(*@3 PSM is screwed. 2001-10-30 02:41:48 +00:00
alecf%netscape.com
0307c79aff 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
8f8d8dc7e1 Bug 70083: add nsASingleFragmentString to hierarchy. r=dbaron, sr=scc 2001-10-28 08:24:55 +00:00
jaggernaut%netscape.com
a2008a7538 Bug 70083: add nsASingleFragmentString to hierarchy. r=dbaron, sr=scc 2001-10-27 11:40:01 +00:00
jaggernaut%netscape.com
3757c27e22 Bug 105987: Clean up nsCharTraits.h, use slightly faster implementations where possible, r=dbaron, sr=scc. 2001-10-27 09:40:08 +00:00
jaggernaut%netscape.com
b1eedf6ab3 Bug 105904, bug 105971, bug 105889, bug 105906: NS_ConvertUTF8toUCS2 hangs / segfaults. r=dbaron, rs=scc 2001-10-26 04:42:57 +00:00
jst%netscape.com
285c5940f6 Fixing blocker bug 106474. Make nsAFlatString::GetReadableFragment() deal with a null buffer handles correctly. r=kin@netscape.com, sr=scc@mozilla.org 2001-10-24 19:29:42 +00:00
alecf%netscape.com
ddf5745c0c for bug 100214 - make nsStr routines stop depending on nsCRT:: routines, to further reduce our dependency on unicharutil
r=jag, sr=scc
2001-10-19 20:49:39 +00:00
jaggernaut%netscape.com
79e0a6c9a2 Bug 73292: Add const nsACString& constructor to NS_Convert(ASCII|UTF8)toUCS2. r=dbaron, sr=scc. 2001-10-17 05:17:53 +00:00
dbaron%fas.harvard.edu
fb1a06783c Remove overloaded fputs functions, DebugDump, and (from nsCString only) ToCString). b=104763 r=jag rs=scc 2001-10-16 05:35:38 +00:00
dbaron%fas.harvard.edu
5a357eea01 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2001-10-16 05:31:36 +00:00
jaggernaut%netscape.com
4e91454ef0 Remove dead code from obsolete string classes: ToNewString(), IsUnicode() and GetBuffer(). r=dbaron, rs=scc 2001-10-14 05:06:53 +00:00
jaggernaut%netscape.com
740385af43 Use typedefs throughout the string code. r=dbaron, sr=scc 2001-10-13 15:01:21 +00:00
jaggernaut%netscape.com
81a155af2c Bug 104337: Remove nsPrivateReadableString from string hierarchy, r=dbaron, rs=scc. 2001-10-12 07:48:27 +00:00
jaggernaut%netscape.com
d845c2f33a Bug 104337: Remove nsPrivateSharableString from string hierarchy. r=dbaron, rs=scc. 2001-10-12 07:34:28 +00:00
ftang%netscape.com
1812431a27 fix 96529. lazy load unicharutil for start up.
author=waterson r=ftang sr=brendan
2001-10-11 00:25:21 +00:00
jaggernaut%netscape.com
787bb78541 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
f49c077936 Okay, we need |typename| for HP-UX. Adding. 2001-10-02 11:15:45 +00:00
jaggernaut%netscape.com
e11ae39556 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 2001-10-02 10:18:31 +00:00
jaggernaut%netscape.com
0b8c9a35be Removing dead code, r=dbaron, rs=scc 2001-09-29 10:18:32 +00:00
jaggernaut%netscape.com
ca6197295f Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc 2001-09-29 08:28:41 +00:00
gerv%gerv.net
4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
jaggernaut%netscape.com
45d38c6d6e Bug 100764: remove NS_ConvertABCtoXYZ(CharT). r=dbaron, rs=scc 2001-09-25 09:37:13 +00:00
jaggernaut%netscape.com
2c068235b1 Bug 100750: string iterator users should use correct typedefs. r=dbaron, rs=scc 2001-09-25 09:35:50 +00:00
jaggernaut%netscape.com
dec9bd6a52 Remove dead string files from the tree, r=dbaron, rs=scc 2001-09-24 23:55:19 +00:00
jaggernaut%netscape.com
d1a7bfa843 One module per line for REQUIRES. r=/sr=alecf 2001-09-18 22:01:13 +00:00
jaggernaut%netscape.com
dc40187223 Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf 2001-09-18 13:41:47 +00:00
jaggernaut%netscape.com
74cd17660e Add support for IsVoid and SetIsVoid, add NS_COM to nsAStringGenerator. r=jst, rs=scc. 2001-09-14 08:23:46 +00:00
alecf%netscape.com
1f32af91df string changes for MOZ_TRACK_MODULE_DEPS - bug 98371 r=cls 2001-09-06 04:06:10 +00:00
jaggernaut%netscape.com
e023c4ded4 Remove #define nsString2 nsString and #define nsAutoString2 nsAutoString and fix last few uses of them. r=dbradley, rs=scc 2001-09-05 12:42:54 +00:00
jaggernaut%netscape.com
3b3680c17e Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc 2001-09-05 10:46:45 +00:00
jaggernaut%netscape.com
7f2d9f66c8 Bug 94235: add NS_COM to declaration of nsPrintfCString. r=/sr= jst,scc 2001-08-09 09:27:47 +00:00
scc%mozilla.org
027de70173 bug #90981 (top-crash): sr=mscott, rs=waterson. the new |nsXPIDLC?String| implementation doesn't always have a buffer handle to give up. |BeginReading| won't do what you want in this case, so modify |do_AssignFromReadable| to elide copies from empty strings. 2001-07-16 20:29:30 +00:00
scc%mozilla.org
be36f3d342 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. 2001-07-12 06:48:23 +00:00
scc%mozilla.org
3650041248 fixing ports bustage 2001-07-04 17:52:39 +00:00
scc%mozilla.org
26d40ef59f fixing build bustage (typo), thanks gcc 2.7.2.3 for instantiating my unused template member functions :-( 2001-07-04 07:04:17 +00:00
scc%mozilla.org
1ab59fad3a bug #76846: r=cls, build bustage fix for 64-bit platforms 2001-07-04 06:06:22 +00:00
jaggernaut%netscape.com
f9c67333fd Bug 88413: Remove GetUnicode() from nsString. Begone! r=dbaron, sr=scc 2001-07-03 09:09:56 +00:00
jaggernaut%netscape.com
5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
dbaron%fas.harvard.edu
d4fabc2675 Add hack to make functions that used to work with nsXPIDLString continue to work now that nsXPIDLString inherits from nsAString by adding inline methods to resolve ambiguity for compilers that don't support |explicit|. r=jaggernaut sr=waterson b=88411, 88420 2001-06-29 23:12:48 +00:00
scc%mozilla.org
fc7798bd94 fixing linux crasher and hpux build bustage 2001-06-29 15:56:03 +00:00
scc%mozilla.org
2b8f854ed9 OK, Windows is going to complain about the change from unsigned to signed, so we'll save that for later 2001-06-29 12:58:44 +00:00
scc%mozilla.org
0a090e4f80 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). CVS removing the old implementations. 2001-06-29 12:48:13 +00:00
scc%mozilla.org
244db7b43b 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). 2001-06-29 12:47:43 +00:00
scc%mozilla.org
0f00c47797 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 2001-06-29 11:25:08 +00:00
waterson%netscape.com
b74d6e1c8b Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs. 2001-06-20 20:21:49 +00:00
dbaron%fas.harvard.edu
a236696e96 To improve performance, change string iterator postfix ++ to prefix ++ when used as a statement. b=78032 r=peterv, scc, harishd, dmose sr=hyatt a=asa 2001-06-19 22:38:45 +00:00
cls%seawood.org
bf5fb48486 Replaced NO_SHARED_LIB & NO_STATIC_LIB with BUILD_SHARED_LIBS, BUILD_STATIC_LIBS, FORCE_STATIC_LIB & FORCE_SHARED_LIB. Added FORCE_USE_PIC.
Changes allow us to have a finer control over which parts of the tree are built with PIC.  Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf
2001-06-18 22:10:38 +00:00
scc%mozilla.org
2f612575b5 attempting to fix build bustage for speedracer from associated bug #85271 2001-06-17 07:09:41 +00:00
scc%mozilla.org
a8fb409c6e bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process. 2001-06-17 05:23:38 +00:00
scc%mozilla.org
faa968510f bug #75164: sr={brendan, sfraser}. Adding the generators |nsSubstituteC?String|, which will replace |ReplaceSubstring|. Also fixing a declaration in "nsAStringGenerator.h". 2001-05-23 06:49:51 +00:00
scc%mozilla.org
2ebaa532a1 bug #78398: sr=waterson. adding my new header file "nsAStringGenerator.h" to the Mac project to make it easier to open. 2001-05-23 03:33:06 +00:00
scc%mozilla.org
6942d895f6 bug #78398: sr=waterson. Getting the new header file "nsAStringGenerator.h" exported to dist. 2001-05-23 03:31:23 +00:00
scc%mozilla.org
1a7a0537da bug #78398: sr=waterson, adding a new abstract type (this here's the new file it comes in) |nsAC?StringGenerator| 2001-05-23 03:29:48 +00:00
scc%mozilla.org
e5f3c3cd03 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. 2001-05-23 02:44:46 +00:00
scc%mozilla.org
1090965382 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? 2001-05-23 01:45:13 +00:00
scc%mozilla.org
ced4be648e ok, but make this local bustage fix into a global one 2001-05-22 08:43:30 +00:00
mkaply%us.ibm.com
c69414db14 Nope, didn't work - broke stuff 2001-05-22 04:24:18 +00:00
mkaply%us.ibm.com
8f62bc189c Valiant attempt to fix AIX and BeOS bustage 2001-05-22 03:36:31 +00:00
scc%mozilla.org
7f6ec20ca4 bug #75220: sr=jst, r=vidur. Renaming the member function |Promises| to the more meaningful |IsDependentOn|. 2001-05-21 23:50:56 +00:00
scc%mozilla.org
ea7904c94f bug #69872, sr=jst, r=jag. Make |nsDependentC?String|s rebindable. 2001-05-21 23:45:03 +00:00
scc%mozilla.org
cefb2160cd bug #75220: sr=jst, rs=brendan. fixing string names. removing the old |nsPromise...| files from the build. 2001-05-19 11:31:22 +00:00
jst%netscape.com
77aeecc056 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
dbaron%fas.harvard.edu
dc77e98525 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 2001-05-18 23:44:17 +00:00
vidur%netscape.com
3c4fee2984 Changes necessary for fixes to bug 18843. Better handling of string implementations without an underlying buffer handle. r/sr=scc@mozilla.org 2001-05-17 05:53:16 +00:00
scc%mozilla.org
0743e4f350 bug #75220: rs=brendan, r=axel@pike.org. fixing string names. add the renamed implementations to the build. 2001-05-16 12:46:47 +00:00
scc%mozilla.org
cab4138e3b bug #75220: rs=brendan, r=axel@pike.org. fixing string names. export the new header files. 2001-05-16 12:38:41 +00:00
scc%mozilla.org
9e7566bb09 bug #75220: rs=brendan, r=axel@pike.org. fixing string names. 2001-05-16 12:36:35 +00:00
scc%mozilla.org
8d6324b1e2 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. cvs remove the obsolete files. 2001-05-16 06:57:02 +00:00
scc%mozilla.org
db83c7878c 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) 2001-05-16 04:55:23 +00:00
scc%mozilla.org
7dbfdc16f4 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Fix all users of the old name. 2001-05-16 04:52:43 +00:00