[email protected]
5fdbdabc9e
fix for bug 108597 - move mOwnsBuffer and mCharSize into smaller variables to reduce nsStr's overall size
...
r=jag, sr=waterson
2001-11-06 22:50:13 +00:00
[email protected]
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
[email protected]
d0430dd000
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
2001-10-16 05:31:36 +00:00
[email protected]
c8bce476d4
Remove dead code from obsolete string classes: ToNewString(), IsUnicode() and GetBuffer(). r=dbaron, rs=scc
2001-10-14 05:06:53 +00:00
[email protected]
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
[email protected]
58d409fba9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
2001-09-28 20:14:13 +00:00
[email protected]
d171d136db
Bug 100750: string iterator users should use correct typedefs. r=dbaron, rs=scc
2001-09-25 09:35:50 +00:00
[email protected]
bc21507846
Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc
2001-09-05 10:46:45 +00:00
[email protected]
baba14c5c8
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 :-)
2001-06-30 11:02:25 +00:00
[email protected]
90462163fa
bug #78658 : checking in Chris Seawoods trivial fix to prevent writing to the console in optimized builds, sr=scc (myself)
2001-05-07 23:36:59 +00:00
[email protected]
4e56e9386c
landing string branch; see bug #73786
2001-04-02 19:40:52 +00:00
[email protected]
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
[email protected]
bdcfd3d35d
bug #65219 : (work done by dbaron) r=jag, sr=scc. Remove leaking string recyclers.
2001-02-23 02:03:02 +00:00
[email protected]
1b5d3e8a34
bug #53067 : r=danm, sr=alecf. Eliminate copying versions of |BeginReading|, |EndReading|, |BeginWriting|, |EndWriting|, and fix callers
2001-02-06 23:18:20 +00:00
[email protected]
4c322a1807
bug #53071 : r=danm, sr=alecf. Eliminate redundant implemenations, resolve resulting ambiguities.
2001-02-06 23:07:24 +00:00
[email protected]
98ee073348
Add |.get()| to nsCString. Bug=58284,r=dbaron, a=scc.
2000-12-23 06:45:54 +00:00
[email protected]
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
[email protected]
0462ea4ce8
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
2000-10-28 22:17:53 +00:00
[email protected]
7730ce0cd3
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
2000-10-27 22:43:51 +00:00
[email protected]
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
[email protected]
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
[email protected]
94c22af4e3
Fix nsCString::AppendWithConversion() to work.
2000-08-20 20:41:31 +00:00
[email protected]
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
[email protected]
ae12879442
better comments re: the formal specification of |SetCapacity|; jag's |ToInteger| patch as per bug #46898 ; r|a=waterson
2000-08-09 08:26:23 +00:00
[email protected]
daaf1e747b
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
2000-07-29 03:11:59 +00:00
[email protected]
092f49fef3
Bug 40027, reads past buffer in nsString::ToCString, r,a=waterson
2000-07-26 00:05:55 +00:00
[email protected]
7a871f7c4d
Bug 42836. Handle null string in NS_ConvertUCS2toUTF8::Init().
2000-06-17 01:24:39 +00:00
[email protected]
7071a2cf4a
Fix bonehead error warren found: don't re-initialize utf8len; we'll need it to set the string's length!
2000-06-08 23:07:15 +00:00
[email protected]
6a06dfc026
Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
2000-06-03 09:46:12 +00:00
[email protected]
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
[email protected]
600a709b56
Fix boneheaded mistake: I left the return type of NS_ConvertUCS2toUTF8::Init().
2000-05-27 00:17:10 +00:00
[email protected]
3c3830298b
Bug 40461. Implement NS_ConvertUCS2toUTF8, r=scc,brendan
2000-05-26 22:24:34 +00:00
[email protected]
24ed6675fa
turning on the new strings API.
2000-05-16 07:18:04 +00:00
[email protected]
e3c5a5a182
changes to fix some errors constructing autostrings from null pointers that led to crashes
2000-05-15 03:10:19 +00:00
[email protected]
b70db824a2
Deal with type-unification errors on gcc-2.7.2.3 using NEW_STRING_APIS. r=scc
2000-05-13 00:19:21 +00:00
[email protected]
d55ba857d9
# 37239
...
r= [email protected]
OS/2 bring up continues - xpcom changes - #ifdefs for OS/2
2000-05-01 22:25:44 +00:00
[email protected]
eafaa0010c
fix for pink
2000-04-28 00:21:44 +00:00
[email protected]
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
[email protected]
b7f1414101
Moved the implementation of AssignWithConversion to the cpp file since Linux and Windows didn't like it inline in the h file. r=scc
2000-04-22 09:17:20 +00:00
[email protected]
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
[email protected]
d30643cb68
new ideas about string conversion
2000-04-15 00:05:17 +00:00
[email protected]
6a5ab5a71a
Explicit conversion required for NEW_STRING_APIS. r=scc
2000-04-04 06:03:20 +00:00
[email protected]
aa8a05e237
Had to add another signature of |AppendWithConversion|
2000-04-01 00:24:32 +00:00
[email protected]
49af411fd7
fix build bustage
2000-03-31 07:55:08 +00:00
[email protected]
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
[email protected]
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
[email protected]
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
[email protected]
662a8f855d
2x perf. improvement StripChar(); r=rods
2000-03-28 00:02:41 +00:00
[email protected]
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
[email protected]
d84fc4ef32
WIP for new string library, and defensive coding improvement in SetCapcity; r=buster
2000-03-24 07:21:56 +00:00