361 Commits

Author SHA1 Message Date
jdunn%netscape.com
2da0ba8cc7 fixing AIX bustage and sticking with the c++ standard for "friend" and
"function protyping" guidelines

Submitted by pkw@austin.ibm.com
# 43311
sr=jaggernaut@netscape.com
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@116144 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 12:37:00 +00:00
alecf%netscape.com
8755908f04 bug 127091 - big string cleanup, removing old APIs
- removing Assign/AppendWithConversion for single-characters
- removing unused StripChars
- removing ReplaceChar[s] for non-matching chars
- removing CompressSet
- removing nsCString::Find/FindCharInSet/RFind for unichar strings
- removing lots of EqualsWithConversion
r=dp, sr=jag
a=asa


git-svn-id: svn://10.0.0.236/trunk@115750 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 23:18:21 +00:00
cathleen%netscape.com
6f09324ed7 eliminate nsCRT::strlen for char* strings (part 4), bug 124536 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@114939 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 16:01:45 +00:00
mkaply%us.ibm.com
836cd5c8df OS/2 bustage - this is defined in nsStrShared.h
git-svn-id: svn://10.0.0.236/trunk@114573 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 05:22:42 +00:00
alecf%netscape.com
5a78793da8 re-land fix for bug 107575, moving nsStr static routines into a private class/namespace
git-svn-id: svn://10.0.0.236/trunk@114538 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:23:55 +00:00
alecf%netscape.com
a959243ac9 oops, back myself out - forward declared enums don't work on linux!
git-svn-id: svn://10.0.0.236/trunk@114534 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:14:50 +00:00
alecf%netscape.com
6326ee9424 make all static nsStr:: members private, so they are not exported, and so the linker can cull them out
r=dbaron, sr=blake, jag
bug 125093


git-svn-id: svn://10.0.0.236/trunk@114533 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:08:38 +00:00
jband%netscape.com
76ebd6b5a4 avoid memcpy call when only copying one (PRUnichar) char. bug 109562. r=jag sr=brendan
git-svn-id: svn://10.0.0.236/trunk@114487 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 06:22:53 +00:00
jaggernaut%netscape.com
69ac84dbd0 Bug 122083: Typing "v", "vi", "vie" ... "view-source" into URL bar and pressing enter freezes Mozilla. r=dbradley, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113414 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:22:22 +00:00
alecf%netscape.com
f7ee18f044 one more part of fix for bug 107575, including the much coveted whitespace
remove aIgnoreCase parameter from all nsString and nsCString consumers
sr=jag, r=shaver


git-svn-id: svn://10.0.0.236/trunk@113390 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:53:09 +00:00
alecf%netscape.com
4331ed65d3 First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 06:04:29 +00:00
alecf%netscape.com
fd6d75b30f fix for bug 112209 - remove last consumers of nsStr:: routines
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112785 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:26:44 +00:00
alecf%netscape.com
ce5f992cb4 bug 108962 - shrink nsStr by 4 bytes by packing mCharSize and mOwnsBuffer into bits of mCapacity
r=dbaron, sr=jst, with an almost-sr=jag


git-svn-id: svn://10.0.0.236/trunk@112769 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:46:56 +00:00
alecf%netscape.com
0885d07bf5 fix for bug 114450 - be explicit about string comparison w.r.t. character size - no more hand-rolled vtables!
sr=jag, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@112713 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:14:18 +00:00
alecf%netscape.com
bfe2c85e5b factor out some table-based string manipulation routines to make it easier to seperate unicode vs. 8-bit character strings. bug 114450, r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@112213 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:57:29 +00:00
alecf%netscape.com
d07f537d7f bug 114450 sr=jag
remove table-based comparison functions so we can actually remove them later


git-svn-id: svn://10.0.0.236/trunk@111630 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 02:28:28 +00:00
jaggernaut%netscape.com
3fddc3c879 Bug 113228: Remove nsStr::ChangeCase. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@111619 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 01:44:43 +00:00
jaggernaut%netscape.com
9f55bebd67 Bug 113228: Remove To{Lower,Upper}Case from ns{C}String. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@111413 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 11:18:57 +00:00
jaggernaut%netscape.com
6f56f8ad09 Bug 103342, 113590: ns{C}String::SubstituteString hangs/crashes. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@111271 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-02 23:54:25 +00:00
jaggernaut%netscape.com
21218c3fcb Add assertion to ns{C}String::Adopt. r=/sr=mozbot
git-svn-id: svn://10.0.0.236/trunk@111232 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-02 09:00:02 +00:00
jaggernaut%netscape.com
fa464ed171 Bug 116957: Put Adopt on ns{C}String, and use it in nsStandardURL. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@111092 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-26 23:14:12 +00:00
jaggernaut%netscape.com
955f7defe5 Bug 115671: Add faster To{Upper,Lower}Case for nsASingleFragment{C}String, r=dbaron, sr=dveditz, and ns{C}String, r=bbaetz, sr=scc
git-svn-id: svn://10.0.0.236/trunk@111040 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 02:56:41 +00:00
seawood%netscape.com
0bd62df729 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


git-svn-id: svn://10.0.0.236/trunk@110703 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 09:14:29 +00:00
jaggernaut%netscape.com
357c78f88e BUg 113228: Replace nsC?String::To(Lower|Upper)Case with global To(Lower|Upper)Case. r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110075 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 07:08:38 +00:00
alecf%netscape.com
700d0e8fd2 move UTF8traits to the public realm for later consumption
r=dbaron r=jag (the string experts)
for bug 110531


git-svn-id: svn://10.0.0.236/trunk@109171 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:53:48 +00:00
seawood%netscape.com
889469fd27 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108684 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:49:41 +00:00
jaggernaut%netscape.com
d22bec017c Bug 98213: Make data members of nsStr protected and clean up code. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108048 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 12:35:52 +00:00
jaggernaut%netscape.com
85bf8c8fb4 Bug 53057: Removing implicit |CharT*| conversion operator for nsCString, r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107850 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:00:31 +00:00
jband%netscape.com
861f4c54ac 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
git-svn-id: svn://10.0.0.236/trunk@107708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:34:56 +00:00
alecf%netscape.com
b5cc350bd4 fix for minor leak bug 108640 r=jag, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107499 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:14:47 +00:00
alecf%netscape.com
71dee0899c fix for bug 108597 - move mOwnsBuffer and mCharSize into smaller variables to reduce nsStr's overall size
r=jag, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107478 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:50:13 +00:00
ducarroz%netscape.com
38011f6783 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


git-svn-id: svn://10.0.0.236/trunk@106694 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:42:41 +00:00
jaggernaut%netscape.com
5f0668cf9d Bug 105904, bug 105971, bug 105889, bug 105906: NS_ConvertUTF8toUCS2 hangs / segfaults. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106327 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 04:42:57 +00:00
alecf%netscape.com
44ffdedad3 for bug 100214 - make nsStr routines stop depending on nsCRT:: routines, to further reduce our dependency on unicharutil
r=jag, sr=scc


git-svn-id: svn://10.0.0.236/trunk@105795 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:49:39 +00:00
jaggernaut%netscape.com
7421efac1f Bug 73292: Add const nsACString& constructor to NS_Convert(ASCII|UTF8)toUCS2. r=dbaron, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@105601 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:17:53 +00:00
dbaron%fas.harvard.edu
f2bb49a853 Remove overloaded fputs functions, DebugDump, and (from nsCString only) ToCString). b=104763 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105469 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 05:35:38 +00:00
dbaron%fas.harvard.edu
1382ac90eb Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 05:31:36 +00:00
jaggernaut%netscape.com
34e006d3a5 Remove dead code from obsolete string classes: ToNewString(), IsUnicode() and GetBuffer(). r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@105387 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-14 05:06:53 +00:00
ftang%netscape.com
6c3c50baf2 fix 96529. lazy load unicharutil for start up.
author=waterson r=ftang sr=brendan


git-svn-id: svn://10.0.0.236/trunk@105123 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 00:25:21 +00:00
jaggernaut%netscape.com
51e0dc7a6c 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
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +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
481ff2b35e Bug 100764: remove NS_ConvertABCtoXYZ(CharT). r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@103710 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 09:37: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
8a87c13848 One module per line for REQUIRES. r=/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103116 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 22:01:13 +00:00
jaggernaut%netscape.com
8b71ae9c91 Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103093 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 13:41:47 +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
1536b0881b Remove #define nsString2 nsString and #define nsAutoString2 nsAutoString and fix last few uses of them. r=dbradley, rs=scc
git-svn-id: svn://10.0.0.236/trunk@102294 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 12:42:54 +00:00
jaggernaut%netscape.com
234588f481 Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@102292 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 10:46:45 +00:00
jaggernaut%netscape.com
2573850e73 Bug 88413: Remove GetUnicode() from nsString. Begone! r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@98551 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-03 09:09:56 +00:00
jaggernaut%netscape.com
51b17b5bf0 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 :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00