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
scc%mozilla.org
7abd9ae877
bug #78658 : checking in Chris Seawoods trivial fix to prevent writing to the console in optimized builds, sr=scc (myself)
...
git-svn-id: svn://10.0.0.236/trunk@94159 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 23:36:59 +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
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
fe019074bb
bug #53067 : r=danm, sr=alecf. Eliminate copying versions of |BeginReading|, |EndReading|, |BeginWriting|, |EndWriting|, and fix callers
...
git-svn-id: svn://10.0.0.236/trunk@86364 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:18:20 +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
warren%netscape.com
a8b9664a8c
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
...
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +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
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
waterson%netscape.com
0422415aad
Fix nsCString::AppendWithConversion() to work.
...
git-svn-id: svn://10.0.0.236/trunk@76760 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 20:41:31 +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
cdb44d875e
better comments re: the formal specification of |SetCapacity|; jag's |ToInteger| patch as per bug #46898 ; r|a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@75880 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:23 +00:00
scc%mozilla.org
6ef6f1fd36
fixes for bugs #46898 and #46899 : bad behavior in |nsCString::ToInteger| and a feature request for |ns[C]String::SetCapacity(0)| respectively. r={harishd, waterson}, a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@75144 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:11:59 +00:00
bratell%lysator.liu.se
30ea99bee8
Bug 40027, reads past buffer in nsString::ToCString, r,a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@74784 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 00:05:55 +00:00
waterson%netscape.com
e32e7767b4
Bug 42836. Handle null string in NS_ConvertUCS2toUTF8::Init().
...
git-svn-id: svn://10.0.0.236/trunk@72465 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-17 01:24:39 +00:00
waterson%netscape.com
9d914a6568
Fix bonehead error warren found: don't re-initialize utf8len; we'll need it to set the string's length!
...
git-svn-id: svn://10.0.0.236/trunk@71816 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 23:07:15 +00:00
warren%netscape.com
cc5d426fbe
Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
...
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
waterson%netscape.com
c802dd3916
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
...
git-svn-id: svn://10.0.0.236/trunk@71379 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 20:06:54 +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
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
85544a1fd1
Deal with type-unification errors on gcc-2.7.2.3 using NEW_STRING_APIS. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@69491 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 00:19:21 +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
tbogard%aol.net
5a9e9b10c1
Moved the implementation of AssignWithConversion to the cpp file since Linux and Windows didn't like it inline in the h file. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@66851 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 09:17:20 +00:00
scc%netscape.com
181154f76c
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|
...
git-svn-id: svn://10.0.0.236/trunk@66667 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:59:14 +00:00
scc%netscape.com
d14516727b
new ideas about string conversion
...
git-svn-id: svn://10.0.0.236/trunk@66042 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:05:17 +00:00
waterson%netscape.com
b859bba9c2
Explicit conversion required for NEW_STRING_APIS. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@65156 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 06:03:20 +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
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
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
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
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
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
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
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
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