849 Commits

Author SHA1 Message Date
darin%meer.net
9770631282 fixes bug 234916 "Remove global/static NS_NAMED_LITERAL_C?STRING usage [was: Firefox crashes on startup on Mac OS X]" r=jst sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153191 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-25 02:08:34 +00:00
darin%meer.net
db842ded77 adding brackets to correct last checkin (r=gisburn)
git-svn-id: svn://10.0.0.236/trunk@153106 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 19:57:18 +00:00
darin%meer.net
eda37ab870 Checking in bustage fix for SUNPRO_CC (Sun Workshop/Forte), bug=235273
Thanks to timeless and gisburn for their help.


git-svn-id: svn://10.0.0.236/trunk@153104 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 19:24:41 +00:00
timeless%mozdev.org
29403914fd Bug 235207 Build failure in mozilla/xpcom/string/src/nsStringObsolete.cpp
patch by roland.mainz@nrubsig.org sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@153089 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 01:43:44 +00:00
jst%mozilla.jstenback.com
f38dcaa4ad Duh, silly me. Fixing bogus attempt at casting...
git-svn-id: svn://10.0.0.236/trunk@153056 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-21 01:02:26 +00:00
darin%meer.net
643ea6b51f removing bogus const type qualifier to fix IRIX compiler warning (thanks to dbaron for noticing this)
git-svn-id: svn://10.0.0.236/trunk@153051 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 23:28:49 +00:00
jst%mozilla.jstenback.com
a2eb2c1513 Fixing bug 235041. Adding nsAdoptingString, a string class that can be returned by value from functions returning malloc'ed strings, w/o the overhead of extra string copying/mallocs. r=dbaron@dbaron.org, sr=darin@meer.net
git-svn-id: svn://10.0.0.236/trunk@153050 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 23:23:35 +00:00
darin%meer.net
a01e1c2f7f landing patch for bug 234864 "string branch landing resulted in large spike in heap allocations (brad:A metric)" r+sr=dbaron
this patch also introduces nsTFixedString and removes CBufDescriptor.


git-svn-id: svn://10.0.0.236/trunk@152994 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 01:53:23 +00:00
darin%meer.net
0310ccfb9e correcting bustage fix per dbaron: "reenable that for non-gcc compilers"
git-svn-id: svn://10.0.0.236/trunk@152914 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 06:29:08 +00:00
darin%meer.net
df67ab40c6 bustage fix for gcc-2.95.3 (speedracer) and egcs-2.91.66 (btek+monkeypox) r=bz
git-svn-id: svn://10.0.0.236/trunk@152912 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 05:54:04 +00:00
darin%meer.net
4577c4b633 bustage fix for GCC 3.4
git-svn-id: svn://10.0.0.236/trunk@152910 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 04:18:18 +00:00
darin%meer.net
a629a759d4 fixing OS/2 bustage from string branch landing,
nsString.h needs to continue to define IGNORE_CASE for backwards compatibility


git-svn-id: svn://10.0.0.236/trunk@152909 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 04:15:22 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
bryner%brianryner.com
16b26bbf1b Change a few more destructors in XPCOM to be non-virtual, and comment destructors that need to be virtual. Bug 229875, r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152655 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 06:19:03 +00:00
dbaron%dbaron.org
feb73d7d3e Speed up constructors of nsAutoString and nsCAutoString by calling nsStrPrivate::Initialize only once. b=188828 r=darin sr=alecf
git-svn-id: svn://10.0.0.236/trunk@152009 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 04:00:47 +00:00
dbaron%dbaron.org
4f0232d21c Comment this out until we figure out what to do about nsXPIDLString's shared empty buffer handle. b=112547
git-svn-id: svn://10.0.0.236/trunk@151679 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 04:30:03 +00:00
jst%mozilla.jstenback.com
db2dd10b45 Fixing bug 183373. Provide XPCOM methods for accessing a shared empty string object. r=bryner@brianryner.com, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@151658 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 21:36:40 +00:00
dbaron%dbaron.org
c1efd3dcd5 Fix Windows debug bustage. b=231737, 112547
git-svn-id: svn://10.0.0.236/trunk@151647 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 18:29:38 +00:00
peterv%propagandism.org
056132a85b Rename verify to verifyThread to fix OS X debug build bustage.
git-svn-id: svn://10.0.0.236/trunk@151637 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 12:25:50 +00:00
dbaron%dbaron.org
4bafd30ad7 Assert when shared buffers are used on multiple threads. b=112547 r=jst sr=darin
git-svn-id: svn://10.0.0.236/trunk@151620 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 04:39:58 +00:00
jst%mozilla.jstenback.com
96f9ed73f3 Fixing bug 230849. Making LossyCopyUTF16toASCII() and CopyASCIItoUTF8() truncate the destination even when the source is null. r=jshin@mailaps.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151318 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 19:26:17 +00:00
peter%propagandism.org
2edb0bc996 Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@150665 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 09:24:11 +00:00
dwitte%stanford.edu
ebf47ffa44 fix regression due to silly casting fu.
b=225887, r=bryner, sr=alecf, a=dbaron.


git-svn-id: svn://10.0.0.236/trunk@149591 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 21:33:50 +00:00
dwitte%stanford.edu
7357ff08a9 removing unnecessary branch.
b=225887, r=jag, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@149492 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 12:31:25 +00:00
peter%propagandism.org
ae5e6617c4 Restoring fix for bug 224231, didn't affect btek's Tp.
git-svn-id: svn://10.0.0.236/trunk@148722 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 12:58:29 +00:00
peter%propagandism.org
318f3860a7 Back out a part of the fix for bug 224231 to see if it affects btek's Tp.
git-svn-id: svn://10.0.0.236/trunk@148721 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 11:59:54 +00:00
peter%propagandism.org
e303e4bc71 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@148683 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 09:35:48 +00:00
timeless%mozdev.org
c3b35c37e9 Bug 221826 only create stack objects in Cut if they'll be used
r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147901 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-12 23:28:31 +00:00
peter%propagandism.org
b8543e5f16 trying to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@147801 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 17:02:05 +00:00
peter%propagandism.org
edf9f70a86 Move voidable string into xpcom. Part of fix for bug 221387 (XPathExpression.createExpression doesn't throw NAMESPACE_ERR). r=bz, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@147799 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 16:15:29 +00:00
cls%seawood.org
6352367a62 Set MODULE in makefiles at the top of a heirarchy so that module-deps lists are more precise and builds will have the proper order if some subdirs contain other modules.
git-svn-id: svn://10.0.0.236/trunk@146076 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-16 00:42:35 +00:00
cls%seawood.org
d433694adb Move mozilla/string into mozilla/xpcom/.
Bug #214700 r=dougt sr=leaf a=mkaply


git-svn-id: svn://10.0.0.236/trunk@146026 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-14 23:50:21 +00:00
dougt%meer.net
6dfc67684a Fix for 205023. Adds nsTraceRefcnt stubs that access a global to allow tracing refcnt to work with the GRE/xpcom glue builds. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@145587 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 05:29:10 +00:00
jaggernaut%netscape.com
e6ed34a3e1 Bug 151916: substring helpers for start and end (StringHead, StringTail, Substring(string, start)). r=dbaron, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144818 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:42:24 +00:00
jaggernaut%netscape.com
95a2235bee Bug 73353: clean up MODULE/REQUIRES story. r=cls, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@144804 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-13 22:29:00 +00:00
dwitte%stanford.edu
c443d50724 Bug 113733: nsXPIDLCString doesn't have an assignment operator.
adds |operator=( const self_type& )| to nsSharable{C}String and nsXPIDL{C}String, to prevent the compiler from synthesizing its own (which won't do the right thing).

This should fix a bunch of XPIDLString-related cfront compile warnings.

original patch by jag, updated by me; r=dbaron, sr=jag.


git-svn-id: svn://10.0.0.236/trunk@144771 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-12 07:14:37 +00:00
dbaron%dbaron.org
179546334e Make ns[C]String::AppendFloat locale-independent. b=209569 r=jag sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144638 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 06:53:44 +00:00
darin%netscape.com
9c25ef7a21 fixes bug 163988 'Crashes at www.macgamer.com (HREF="&#)' patch=waltershen@netscape.com r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@144399 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 21:20:14 +00:00
jshin%mailaps.org
5caccfff36 bug 183156 (a part of) : rename CopyUTF16toASCII as LossyCopyUTF16toASCII (r,sr=jag)
git-svn-id: svn://10.0.0.236/trunk@144210 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 07:44:13 +00:00
dbaron%dbaron.org
643cf59560 Keep the pointer version of NS_ConvertUTF8toUTF16 null-safe. b=210279 r+sr=jag
git-svn-id: svn://10.0.0.236/trunk@144088 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:42:05 +00:00
jshin%mailaps.org
bf657d4d62 bug 183156 : replace UCS2 in function/method names with UTF16 and update the
document accordingly. r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@144046 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 04:30:57 +00:00
jaggernaut%netscape.com
57d5e83c5f Bug 210160: Add nsStringComparator parameter to String(Begins)|(Ends)With. r=bzbarsky, sr=dbaron
Bug 210162: Fix up comments, argument names of atom getters in nsIAtom.idl. r=bzbarsky, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144015 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 02:59:51 +00:00
jst%netscape.com
5bea629223 Fixing part of bug 209699 (and more of bug 87677). Implement char* and PRUnichar* versions of Copy/AppendUTF*toUTF*(). r=alecf@flett.org, r=dbaron@dbaron.org, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@143925 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 05:17:55 +00:00
jst%netscape.com
24dfdf0a3e Fixing typo in comment.
git-svn-id: svn://10.0.0.236/trunk@143845 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 06:52:16 +00:00
jst%netscape.com
223d557551 Fixing typo in comment.
git-svn-id: svn://10.0.0.236/trunk@143798 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:30:35 +00:00
jst%netscape.com
4eaef03b6e Fixing bug 87677. Making AppendUTF[8|16]toUTF[16|8]() not copy the string twice when not needed. r=jaggernaut@netscape.com, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@143797 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:30:17 +00:00
dbaron%dbaron.org
5a70863d8e Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Make various tweaks to improve performance of conversion between UCS2 and UTF-8 (both ways). b=206682 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@143570 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 04:27:13 +00:00
seawood%netscape.com
06e1507b0c Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143527 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 21:18:27 +00:00
seawood%netscape.com
9e4caeaa92 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143522 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 20:12:33 +00:00
jshin%mailaps.org
bd9829ca93 bug 183156 : the first step : replace UCS2 in function names with UTF16
(r=peterv, sr=alecf)


git-svn-id: svn://10.0.0.236/trunk@143328 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-05 11:44:06 +00:00