468 Commits

Author SHA1 Message Date
disttsc%bart.nl
f69c0e7cd8 bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +00:00
scc%mozilla.org
414ed7319d fix HPUX bustage, and additionally added some comments
git-svn-id: svn://10.0.0.236/trunk@90376 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:06:27 +00:00
disttsc%bart.nl
8874b002ef Fix Win32 bustage by adding NS_COM to declaration of StringAllocator_[char|wchar_t](), r/sr=scc
git-svn-id: svn://10.0.0.236/trunk@90353 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 02:26:33 +00:00
scc%mozilla.org
3b6f8d16d6 bug #73297, r=shaver, sr=darin. Give string buffers an allocator hook to tie into js et al
git-svn-id: svn://10.0.0.236/trunk@90352 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 01:14:26 +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
disttsc%bart.nl
abd8de21e5 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


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
scc%mozilla.org
f5aa6fad51 fixing documentation
git-svn-id: svn://10.0.0.236/trunk@88920 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:47:24 +00:00
syd%netscape.com
67117500d7 Deprecate nsStr->GetBuffer(). r=jag, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88497 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 22:07:45 +00:00
disttsc%bart.nl
d30c2be76b Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 09:26:57 +00:00
scc%mozilla.org
941d2902e4 bug #53209: removing "nsSharedString.h"
git-svn-id: svn://10.0.0.236/trunk@87918 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 21:08:21 +00:00
scc%mozilla.org
4c2db16544 bug #53209: remove |nsSharedString|. It was already out of the build last night, now it's time to CVS remove it
git-svn-id: svn://10.0.0.236/trunk@87915 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 19:47:45 +00:00
scc%mozilla.org
0be7c78830 attempting to fix build bustage on Solaris
git-svn-id: svn://10.0.0.236/trunk@87882 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 04:49:34 +00:00
scc%mozilla.org
c9f67a34b5 bug #53209: remove unused file from the build
git-svn-id: svn://10.0.0.236/trunk@87876 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 03:17:53 +00:00
scc%mozilla.org
745130da47 bug #67876: r=jst, sr=alecf. Added comment documenting `NULL' string infrastructure.
git-svn-id: svn://10.0.0.236/trunk@87874 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 03:11:23 +00:00
scc%mozilla.org
13d898f873 bug #69941: r=jag, sr=alecf. Fixed signature of |FindCharInReadable|.
git-svn-id: svn://10.0.0.236/trunk@87873 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 03:09:04 +00:00
scc%mozilla.org
ce4e310532 bug #'s 69940 and 69289: r=dbaron, sr=waterson. Fix parameters to, templatization of |Substring()|.
git-svn-id: svn://10.0.0.236/trunk@87870 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 02:55:46 +00:00
scc%mozilla.org
cdf2240955 bug #67577: r=jag, sr=(ben, hyatt). short circuit full compare with length test
git-svn-id: svn://10.0.0.236/trunk@87781 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 06:28:13 +00:00
scc%mozilla.org
f3c858afc8 bug #69907: rs=brendan. Fix file-level comments in (to be) obsolete string files so they are clearer in LXR directory views.
git-svn-id: svn://10.0.0.236/trunk@87763 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 02:43:42 +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
disttsc%bart.nl
edc70961f6 Mass REQUIRES update to synch up with string lib and xul changes in an attempt to fix senna bustage. r=jst, sr=cls
git-svn-id: svn://10.0.0.236/trunk@87655 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-22 09:35:51 +00:00
disttsc%bart.nl
aed241cdb6 Put strings in MODULE=string, sr=scc
git-svn-id: svn://10.0.0.236/trunk@87575 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 14:04:08 +00:00
disttsc%bart.nl
160208ac22 Fix senna REQUIRES bustage
git-svn-id: svn://10.0.0.236/trunk@87574 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 13:38:30 +00:00
scc%mozilla.org
16239c89d8 fix build bustage on senna (ports) by adding |REQUIRES|. r=jag
git-svn-id: svn://10.0.0.236/trunk@87573 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 12:35:31 +00:00
scc%mozilla.org
30691a17ec adding this file temporarily, till leaf can copy over the CVS file for the original (currently in mozilla/xpcom/ds/bufferRoutines.h). Need this file here to turn this library in the build
git-svn-id: svn://10.0.0.236/trunk@87555 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 05:15:50 +00:00
scc%mozilla.org
db3da69269 bug #59429: adding directories, readme's, a mac project, and other things that will be filled in as I move the string code out of xpcom and into its own library. This is not yet part of the build, but jst reviewed it for me anyway. I'll get appropriate review and super-review before adding this directory to the module and to the build.
git-svn-id: svn://10.0.0.236/trunk@87352 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 12:06:34 +00:00
scc%mozilla.org
ac9727a0c3 we're still a part of XPCOM physically (if not logically) and to get exports right need _IMPL_NS_COM
git-svn-id: svn://10.0.0.236/trunk@87347 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 10:19:21 +00:00
scc%mozilla.org
b2890c0c6f MANIFEST files require Mac line endings
git-svn-id: svn://10.0.0.236/trunk@87346 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 10:15:47 +00:00
scc%mozilla.org
aeabe4c25e missed nsFragmentedString.h and .cpp in the initial check-in ... adding them
git-svn-id: svn://10.0.0.236/trunk@87345 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 08:55:34 +00:00
scc%mozilla.org
5d8907dc7b bug #59429: adding directories, readme's, a mac project, and other things that will be filled in as I move the string code out of xpcom and into its own library. This is not yet part of the build, but jst reviewed it for me anyway. I'll get appropriate review and super-review before adding this directory to the module and to the build.
git-svn-id: svn://10.0.0.236/trunk@87344 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 08:54:09 +00:00
scc%mozilla.org
39bb9d2a95 bug #59429: adding directories, readme's, a mac project, and other things that will be filled in as I move the string code out of xpcom and into its own library. This is not yet part of the build, but jst reviewed it for me anyway. I'll get appropriate review and super-review before adding this directory to the module and to the build.
git-svn-id: svn://10.0.0.236/trunk@87338 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 07:42:20 +00:00
scc%mozilla.org
c1d8f1bc86 bug #66562: r=harish, sr=brendan, a=blizzard. Make |document.write| work.
git-svn-id: svn://10.0.0.236/trunk@86935 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 21:26:58 +00:00
scc%mozilla.org
1ee3d0b751 fix bustage caused by access violations not caught in CodeWarrior <sorry>
git-svn-id: svn://10.0.0.236/trunk@86722 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 01:05:43 +00:00
scc%mozilla.org
9ffaf9da8b bug #66562: r=harishd, sr=brendan, a=brendan. Allow insertion into sliding string buffers
git-svn-id: svn://10.0.0.236/trunk@86715 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:02:28 +00:00
dbaron%fas.harvard.edu
b7928862f7 Fix build bustage by removing extra right paren.
git-svn-id: svn://10.0.0.236/trunk@86446 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 03:04:46 +00:00
scc%mozilla.org
28c68103ce bug #57087: r=dmose, sr=waterson. Allow for multi-line literals.
git-svn-id: svn://10.0.0.236/trunk@86439 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:32:49 +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
scc%mozilla.org
60326ad647 bug #66278: r=danm, sr=alecf. Fix signed vs. unsigned warngins in |nsFragmentedString::SetLength|
git-svn-id: svn://10.0.0.236/trunk@86350 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:00:39 +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
jst%netscape.com
9288eb059b Checking in scc's fix for blocker bug 62818, nsSlidingSubstring::GetReadableFragment(..., kFragmentAt, ...) wasn't implemented and that caused a crash when serializing HTML to plain text. r=me.
git-svn-id: svn://10.0.0.236/trunk@83653 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 22:16:10 +00:00
mkaply%us.ibm.com
6e06af2d75 OS/2 TB breakage
r=jag, a=scc
Don't use initializer on template


git-svn-id: svn://10.0.0.236/trunk@83593 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-13 04:07:21 +00:00
vidur%netscape.com
ab6a2520bd Fix for Solaris compiler warning from scc. r=vidur
git-svn-id: svn://10.0.0.236/trunk@83559 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 23:02:01 +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
jst%netscape.com
2afdb2a411 Fixing compiler warnings, not part of the build yet. r=vidur
git-svn-id: svn://10.0.0.236/trunk@83550 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:52:08 +00:00
vidur%netscape.com
00f259c6ae New file for buffer management for shared strings, written by scc. Not yet added to the build. r=vidur
git-svn-id: svn://10.0.0.236/trunk@83542 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 20:13:33 +00:00
disttsc%bart.nl
868c5c4476 Fix iteration type in ConvertTo(Upper|Lower)Case in nsReadableUtils.cpp, bug=60047, r=dmose, a=scc
git-svn-id: svn://10.0.0.236/trunk@82630 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-15 01:58:23 +00:00
dbaron%fas.harvard.edu
9cc24c9854 Remove extraneous line I introduced in previous checkin. r=waterson
git-svn-id: svn://10.0.0.236/trunk@82088 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 05:39:34 +00:00
dbaron%fas.harvard.edu
569c30eb6d Fix gcc 2.7.x bustage by defining |operator+()| for combinations involving |nsPromiseSubstring|, within |#ifdef NEED_CPP_DERIVED_TEMPLATE_OPERATORS|. (Based on scc's proposal earlier.) r=waterson
git-svn-id: svn://10.0.0.236/trunk@82087 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 04:33:32 +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