darin%meer.net
03e1a1a947
fixes bug 235272 "RFind is broken [was: Thunderbird treats two-letter folder msf files as folders themselves]" r=jst sr=bienvenu
...
git-svn-id: svn://10.0.0.236/trunk@153517 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-04 07:54:22 +00:00
darin%meer.net
af98e4f306
landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
darin%meer.net
118c2a873e
fixes bug 235355 "hangs/crashes after choosing Server Settings in Mail&Newsgroup Account Settings, click o.k." r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@153194 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-25 03:24:29 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
jst%netscape.com
9a2e1fee87
Fixing bug 87677. Implementing {Copy,Append}[UCS2|UTF8]to[UTF8|UCS2](). Lame implementations for now, but at least people can start using these methods to avoid double copying all over (this doesn't eliminate the double copy, but it isolates it). r=jaggernaut@netscape.com, sr=alecf@flett.org.
...
git-svn-id: svn://10.0.0.236/trunk@143132 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 06:03:18 +00:00
dbaron%dbaron.org
bce712ae10
Backing out my checkin for bug 206682 due to performance regression (slowing down NS_ConvertUCS2toUTF8).
...
git-svn-id: svn://10.0.0.236/trunk@142777 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 00:32:54 +00:00
dbaron%dbaron.org
ec7a16fd6d
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. Fix null-termination bug in UTF8ToNewUnicode. b=206682 r=jag sr=alecf a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@142764 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 21:25:43 +00:00
dbaron%dbaron.org
1b8f7f8cfb
Add StringBeginsWith, StringEndsWith, and UTF8ToNewUnicode. Move UTF8 handling utilities to separate file. b=131293 r=jst sr=alecf,jag a=asa b=131293
...
git-svn-id: svn://10.0.0.236/trunk@142727 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 22:20:27 +00:00
jshin%mailaps.org
18198834d1
bug 191542 : Add UTF-8 equivalent of |IsASCII|, IsUTF8. r=smontagu, sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@140230 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 08:11:13 +00:00
seawood%netscape.com
cbd88e7b46
Change |Distance| definitions to match forward declaration in nsReadableUtils.h. Fixing Forte bustage.
...
Thanks to David Baron <dbaron@dbaron.org> for the patch.
Bug #198276 r=jag sr=bz
git-svn-id: svn://10.0.0.236/trunk@139821 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 04:52:54 +00:00
dougt%netscape.com
4f267db1dd
relanding dwitte's string work "Excessive inlining in string libs" with a minor change to fix a build bustage. bug 196506. r=dbaron, sr=alec
...
git-svn-id: svn://10.0.0.236/trunk@139723 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 23:48:44 +00:00
heikki%netscape.com
ed7fdc29ae
Backing out bug 196506 and build fix attempt.
...
git-svn-id: svn://10.0.0.236/trunk@139637 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 01:58:15 +00:00
timeless%mozdev.org
e55c59e131
Bug 196506 Excessive inlining in string libs: Substring()
...
patch by mvl@exedo.nl r=dougt sr=alecf
git-svn-id: svn://10.0.0.236/trunk@139623 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 23:16:16 +00:00
glazman%netscape.com
db21ac54ed
backing out dwitte's changes from last bbaetz check in (at his request)
...
git-svn-id: svn://10.0.0.236/trunk@139194 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 10:28:40 +00:00
bbaetz%acm.org
7282cc41a0
Bug 196506 - Excessive inlining in string libs: Substring()
...
patch by dwitte@stanford.edu , r=timeless, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139190 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 08:10:20 +00:00
dougt%netscape.com
348eff25b2
Fixing bustage in nsXPIDLString. r=jag, sr=dbaron, b=189591, a=Donald Rumsfeld
...
git-svn-id: svn://10.0.0.236/trunk@136865 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 03:35:30 +00:00
dougt%netscape.com
ff549712f7
Fixing crash in NS_MsgStripRE() due to multiply-linked strings. b=189591, sr=dbaron, r=me
...
git-svn-id: svn://10.0.0.236/trunk@136768 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 00:21:48 +00:00
dougt%netscape.com
3ce22699b8
landing 172512. nsEmbedString for component developers and embeders. r=alec, sr=jag/darin, a=asa@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@132196 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 23:41:47 +00:00
seawood%netscape.com
f9eb727003
Define WIN32_LEAN_AND_MEAN globally for win32 builds.
...
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa
git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +00:00
bryner%netscape.com
79c62ac5b7
Get rid of gcc3's numerous warnings about using <new.h> instead of <new> by creating a new #define, NEW_H, which should be used instead of <new.h> or <new>. This is so we can continue to support a couple of braindead compilers that don't accept <new>. Bug 155852, r=cls.
...
git-svn-id: svn://10.0.0.236/trunk@127585 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 03:50:27 +00:00
seawood%netscape.com
823af36499
Removing unused defines:
...
_IMPL_NS_BASE (bug #162142 )
_IMPL_NS_GFXONXP (bug #162145 )
_IMPL_NS_UI (bug #162183 )
B_ONE_M (bug #162196 )
XP_NEW_SELECTION (bug #162230 )
r=cls
Thanks to Stephen Walker <walk84@yahoo.com> for the patches.
git-svn-id: svn://10.0.0.236/trunk@127074 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 13:35:18 +00:00
seawood%netscape.com
0b3ff474f3
Removing old nmake build makefiles. Bug #158528 r=pavlov
...
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
bryner%netscape.com
44791394dd
Remove obsolete NS_BASE and _IMPL_NS_BASE, and unused/obsolete source files nsStdFileStream.* (bug 160052). r=cls, sr=alecf, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@126082 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 21:30:05 +00:00
dbaron%fas.harvard.edu
c53c56f3f7
Make GetImplementationFlags more useful/extensible by changing the default implementation to return zero rather than returning the flags from the shared buffer handle, and add a constant for one expected future use. b=109571 r=jag sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@121733 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 02:53:34 +00:00
jaggernaut%netscape.com
644f73736f
Bug 139649: Fix IsDependentOn, I forgot to make the ptr and ptr, length based Assign, Append and Insert go through the dependency checks. r=alecf, sr=scc.
...
git-svn-id: svn://10.0.0.236/trunk@121604 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 04:35:00 +00:00
dougt%netscape.com
d6cc711878
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
...
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
jaggernaut%netscape.com
d7c8a2d045
Bug 139649: Fix string code to use IsDependentOn instead of depending on nsAPromiseString type. r=scc, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@121513 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 03:28:44 +00:00
kaie%netscape.com
565eab0df8
b=141317 CopyToLowerCase produces strings with random content
...
r=jag sr=alecf
git-svn-id: svn://10.0.0.236/trunk@120432 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 14:02:11 +00:00
cbiesinger%web.de
490b0917f3
bug 140990 patch by pj@ludd.luth.se r=timeless sr=jag
...
Mismatched free() / delete / delete [] at nsAString::AssignFromPromise(nsAString const &)
git-svn-id: svn://10.0.0.236/trunk@120428 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 12:41:58 +00:00