104 Commits

Author SHA1 Message Date
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
pinkerton%netscape.com
7ea7daadb2 add a |do_AppendFromElement(PRUnichar)| to help speed up some things in wallet initialization (bug 44514) r/a=scc.
git-svn-id: svn://10.0.0.236/trunk@76613 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 04:48:29 +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
ec28beac4b Final part of bug 40027. r,a=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74889 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 06:12:49 +00:00
alecf%netscape.com
f90fa8e9f2 fix purify errors - uninitialized memory on poorly formatted CID strings, and FMM on nsString::fputs
r=waterson, scc a=waterson


git-svn-id: svn://10.0.0.236/trunk@71822 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 23:34:53 +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
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
ftang%netscape.com
44b7555922 fix IsAscii function. The origional one report Latin1 characters as ASCII
git-svn-id: svn://10.0.0.236/trunk@68059 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 07:05:19 +00:00
mkaply%us.ibm.com
f32dd26a1b # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler


git-svn-id: svn://10.0.0.236/trunk@67931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 22:38:04 +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
mjudge%netscape.com
f74ce25354 scc string fixes
git-svn-id: svn://10.0.0.236/trunk@67148 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:55:37 +00:00
scc%netscape.com
c3ce8681aa Added an additional permitting and denying signatures for |NS_ConvertASCIItoUCS2|
git-svn-id: svn://10.0.0.236/trunk@66889 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:03:28 +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
f742fe7b5f needed to make the implementation of |EqualsIgnoreCase(nsIAtom*, ...)| available.
git-svn-id: svn://10.0.0.236/trunk@66203 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:50:07 +00:00
scc%netscape.com
d80a2c24a6 no, the |Equals(PRUnichar*, PRUnichar*, ...)| form is not what you think it is. It has to go. Make comparing with |nsIAtoms| remain avalailable even in |NEW_STRINGS_APIS|
git-svn-id: svn://10.0.0.236/trunk@66130 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:09:16 +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
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
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
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
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
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
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
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
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
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
jdunn%netscape.com
20bee13047 AIX requires a 'const' in order to handle the assignment of 2 nsStrings
(see wallet.cpp line 3093).

rickg approved


git-svn-id: svn://10.0.0.236/trunk@53315 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 03:58:15 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00