Граф коммитов

864 Коммитов

Автор SHA1 Сообщение Дата
bsmedberg%covad.net 7e03c0b224 Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin 2005-04-06 03:35:24 +00:00
bsmedberg%covad.net beadf6cd74 Bug 288626 - Begin switch from MOZILLA_STRICT_API to MOZILLA_INTERNAL_API rs=darin for the Makefile var additions. Should not affect the build yet, until we flip a few switches at the end. 2005-04-01 18:22:57 +00:00
timeless%mozdev.org e05ed3d0ac Bug 284034 nsReadableUtils ToNew* methods crash on OOM
patch by ajschult@verizon.net r=darin sr=darin
2005-03-01 05:14:22 +00:00
dbaron%dbaron.org 34a6bff9a1 Calculator should not underestimate converter. b=241440 Patch from <wind.li@sun.com>. r=dbaron sr=dveditz a=dveditz 2005-02-17 20:17:13 +00:00
darin%meer.net c4287b12c7 fixes bug 277549 "Out of memory in MutatePrep is not well handled" r=dveditz sr=dbaron a=asa 2005-02-16 07:20:20 +00:00
darin%meer.net 54cde78765 fixes bug 281056 "make --disable-v1-string-abi build again" r+sr=bryner 2005-02-07 04:00:02 +00:00
darin%meer.net dd78f625f5 landing xpcom patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=dbaron sr=jst 2005-02-02 22:18:37 +00:00
bryner%brianryner.com 742738a46c Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin. 2005-01-24 16:44:41 +00:00
cbiesinger%web.de 13bd35b35a Bug 274086 fix "unused variable" warning in opt builds, which prevent building
with -Werror
patch by Crispin Flowerday <crispin@flowerday.cx> r=bsmedberg sr=darin
2004-12-15 17:25:42 +00:00
darin%meer.net 9aee2fe67a fixes bug 270110 "Add versions of nsDependentString and friends to the Gecko SDK" r=bsmedberg 2004-11-30 00:57:24 +00:00
darin%meer.net e149e8077b fixes bug 271630 "XPCOM glue broken on Linux/PPC [monkeypox orange]" r=bsmedberg 2004-11-30 00:28:48 +00:00
bryner%brianryner.com 2a500b8d07 Reduce string copying and allocation in the parser by only copying the scanner buffer when we need to mutate the string. Allow a nsDependentString / nsDependentSubstring to be created without being bound to anything. Move StripChar() onto nsSubstring from nsString. Bug 269853, r=jst, sr=darin. 2004-11-25 07:03:20 +00:00
timeless%mozdev.org 6abcae9c71 Bug 270768 spelling
rs=brendan
2004-11-24 00:54:11 +00:00
darin%meer.net 90246214db fixes bug 264274 "support dependent strings in frozen string API" r=biesi sr=bsmedberg 2004-11-16 04:44:57 +00:00
bsmedberg%covad.net 82022506fd Bug 267767 - Make XPCOM memory management functions frozen exports. r=darin sr=shaver 2004-11-12 19:26:37 +00:00
darin%meer.net 52ac61d678 landing patch for bug 262218 "libxpcom.so should only export frozen symbols" r=bsmedberg sr=bryner 2004-10-25 19:34:45 +00:00
bzbarsky%mit.edu e4430de4cc Fix nsPageFrame to not set string lengths to negative numbers, and fix string
code to not go into an infinite loop if someone tries it.  Bug 263365,
r+sr=darin
2004-10-19 21:46:45 +00:00
darin%meer.net e5a653f18b output number of leaked string buffers 2004-09-07 19:57:20 +00:00
bryner%brianryner.com 60809809d5 HPUX aCC A.01.21 can't deal with the literal string template, so disable it, at least for this compiler version. Bug 239465, r=dbaron. 2004-09-05 22:55:34 +00:00
cbiesinger%web.de c3d23a6ea2 Bug 258014 make @param names match function signature
r+sr=darin
2004-09-05 13:25:51 +00:00
db48x%yahoo.com 71f9388bc5 bug 244956: Small correction to comments in nsStringAPI.h
patch by Jonathan Watt <jonathan.watt@strath.ac.uk>, r/sr=shaver
2004-07-30 16:00:59 +00:00
cbiesinger%web.de 07e6f643be adding missing NS_COM to fix win bustage 2004-07-25 13:58:47 +00:00
cbiesinger%web.de 95f74ea211 remove InsertWithConversion
Bug 113234 r=darin sr=dbaron
2004-07-25 12:25:43 +00:00
cbiesinger%web.de 8148905a30 Bug 113243 Get rid of (Compare|Equals)WithConversion
r=darin sr=dbaron
2004-07-25 12:23:28 +00:00
cbiesinger%web.de edd98105f6 Bug 252541 remove nsString::IsSpace and nsString::IsASCII
r=darin sr=dbaron
2004-07-25 12:12:39 +00:00
darin%meer.net 71af9d4396 fixes bug 248695 "string code misuses realloc" r=timeless sr=dbaron 2004-07-19 20:01:42 +00:00
bryner%brianryner.com 23089547be Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron. 2004-07-14 22:14:34 +00:00
roc+%cs.cmu.edu 442a384196 Bug 226439. Make nsCharTraits<PRUnichar>::ASCIIToLower handle Unicode characters whose lowercase form is ASCII. r+sr=darin 2004-06-16 23:29:49 +00:00
cbiesinger%web.de c36edfc815 fixing bustage... 2004-06-11 16:39:38 +00:00
cbiesinger%web.de a4396ff7b4 bug 245673 named literal strings should be const
r+sr=darin
2004-06-11 15:05:29 +00:00
jst%mozilla.jstenback.com 7d0180067b Fixing bug 245930. Don't crash if attempting to replace data past the end of a string. r=dbaron@dbaron.org, sr=darin@meer.net 2004-06-08 22:30:11 +00:00
roc+%cs.cmu.edu 3e1ec49312 fixing bustage AGAIN. 2004-06-06 04:42:45 +00:00
roc+%cs.cmu.edu 250f041a52 fixing bustage. 2004-06-06 03:38:35 +00:00
roc+%cs.cmu.edu 07612ec0fd Bug 226439. Add ASCII and Literal versions of Append, EqualsIgnoreCase, and Assign. r+sr=darin 2004-06-06 02:17:00 +00:00
timeless%mozdev.org 6db62762d9 Bug 242382 Trunk build failure in nsObjectFrame.cpp
patch by roland.mainz@nrubsig.org r=roc sr=roc
2004-05-18 04:10:43 +00:00
jst%mozilla.jstenback.com ccbb6dceef Fixing bug 243484. Adding 'count' out params to ToNewUTF8String() and UTF8ToNewUnicode() that tells the caller how many units (8 or 16 bit) that was returned. r=dbaron@dbaron.org, sr=darin@meer.net 2004-05-13 17:45:03 +00:00
bryner%brianryner.com f129c38c01 Fix XPCOM_BREAK_ON_LOAD by restoring pre-string-branch Find() behavior when starting index is negative. Bug 243429, r+sr=darin 2004-05-12 19:26:30 +00:00
smontagu%smontagu.org bd087f358d Add code comments from bug 242315 comment 17. r+sr=bzbarsky. 2004-05-07 22:21:26 +00:00
roc+%cs.cmu.edu 0cd525a091 Bug 226439. Add EqualsASCII(char*) string method that compares with a null-terminated char* in a single pass. Have the non-templated EqualsLiteral use it. r+sr=dbaron 2004-04-30 12:05:14 +00:00
roc+%cs.cmu.edu 81bc2e5a85 Fix btek bustage ... I hope. 2004-04-28 19:23:58 +00:00
roc+%cs.cmu.edu aaea444448 Bug 226439. Some small conversion to use EqualsLiteral to see effect on code size, r+sr=dbaron. Additionally, some comments to clarify that EqualsLiteral is only for actual literals, and to properly credit Corey Kosak who showed me the template trick. Also re-enabled the template for MSVC++ 7.1, which can apparently handle it. 2004-04-28 17:48:02 +00:00
roc+%cs.cmu.edu 97abad3f9f Fixing bustage ... MSVC can't handle the array size template. 2004-04-24 22:46:24 +00:00
roc+%cs.cmu.edu a1950ea73d Bug 226439. Use templates for ultra-efficient EqualsLiteral string method. r=darin,sr=dbaron. THIS MAY CAUSE BUSTAGE. DO NOT BE ALARMED. 2004-04-24 22:02:22 +00:00
darin%meer.net edc1e0d23c landing patch for bug 239716 "inout wstring methods are difficult to implement with nsEmbedString" patch by marco@gnome.org r=darin sr=dbaron 2004-04-20 00:21:34 +00:00
cls%seawood.org 5249125cc3 Explicitly declare inlined function as inline & remove COM declaration.
Fixing native mingw build bustage.
Bug #240106 r=darin
2004-04-19 21:37:39 +00:00
bzbarsky%mit.edu 538c66e542 Fix RFindCharInSet to work again. Bug 240837, r+sr=darin 2004-04-19 20:18:05 +00:00
gerv%gerv.net 31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
cbiesinger%web.de c88fe8ffac bug 235504, remove const char* version of nsCString::EqualsWithConversion,
second try
r=darin sr=dbaron
2004-04-15 20:44:53 +00:00
cbiesinger%web.de a3e0432ac4 ...and this one, too 2004-04-14 21:20:06 +00:00
cbiesinger%web.de ce0000dee3 backing out this part of my last checkin due to bustage 2004-04-14 21:19:29 +00:00
cbiesinger%web.de 6ad20397bf Bug 235504 Remove nsCString::EqualsWithConversion(const char*)
r=darin sr=dbaron
2004-04-14 20:09:30 +00:00
cbiesinger%web.de f36e49d422 fix bustage 2004-04-13 19:34:40 +00:00
cbiesinger%web.de a8c9d6354b bug 240106, add 64-bit version of nsC?String::AppendInt
r=darin sr=dbaron
2004-04-13 19:13:49 +00:00
darin%meer.net 50c5f2be4e fixes bug 239123 "exported functions in nsStringAPI.h should be frozen for 1.7 final" r=bsmedberg sr=dbaron a=asa 2004-04-11 20:52:32 +00:00
darin%meer.net 8b6ac86a2c fixes bug 239441 "AIX: Undefined symbols when linking mozilla-bin after Bug 239303" r=bsmedberg,dougt sr=dbaron a=brendan 2004-04-03 21:54:49 +00:00
darin%meer.net a4963da5ce fixes bug 238088 "Support compile-time backwards compatible nsAString in Gecko SDK" r=bsmedberg sr=dbaron a=chofmann 2004-04-01 22:39:51 +00:00
darin%meer.net d3c91aae68 fixes bug 239303 "provide basic string conversion routines for the Gecko SDK" r=bsmedberg sr=dbaron a=chofmann 2004-04-01 20:47:48 +00:00
pkw%us.ibm.com 04f59202ba Bug 237682 - AIX: Warnings about missing nsACString copy constructor
r/sr=darin@meer.net, a=asa@mozilla.org
2004-03-22 20:25:36 +00:00
darin%meer.net 7c70a6cb04 fixing a comment typo 2004-03-16 18:34:25 +00:00
darin%meer.net 1629547b88 adding null checks for bug 236003 "nsTSubstring::Equals(char *) crashes if passed a NULL pointer" r=dbaron 2004-03-09 06:23:35 +00:00
jst%mozilla.jstenback.com 7ce3ca81d5 Fixing bug 236595. Making nsAdoptingString not adopt strings that aren't owned by the string that's adopted from. Also un-inlining operator=(const self_type&). r+sr=darin@meer.net 2004-03-06 03:29:49 +00:00
darin%meer.net 6a9b4c1c76 fixes bug 235272 "RFind is broken [was: Thunderbird treats two-letter folder msf files as folders themselves]" r=jst sr=bienvenu 2004-03-04 07:54:22 +00:00
darin%meer.net c380c59f65 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin 2004-02-28 22:34:07 +00:00
darin%meer.net 80f8efd35c fixes bug 235355 "hangs/crashes after choosing Server Settings in Mail&Newsgroup Account Settings, click o.k." r+sr=dbaron 2004-02-25 03:24:29 +00:00
darin%meer.net f6875e2d3c 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 2004-02-25 02:08:34 +00:00
darin%meer.net d3491a301b adding brackets to correct last checkin (r=gisburn) 2004-02-23 19:57:18 +00:00
darin%meer.net fb4fea465d Checking in bustage fix for SUNPRO_CC (Sun Workshop/Forte), bug=235273
Thanks to timeless and gisburn for their help.
2004-02-23 19:24:41 +00:00
timeless%mozdev.org 93ff09dd87 Bug 235207 Build failure in mozilla/xpcom/string/src/nsStringObsolete.cpp
patch by roland.mainz@nrubsig.org sr=dbaron
2004-02-23 01:43:44 +00:00
jst%mozilla.jstenback.com ea534cf241 Duh, silly me. Fixing bogus attempt at casting... 2004-02-21 01:02:26 +00:00
darin%meer.net adf6f03670 removing bogus const type qualifier to fix IRIX compiler warning (thanks to dbaron for noticing this) 2004-02-20 23:28:49 +00:00
jst%mozilla.jstenback.com add5e48c18 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 2004-02-20 23:23:35 +00:00
darin%meer.net 44ce35aebb 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.
2004-02-20 01:53:23 +00:00
darin%meer.net ac7b627975 correcting bustage fix per dbaron: "reenable that for non-gcc compilers" 2004-02-19 06:29:08 +00:00
darin%meer.net aa60ebaca5 bustage fix for gcc-2.95.3 (speedracer) and egcs-2.91.66 (btek+monkeypox) r=bz 2004-02-19 05:54:04 +00:00
darin%meer.net 6154264bd2 bustage fix for GCC 3.4 2004-02-19 04:18:18 +00:00
darin%meer.net 07f71da316 fixing OS/2 bustage from string branch landing,
nsString.h needs to continue to define IGNORE_CASE for backwards compatibility
2004-02-19 04:15:22 +00:00
darin%meer.net 8d65e087ae landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00
bryner%brianryner.com 85dbf281fb 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. 2004-02-11 06:19:03 +00:00
dbaron%dbaron.org 36f4864d42 Speed up constructors of nsAutoString and nsCAutoString by calling nsStrPrivate::Initialize only once. b=188828 r=darin sr=alecf 2004-01-29 04:00:47 +00:00
dbaron%dbaron.org 8b1b6977cf Comment this out until we figure out what to do about nsXPIDLString's shared empty buffer handle. b=112547 2004-01-22 04:30:03 +00:00
jst%mozilla.jstenback.com fc9f3d6ea3 Fixing bug 183373. Provide XPCOM methods for accessing a shared empty string object. r=bryner@brianryner.com, sr=dbaron@dbaron.org 2004-01-21 21:36:40 +00:00
dbaron%dbaron.org 345194dd62 Fix Windows debug bustage. b=231737, 112547 2004-01-21 18:29:38 +00:00
peterv%propagandism.org f277ca4791 Rename verify to verifyThread to fix OS X debug build bustage. 2004-01-21 12:25:50 +00:00
dbaron%dbaron.org a075871e8e Assert when shared buffers are used on multiple threads. b=112547 r=jst sr=darin 2004-01-21 04:39:58 +00:00
jst%mozilla.jstenback.com 05f83fbe5d Fixing bug 230849. Making LossyCopyUTF16toASCII() and CopyASCIItoUTF8() truncate the destination even when the source is null. r=jshin@mailaps.org, sr=peterv@propagandism.org 2004-01-14 19:26:17 +00:00
peter%propagandism.org 21e7e7a67f Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst. 2003-12-23 09:24:11 +00:00
dwitte%stanford.edu 857bdeb8cf fix regression due to silly casting fu.
b=225887, r=bryner, sr=alecf, a=dbaron.
2003-11-20 21:33:50 +00:00
dwitte%stanford.edu a80c072618 removing unnecessary branch.
b=225887, r=jag, sr=alecf.
2003-11-18 12:31:25 +00:00
peter%propagandism.org 93e0a01614 Restoring fix for bug 224231, didn't affect btek's Tp. 2003-11-02 12:58:29 +00:00
peter%propagandism.org 0b431feb53 Back out a part of the fix for bug 224231 to see if it affects btek's Tp. 2003-11-02 11:59:54 +00:00
peter%propagandism.org 8658999689 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron. 2003-11-01 09:35:48 +00:00
timeless%mozdev.org 346f57ac0a Bug 221826 only create stack objects in Cut if they'll be used
r=dbaron sr=dbaron
2003-10-12 23:28:31 +00:00
peter%propagandism.org 4c00c9dd8c trying to fix bustage. 2003-10-09 17:02:05 +00:00
peter%propagandism.org 9059682e5b Move voidable string into xpcom. Part of fix for bug 221387 (XPathExpression.createExpression doesn't throw NAMESPACE_ERR). r=bz, sr=dbaron. 2003-10-09 16:15:29 +00:00
cls%seawood.org 1b51ba858c 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. 2003-08-16 00:42:35 +00:00
cls%seawood.org 74a903bcdb Move mozilla/string into mozilla/xpcom/.
Bug #214700 r=dougt sr=leaf a=mkaply
2003-08-14 23:50:21 +00:00
dougt%meer.net ed09f93043 Fix for 205023. Adds nsTraceRefcnt stubs that access a global to allow tracing refcnt to work with the GRE/xpcom glue builds. r=dbaron 2003-08-05 05:29:10 +00:00
jaggernaut%netscape.com ac2ee6a6b1 Bug 151916: substring helpers for start and end (StringHead, StringTail, Substring(string, start)). r=dbaron, sr=bzbarsky 2003-07-14 07:42:24 +00:00
jaggernaut%netscape.com 2d7ed90a69 Bug 73353: clean up MODULE/REQUIRES story. r=cls, sr=bryner 2003-07-13 22:29:00 +00:00
dwitte%stanford.edu d78b684d26 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.
2003-07-12 07:14:37 +00:00