Commit Graph

135 Commits

Author SHA1 Message Date
jaggernaut@netscape.com
5755ab2012 Bug 162017: first step to inlining nsStr. r=kaie, sr=alecf 2002-09-17 13:56:34 +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
dbaron@fas.harvard.edu
e990a4631d Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-24 00:16:18 +00:00
alecf@netscape.com
4bcfcad1ba 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
2002-03-04 23:18:21 +00:00
alecf@netscape.com
1093afbac3 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
2002-02-01 01:53:09 +00:00
alecf@netscape.com
fb08c06387 fix for bug 114450 - be explicit about string comparison w.r.t. character size - no more hand-rolled vtables!
sr=jag, r=dbaron
2002-01-24 19:14:18 +00:00
jaggernaut@netscape.com
3afddad17e Bug 113228: Remove To{Lower,Upper}Case from ns{C}String. r=bzbarsky, sr=jst 2002-01-05 11:18:57 +00:00
jaggernaut@netscape.com
4ed6f8fa69 Bug 116957: Put Adopt on ns{C}String, and use it in nsStandardURL. r=dbaron, rs=scc 2001-12-26 23:14:12 +00:00
jaggernaut@netscape.com
24706be7bd 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
db48714264 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
jaggernaut@netscape.com
e8068c5c09 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
b5a79f3201 Bug 53057: Removing implicit |CharT*| conversion operator for nsCString, r=dbaron, rs=scc 2001-11-10 22:00:31 +00:00
dbaron@fas.harvard.edu
5cd04e5165 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
d0430dd000 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2001-10-16 05:31:36 +00:00
jaggernaut@netscape.com
c8bce476d4 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
a29a08f141 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
58d409fba9 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
b606517ef6 Bug 100764: remove NS_ConvertABCtoXYZ(CharT). r=dbaron, rs=scc 2001-09-25 09:37:13 +00:00
jaggernaut@netscape.com
bc21507846 Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc 2001-09-05 10:46:45 +00:00
dbaron@fas.harvard.edu
6a1a7acfe5 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
4e56e9386c landing string branch; see bug #73786 2001-04-02 19:40:52 +00:00
disttsc@bart.nl
eca57dd082 Move nsCString from |operator char*()| to |get()| and |NS_CONST_CAST| where needed. bug=53057, r=dmose, sr=shaver 2001-03-20 05:37:56 +00:00
disttsc@bart.nl
82d8a439a8 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
2001-03-08 08:05:05 +00:00
syd@netscape.com
ce2a37ff3f Deprecate nsStr->GetBuffer(). r=jag, sr=scc 2001-03-03 22:07:45 +00:00
scc@mozilla.org
8d0f4f0b82 bug #69907: rs=brendan. Fix file-level comments in (to be) obsolete string files so they are clearer in LXR directory views. 2001-02-23 02:43:42 +00:00
scc@mozilla.org
bdcfd3d35d bug #65219: (work done by dbaron) r=jag, sr=scc. Remove leaking string recyclers. 2001-02-23 02:03:02 +00:00
scc@mozilla.org
4c322a1807 bug #53071: r=danm, sr=alecf. Eliminate redundant implemenations, resolve resulting ambiguities. 2001-02-06 23:07:24 +00:00
disttsc@bart.nl
98ee073348 Add |.get()| to nsCString. Bug=58284,r=dbaron, a=scc. 2000-12-23 06:45:54 +00:00
vidur@netscape.com
5d0ca658ca 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 2000-12-12 21:58:14 +00:00
disttsc@bart.nl
115fe4a8a9 Add |.get()| to NS_ConvertUCS2toUTF8 to make getting rid of some MLKs easier, bug=54740, r=scc, a=waterson 2000-10-07 00:08:47 +00:00
scc@mozilla.org
14f37ab1fc adding back a couple more |operator+|s for gcc 2000-09-04 01:34:04 +00:00
scc@mozilla.org
ea65c0e928 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 2000-09-03 22:38:38 +00:00
scc@mozilla.org
a6c6d08385 now that constructors are explicit, we'll have to get rid of extra comparison operators ... in fact, this is to fix immediate bustage 2000-09-03 03:16:47 +00:00
scc@mozilla.org
65ca787bc1 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 2000-09-02 20:53:31 +00:00
beard@netscape.com
481762028e fixing build bustage. r=scc 2000-08-31 06:00:21 +00:00
jst@netscape.com
3ba32f670e 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 2000-08-23 17:27:06 +00:00
scc@mozilla.org
ea49867cd5 temporarily backing out the headers with the explicit change (we haven't finished platform specific code or commercial yet) 2000-08-20 07:40:30 +00:00
scc@mozilla.org
1c4aa78745 fixing code that relied on implicit string construction 2000-08-20 06:59:07 +00:00
scc@mozilla.org
7e5da99c1e adding |AppendWithConverison(const PRUnichar*, PRInt32)|, the need for which was brought out by making constructors |explicit| 2000-08-19 19:34:00 +00:00
scc@mozilla.org
8265cda212 fix for bug #43085. r=waterson, a=waterson 2000-06-20 04:25:20 +00:00
scc@mozilla.org
342c83f0db 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 2000-06-11 04:35:02 +00:00
waterson@netscape.com
600a709b56 Fix boneheaded mistake: I left the return type of NS_ConvertUCS2toUTF8::Init(). 2000-05-27 00:17:10 +00:00
waterson@netscape.com
3c3830298b Bug 40461. Implement NS_ConvertUCS2toUTF8, r=scc,brendan 2000-05-26 22:24:34 +00:00
scc@netscape.com
24ed6675fa turning on the new strings API. 2000-05-16 07:18:04 +00:00
scc@netscape.com
c154d1a05f circular include logic defeated me ... protect the new operator definitions locally 2000-05-15 08:07:25 +00:00
scc@netscape.com
8901b216af adding macros and uses to support Solaris' inability to pick operator+ 2000-05-15 07:28:00 +00:00
scc@netscape.com
e3c5a5a182 changes to fix some errors constructing autostrings from null pointers that led to crashes 2000-05-15 03:10:19 +00:00
waterson@netscape.com
2b5774d998 With NEW_STRING_APIS, turn on definition of string comparison operators to avoid accidental pointer comparisons. r=scc 2000-05-15 01:27:04 +00:00
scc@netscape.com
b4158b3a7a fixed macro-based comparison operators to help with our type-unification problems 2000-05-13 21:39:37 +00:00
scc@netscape.com
c05f4f79e6 Fixed the block stomping bug by ensuring the correct |operator=()| was always available. 2000-05-12 05:25:26 +00:00