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
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
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
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
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
rickg%netscape.com
1eaa6d5152
added DebugDump() to nsString classes for terminal output. Also slightly improved documentation. r=buster
...
git-svn-id: svn://10.0.0.236/trunk@53985 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 08:05:30 +00:00
rickg%netscape.com
a321381b94
reenabled safer version of assertion
...
git-svn-id: svn://10.0.0.236/trunk@53516 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 17:10:06 +00:00
rickg%netscape.com
a22352015d
disable overambitious assert for now; r=rods; a=leaf
...
git-svn-id: svn://10.0.0.236/trunk@53515 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 16:38:29 +00:00
rickg%netscape.com
00192bb235
change NS_ASSERTION to NS_WARN_IF_FALSE; r=none
...
git-svn-id: svn://10.0.0.236/trunk@53459 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 10:05:40 +00:00
rickg%netscape.com
6e4e20009b
bug18337 and fixes for embedded nulls; r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@53450 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 06:22:52 +00:00