211 Commits

Author SHA1 Message Date
scc%netscape.com
a50ec8fb2b Added a new converting signature |NS_ConvertToString| to substitute for this common practice |nsAutoString("a c string")| where used in parameter lists
git-svn-id: svn://10.0.0.236/trunk@64999 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 04:52:47 +00:00
scc%netscape.com
4bcca5a554 Unified some signatures of |AppendWithConversion|
git-svn-id: svn://10.0.0.236/trunk@64815 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:24:39 +00:00
scc%netscape.com
1030b5cbc8 Had to add another signature of |AppendWithConversion|
git-svn-id: svn://10.0.0.236/trunk@64814 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:24:32 +00:00
alecf%netscape.com
c3d3879f93 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@64730 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:55:08 +00:00
scc%netscape.com
4108d844a4 more work bringing |ns[C]String| into line with the new implementations. Again, this is no change when |NEW_STRING_APIS| is not defined.
git-svn-id: svn://10.0.0.236/trunk@64724 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:26:13 +00:00
scc%netscape.com
9121343202 adjustments to the string interfaces that should have no effect in the non-|NEW_STRING_APIS| case (yes, I built all changes to verify)
git-svn-id: svn://10.0.0.236/trunk@64635 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 22:51:51 +00:00
warren%netscape.com
9fa657f1cd 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.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
scc%netscape.com
afd60f21c4 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.
git-svn-id: svn://10.0.0.236/trunk@64404 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 00:06:31 +00:00
waterson%netscape.com
31ff53e050 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
git-svn-id: svn://10.0.0.236/trunk@64334 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 07:01:37 +00:00
rickg%netscape.com
7b539e04c1 2x perf. improvement StripChar(); r=rods
git-svn-id: svn://10.0.0.236/trunk@64269 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 00:02:41 +00:00
scc%netscape.com
50e2ee0edc fixing an off-by-one bug, and the associated problem when |mCapacity| and |mLength| are both |0|. r=waterson
git-svn-id: svn://10.0.0.236/trunk@64249 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-27 22:13:41 +00:00
jst%netscape.com
9137d08f83 Backing out scc's last checking to this file, it causes linux builds to dump core on startup. a=leaf
git-svn-id: svn://10.0.0.236/trunk@64232 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-27 15:10:12 +00:00
scc%netscape.com
67117f4462 fixing an off-by-one bug
git-svn-id: svn://10.0.0.236/trunk@64224 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-27 07:46:02 +00:00
pavlov%netscape.com
39ea807596 add some #if[n]def STASTANDALONE_STRING_TESTS r=scc
git-svn-id: svn://10.0.0.236/trunk@64091 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 02:07:34 +00:00
scc%netscape.com
8df3e4e189 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)
git-svn-id: svn://10.0.0.236/trunk@64064 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 22:06:57 +00:00
rickg%netscape.com
61451beb94 WIP for new string library, and defensive coding improvement in SetCapcity; r=buster
git-svn-id: svn://10.0.0.236/trunk@64014 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 07:21:56 +00:00
rickg%netscape.com
39a364f3bd correct off-by-one error (edge case); r=buster
git-svn-id: svn://10.0.0.236/trunk@64013 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 07:19:00 +00:00
waterson%netscape.com
f40e891d2e Condition nsAutoCString operator=() on NEW_STRING_APIS. r=scc
git-svn-id: svn://10.0.0.236/trunk@63957 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 00:41:40 +00:00
waterson%netscape.com
230de8a1d0 Condition nsAutoString operator=() and some Assign() based on NEW_STRING_APIS. r=scc
git-svn-id: svn://10.0.0.236/trunk@63956 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 00:40:47 +00:00
scc%netscape.com
946ef71be0 fixing ambiguities caused by name hiding
git-svn-id: svn://10.0.0.236/trunk@63899 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 22:53:53 +00:00
scc%netscape.com
33689dfd59 resolving ambiguities; getting the new string APIs to build everywhere
git-svn-id: svn://10.0.0.236/trunk@63897 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 22:42:34 +00:00
scc%netscape.com
cfed15f5a1 Added "nsCharTraits.h"; no longer relying on |std::char_traits|. Renamed some things so overloading wouldn't fight with overriding.
git-svn-id: svn://10.0.0.236/trunk@63876 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 21:15:01 +00:00
scc%netscape.com
5fcf54179f 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.
git-svn-id: svn://10.0.0.236/trunk@63813 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 02:12:23 +00:00
rickg%netscape.com
b0ba15c22d WIP for removal of deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62734 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 22:21:14 +00:00
rickg%netscape.com
65135726ce landing phase 2 to remove deprecated string calls
git-svn-id: svn://10.0.0.236/trunk@62718 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 11:10:07 +00:00
rickg%netscape.com
582e770b5c fixed pdt+ bug 29749; r=pollman; a=jar
git-svn-id: svn://10.0.0.236/trunk@62387 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 06:16:29 +00:00
ftang%netscape.com
7fcadd8663 fix 29333 make the initial construction passing "" for performance and legal nsString usage. r=rickg a=bobj
git-svn-id: svn://10.0.0.236/trunk@61849 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 06:59:55 +00:00
rickg%netscape.com
dbd76fc70f fixed bug28837 (r=troy; a=jar). Removed warnings (r=troy)
git-svn-id: svn://10.0.0.236/trunk@61599 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 08:20:03 +00:00
waterson%netscape.com
bc7f0ba1fc My bad; I reviewed this code and I suck. This is the right fix.
git-svn-id: svn://10.0.0.236/trunk@61595 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 06:42:36 +00:00
gagan%netscape.com
f341a3c51f Avoid calling Copy from operator= if we are just resetting the nsXPIDLString. So now it is safe to reset an nsXPIDLCString or nsXPIDLString by setting it to null. r=waterson,a=jevering
git-svn-id: svn://10.0.0.236/trunk@61590 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 05:34:28 +00:00
valeski%netscape.com
aa0414f77a 28782. a=jar. r=rickg. nsCAutoString couldn't handle a '=' of a PRUnichar*, now it can
git-svn-id: svn://10.0.0.236/trunk@61527 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:47:03 +00:00
rickg%netscape.com
afbb008cab changed 'embedded nulls' asserts to warnings in nsString
git-svn-id: svn://10.0.0.236/trunk@61360 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 09:17:49 +00:00
rickg%netscape.com
0528624083 partial fix for 23418; r=rhp; a=phil
git-svn-id: svn://10.0.0.236/trunk@61359 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 09:17:14 +00:00
rickg%netscape.com
98fb84c278 fixed PDT+ bug27954; r=buster;a=jar; precheckins ok
git-svn-id: svn://10.0.0.236/trunk@61291 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-18 07:47:47 +00:00
scc%netscape.com
2f6f431cab backing out my change
git-svn-id: svn://10.0.0.236/trunk@61132 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 15:43:55 +00:00
scc%netscape.com
5e85fa920e I think this is the right fix for the wensleydale bustage. Added |operator*()| to |nsXPIDL[C]String|. Fixed |const|-ness of existing operators and made inline. Built and tested on Mac; if this doesn't help, I'll back it right out. r=ckritzer (I swear I'm not making this up!)
git-svn-id: svn://10.0.0.236/trunk@61131 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 15:08:55 +00:00
rickg%netscape.com
a1de8e5158 major perf mods for bug 27524, and removed deprecated methods; r=harishd
git-svn-id: svn://10.0.0.236/trunk@60648 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-13 17:46:15 +00:00
rickg%netscape.com
85cc90a499 fixing tiny menu bug by backing out partial update to nsStr; r=none
git-svn-id: svn://10.0.0.236/trunk@60499 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 16:21:53 +00:00
rickg%netscape.com
c5a8533d38 added return type on new method
git-svn-id: svn://10.0.0.236/trunk@60490 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 15:19:17 +00:00
rickg%netscape.com
4209916b0d fixed25049; r=harishd
git-svn-id: svn://10.0.0.236/trunk@60477 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 12:11:03 +00:00
rickg%netscape.com
5fbcbb33c3 bug24015; r=rods a=chofmann
git-svn-id: svn://10.0.0.236/trunk@58118 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 21:06:05 +00:00
kin%netscape.com
c5faa05ac6 Fix for bug #21317: UMR: nsCAutoString::=(nsCAutoString const&)
Added nsCAutoString& operator=(nsCAutoString&).
r=rickg@netscape.com a=chofmann@netscape.com


git-svn-id: svn://10.0.0.236/trunk@55821 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 22:53:52 +00:00
rickg%netscape.com
9568c0a1e2 fixed bug in nsStr::Compare(); r=dveditz (who also found the bug)
git-svn-id: svn://10.0.0.236/trunk@55577 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 09:52:43 +00:00
rickg%netscape.com
6d81d0e4d1 fixed PDT+19121; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@55130 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:30:29 +00:00
rickg%netscape.com
e99aad53d3 fixed off-by-1 error in compare, and added ReplaceSubstring(). r=syd
git-svn-id: svn://10.0.0.236/trunk@55066 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 10:14:38 +00:00
sfraser%netscape.com
50952e0fee Include stdio.h with system paths, not user paths. No bug, r=mozbot.
git-svn-id: svn://10.0.0.236/trunk@54874 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 06:12:01 +00:00
fur%netscape.com
0d4ce41cf5 Disable the temporary assertion for embedded NUL characters in nsString::Append(),
so that clients of nsString can make use of the changes that rickg added which
allow embedded NULs.  r: rickg


git-svn-id: svn://10.0.0.236/trunk@54597 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 21:32:53 +00:00
warren%netscape.com
aeadc2d08d Changed ifdefs to this stuff is off for debug builds too.
git-svn-id: svn://10.0.0.236/trunk@54052 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:28:45 +00:00
warren%netscape.com
cde014ca66 Added isascii for mac
git-svn-id: svn://10.0.0.236/trunk@54040 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 05:46:04 +00:00
warren%netscape.com
460bc80b0e Fixed include for non-debug builds.
git-svn-id: svn://10.0.0.236/trunk@54039 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 05:27:35 +00:00