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
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
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
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
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
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
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
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
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
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
dbaron%fas.harvard.edu
a67c8b2b66
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
...
git-svn-id: svn://10.0.0.236/trunk@98325 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 23:12:48 +00:00
scc%mozilla.org
7b06841b03
landing string branch; see bug #73786
...
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
disttsc%bart.nl
a863c06732
Move nsCString from |operator char*()| to |get()| and |NS_CONST_CAST| where needed. bug=53057, r=dmose, sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@89879 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:37:56 +00:00
disttsc%bart.nl
abd8de21e5
Change implicit conversion from
...
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|
to explicit |get()|.
Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).
Bug=53057, r=alecf, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
syd%netscape.com
67117500d7
Deprecate nsStr->GetBuffer(). r=jag, sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@88497 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 22:07:45 +00:00
scc%mozilla.org
f3c858afc8
bug #69907 : rs=brendan. Fix file-level comments in (to be) obsolete string files so they are clearer in LXR directory views.
...
git-svn-id: svn://10.0.0.236/trunk@87763 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 02:43:42 +00:00
scc%mozilla.org
3f930de8f0
bug #65219 : (work done by dbaron) r=jag, sr=scc. Remove leaking string recyclers.
...
git-svn-id: svn://10.0.0.236/trunk@87754 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 02:03:02 +00:00
scc%mozilla.org
028f9f3180
bug #53071 : r=danm, sr=alecf. Eliminate redundant implemenations, resolve resulting ambiguities.
...
git-svn-id: svn://10.0.0.236/trunk@86357 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:07:24 +00:00
disttsc%bart.nl
62d90be0d3
Add |.get()| to nsCString. Bug=58284,r=dbaron, a=scc.
...
git-svn-id: svn://10.0.0.236/trunk@84035 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 06:45:54 +00:00
vidur%netscape.com
3e62b3f9f3
Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
disttsc%bart.nl
4440bdbb28
Add |.get()| to NS_ConvertUCS2toUTF8 to make getting rid of some MLKs easier, bug=54740, r=scc, a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@80623 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 00:08:47 +00:00
scc%mozilla.org
e25e984f19
adding back a couple more |operator+|s for gcc
...
git-svn-id: svn://10.0.0.236/trunk@78096 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 01:34:04 +00:00
scc%mozilla.org
c292773239
bustage fix for old gcc; already built on speedracer to ensure that it works, and on Mac to ensure that doesn't break modern compilers
...
git-svn-id: svn://10.0.0.236/trunk@78083 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 22:38:38 +00:00
scc%mozilla.org
ff4ff3adf3
now that constructors are explicit, we'll have to get rid of extra comparison operators ... in fact, this is to fix immediate bustage
...
git-svn-id: svn://10.0.0.236/trunk@78056 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 03:16:47 +00:00
scc%mozilla.org
9fc340d07f
making all string construction explicit; plus (now that the DOM APIs are turned on and you can no longer build without NEW_STRING_APIS) chopping out |#ifdef|ed code
...
git-svn-id: svn://10.0.0.236/trunk@78027 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 20:53:31 +00:00
beard%netscape.com
e4ac42fcaf
fixing build bustage. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@77749 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 06:00:21 +00:00
jst%netscape.com
7e0575bfee
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
...
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
scc%mozilla.org
b8a099bbf3
temporarily backing out the headers with the explicit change (we haven't finished platform specific code or commercial yet)
...
git-svn-id: svn://10.0.0.236/trunk@76755 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 07:40:30 +00:00
scc%mozilla.org
20f047d01b
fixing code that relied on implicit string construction
...
git-svn-id: svn://10.0.0.236/trunk@76750 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 06:59:07 +00:00
scc%mozilla.org
b286b36f72
adding |AppendWithConverison(const PRUnichar*, PRInt32)|, the need for which was brought out by making constructors |explicit|
...
git-svn-id: svn://10.0.0.236/trunk@76711 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 19:34:00 +00:00
scc%mozilla.org
6c6171d864
fix for bug #43085 . r=waterson, a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@72617 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 04:25:20 +00:00
scc%mozilla.org
bb796c096f
added some #ifdef logic to allow me to turn NEW_STRING_APIS off, so I can continue to profile for bloat; added an implementation specific |operator+()| to resolve ambiguity with promises on some platforms
...
git-svn-id: svn://10.0.0.236/trunk@71988 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-11 04:35:02 +00:00
waterson%netscape.com
798592bacb
Fix boneheaded mistake: I left the return type of NS_ConvertUCS2toUTF8::Init().
...
git-svn-id: svn://10.0.0.236/trunk@70971 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-27 00:17:10 +00:00
waterson%netscape.com
11ea188ef2
Bug 40461. Implement NS_ConvertUCS2toUTF8, r=scc,brendan
...
git-svn-id: svn://10.0.0.236/trunk@70949 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 22:24:34 +00:00
scc%netscape.com
daa22be30a
turning on the new strings API.
...
git-svn-id: svn://10.0.0.236/trunk@70010 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 07:18:04 +00:00
scc%netscape.com
578b1917ba
circular include logic defeated me ... protect the new operator definitions locally
...
git-svn-id: svn://10.0.0.236/trunk@69773 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 08:07:25 +00:00
scc%netscape.com
a4547be9bd
adding macros and uses to support Solaris' inability to pick operator+
...
git-svn-id: svn://10.0.0.236/trunk@69767 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 07:28:00 +00:00
scc%netscape.com
879df1b115
changes to fix some errors constructing autostrings from null pointers that led to crashes
...
git-svn-id: svn://10.0.0.236/trunk@69730 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 03:10:19 +00:00
waterson%netscape.com
2f3bfe1608
With NEW_STRING_APIS, turn on definition of string comparison operators to avoid accidental pointer comparisons. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@69712 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 01:27:04 +00:00
scc%netscape.com
f5ccd18c8c
fixed macro-based comparison operators to help with our type-unification problems
...
git-svn-id: svn://10.0.0.236/trunk@69586 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 21:39:37 +00:00
scc%netscape.com
e745f6a946
Fixed the block stomping bug by ensuring the correct |operator=()| was always available.
...
git-svn-id: svn://10.0.0.236/trunk@69378 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 05:25:26 +00:00
mkaply%us.ibm.com
aeefaeec2e
# 37239
...
r= dougt@netscape.com
OS/2 bring up continues - xpcom changes - #ifdefs for OS/2
git-svn-id: svn://10.0.0.236/trunk@67765 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 22:25:44 +00:00
scc%netscape.com
79d6fa2d05
fix for pink
...
git-svn-id: svn://10.0.0.236/trunk@67446 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:21:44 +00:00
scc%netscape.com
072da30887
making string conversions explicit; this checkin stops the back-sliding before we turn on NEW_STRING_APIS.
...
git-svn-id: svn://10.0.0.236/trunk@67406 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:37:54 +00:00