Commit Graph

135 Commits

Author SHA1 Message Date
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
pinkerton@netscape.com
61b9093b7d add a |do_AppendFromElement(PRUnichar)| to help speed up some things in wallet initialization (bug 44514) r/a=scc. 2000-08-18 04:48:29 +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
4a4e32b644 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; added a conversion operator (against my best judgement) to |NS_ConvertASCIItoUCS2| to support the construction of literal strings induced by the bad case of the new macro. I could conditionally define this is the opposite direction. 2000-06-11 01:06:14 +00:00
waterson@netscape.com
3ce49a2adc Bugs 41279, 41280, 41290. Implement NS_ConvertUTF8toUCS2, r=ftang. Fix NS_ConvertUCS2toUTF8 to set mLength, r=ftang. Re-implement ToNew[*]String to be less bloaty, r=scc,brendan 2000-06-02 20:06:54 +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
a368ed7398 oops 2000-05-15 07:37:18 +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
mkaply@us.ibm.com
d55ba857d9 # 37239
r= dougt@netscape.com
OS/2 bring up continues - xpcom changes - #ifdefs for OS/2
2000-05-01 22:25:44 +00:00
scc@netscape.com
261fdc1d6c making string conversions explicit; this checkin stops the back-sliding before we turn on NEW_STRING_APIS. 2000-04-27 20:37:54 +00:00
mjudge@netscape.com
2bc09ddb86 scc string fixes 2000-04-26 00:55:37 +00:00
scc@netscape.com
72e3991fc3 Added an additional permitting and denying signatures for |NS_ConvertASCIItoUCS2| 2000-04-23 01:03:28 +00:00
scc@netscape.com
4cbc876bc4 there were a bunch of routines that returned references to this and were abused as much as they were used correctly. now they return |void| 2000-04-21 06:59:14 +00:00
scc@netscape.com
796429cc6d fixing build bustage 2000-04-17 12:22:37 +00:00
scc@netscape.com
36c68aa1dc attempting to fix build bustage 2000-04-17 11:49:23 +00:00
scc@netscape.com
b47386ee11 Added private unimplemented signatures of |...WithConversion| to prevent accidents where I should have used the non-converting form. Removed |AppendWithConversion|s that stood in for |AppendInt| and |AppendFloat|. 2000-04-17 11:06:41 +00:00
scc@netscape.com
eb0fc10492 no, the |Equals(PRUnichar*, PRUnichar*, ...)| form is not what you think it is. It has to go. Make comparing with |nsIAtoms| remain avalailable even in |NEW_STRINGS_APIS| 2000-04-16 11:09:16 +00:00
scc@netscape.com
d30643cb68 new ideas about string conversion 2000-04-15 00:05:17 +00:00
waterson@netscape.com
c25ee3c59e Hackery to get NEW_STRING_APIS compiling on gcc-2.7.2.3. r=scc 2000-04-04 06:00:01 +00:00
scc@netscape.com
5463eaa4ad Added a new converting signature |NS_ConvertToString| to substitute for this common practice |nsAutoString("a c string")| where used in parameter lists 2000-04-03 04:52:47 +00:00
scc@netscape.com
93e553906a Unified some signatures of |AppendWithConversion| 2000-04-01 00:24:39 +00:00
scc@netscape.com
6008cabfb9 more work bringing |ns[C]String| into line with the new implementations. Again, this is no change when |NEW_STRING_APIS| is not defined. 2000-03-31 07:26:13 +00:00
scc@netscape.com
4ec15a1e24 adjustments to the string interfaces that should have no effect in the non-|NEW_STRING_APIS| case (yes, I built all changes to verify) 2000-03-30 22:51:51 +00:00
warren@netscape.com
a2fb078809 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
scc@netscape.com
4e71931848 finer grain control of which current string assignments are still available after |NEW_STRING_APIS|. Added |AssignWithConversion| signatures. Made appropriate current |Assign|s be synonyms. 2000-03-29 00:06:31 +00:00
waterson@netscape.com
20ca7f8bcf Beef up autoconf tests to differentiate 'ambiguity resolving' and 'access changing' support of the 'using' keyword. Add a test to see if the 'std' namespace is used on the platform. r=scc 2000-03-28 07:01:37 +00:00
scc@netscape.com
7a81270f2b Lots of changes to get this stuff building on Solaris, et al. None of these changes effect the mainline build yet, and won't until |NEW_STRING_APIS| is defined for everyone (coming soon) 2000-03-24 22:06:57 +00:00
rickg@netscape.com
d84fc4ef32 WIP for new string library, and defensive coding improvement in SetCapcity; r=buster 2000-03-24 07:21:56 +00:00
waterson@netscape.com
d62c27d7a8 Condition nsAutoString operator=() and some Assign() based on NEW_STRING_APIS. r=scc 2000-03-24 00:40:47 +00:00
scc@netscape.com
f3fa578219 fixing ambiguities caused by name hiding 2000-03-23 22:53:53 +00:00
scc@netscape.com
eea32174ae resolving ambiguities; getting the new string APIs to build everywhere 2000-03-23 22:42:34 +00:00
scc@netscape.com
6783c60a70 Added "nsCharTraits.h"; no longer relying on |std::char_traits|. Renamed some things so overloading wouldn't fight with overriding. 2000-03-23 21:15:01 +00:00
scc@netscape.com
25c9ebab14 Conditionally enable the new string APIs. Don't worry, they're not turned on yet. All changes r=waterson. Changes that effect |nsString| unconditionally, r=rickg. 2000-03-23 02:12:23 +00:00
rickg@netscape.com
68a909efcd landing phase 2 to remove deprecated string calls 2000-03-12 11:10:07 +00:00
rickg@netscape.com
1796bd286e fixed bug28837 (r=troy; a=jar). Removed warnings (r=troy) 2000-02-24 08:20:03 +00:00
rickg@netscape.com
5155caf52d major perf mods for bug 27524, and removed deprecated methods; r=harishd 2000-02-13 17:46:15 +00:00
rickg@netscape.com
b152c52f10 added return type on new method 2000-02-11 15:19:17 +00:00
rickg@netscape.com
c3f3b0402f fixed25049; r=harishd 2000-02-11 12:11:03 +00:00
rickg@netscape.com
2d7ce57d5a fixed PDT+19121; r=kmcclusk 1999-12-03 00:30:29 +00:00
rickg@netscape.com
6b3a6612fa fixed off-by-1 error in compare, and added ReplaceSubstring(). r=syd 1999-12-02 10:14:38 +00:00
rickg@netscape.com
e33247c9a0 added DebugDump() to nsString classes for terminal output. Also slightly improved documentation. r=buster 1999-11-19 08:05:30 +00:00
rickg@netscape.com
68b82cefc3 finally: a fix for archaic compilers 1999-11-14 07:58:05 +00:00
rickg@netscape.com
ff04a548db try again to get around unix problem 1999-11-14 07:20:02 +00:00
rickg@netscape.com
e4303bc51a try to get around linux compiler grief 1999-11-14 06:49:43 +00:00