Benjamin Smedberg
3250008f94
Bug 737164 part A - make the nsTSubstring string API infallible by default. Note that this patch for reviewing sanity does not modify the subclass APIs, that will be a separate revision, r=jlebar
...
--HG--
extra : rebase_source : 48db8595e35e95ea6ddc3a35a553d5641b8d1a42
2012-05-08 12:42:27 -04:00
Patrick Wong
4ccd1d2fbb
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Benjamin Smedberg
b328c7b488
Bug 743056 - nsPrintfCString is consistently misused because people don't understand its length-truncation behavior. Make it behave the way people expect by expanding the string as necessary (and use nsTSubstring::AppendPrintf to unify the codepath), r=jlebar
...
--HG--
extra : rebase_source : 8d638515f4ef5b89f0ecaca5a4cc2974982d7092
2012-04-13 12:58:59 -04:00
Mark Capella
bfa59371ce
Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden
2012-04-02 17:21:24 -07:00
Makoto Kato
df9f6ff270
Bug 738157 - missing nsSubstring_h___. r=dbaron
2012-03-23 14:46:04 +09:00
Mats Palmgren
7badd9a8e0
Bug 732951. r=bsmedberg
2012-03-20 19:02:38 +01:00
Nicholas Nethercote
8a288b60e4
Bug 682431 (part 1) - Fix up ns{String,CString} SizeOf* functions. r=bz.
...
--HG--
extra : rebase_source : 85813ee7d843b6422f1a80a36a06fb42aa93b801
2012-02-19 19:16:41 -08:00
Nicholas Nethercote
df90421a0d
Bug 710054 - Add {nsString,nsCString}::SizeOf{In,Ex}cludingThis. r=bz.
...
--HG--
extra : rebase_source : 2f5eb0a61cc36bdefe420658a86e5badc79484df
2012-02-02 14:52:02 -08:00
Nicholas Nethercote
8a9f231eaa
Bug 671299 (part 2) - Add nsStringBuffer::SizeOfIncludingThisMustBeUnshared. r=bz.
...
--HG--
extra : rebase_source : 1702e32e19828ae061c89f017f27efc75dab6cff
2012-01-02 18:19:12 -08:00
Nicholas Nethercote
7559a70a04
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
0d33b4e71c
Bug 712835 (part 1 of 3) - Add nsStringBuffer::SizeOfIncludingThisIfUnshared(). r=khuey.
...
--HG--
extra : rebase_source : 44f4e4139aaefb003f95df0d9fbec7e1c06e7a9f
2011-12-22 16:57:30 -08:00
Jeff Walden
62f48d8793
Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron
...
--HG--
extra : rebase_source : 507006c0f099da6851b585d2062267d285978ad7
2011-12-16 14:42:07 -05:00
Olli Pettay
1e8af4413d
Bug 711841, Null(C)String(), r=bsmedberg,glandium
2011-12-20 21:46:00 +02:00
Andrew Quartey
6fe0fd072a
Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal
2011-12-13 14:17:59 +00:00
Neil Rashbrook
daba677bf4
Bug 698256 Add and use Substring(data, length) convenience method r=dbaron
2011-12-09 08:35:41 +00:00
Atul Aggarwal
d480bf7f68
Bug 603243 - Making nsTString_CharT(char_type c) constructor private to avoid accidental misusage.
2011-11-16 19:42:03 +05:30
Gregory Szorc
1a1f7b30ae
Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey
2011-11-01 15:45:23 -07:00
Jonathan Watt
66f54fe5a4
Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg.
2011-10-28 19:33:28 +01:00
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Patrick McManus
959b94216e
bug 686312 - websockets should not reject non character utf-8 sequence as invalid r=dbaron
2011-09-20 18:13:43 -04:00
Neil Rashbrook
e626e8ff0c
Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte
2011-09-15 08:40:17 +01:00
Neil Rashbrook
396ec9d7bf
Backout of bug 611503 because Android has some weird string code
2011-09-14 21:14:57 +01:00
Neil Rashbrook
12e76a497d
Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte
2011-09-14 20:21:20 +01:00
Mike Hommey
73e9c2d6c7
Bug 676252 part 1 - Don't use $(OBJ_SUFFIX) before including config.mk. r=ted
2011-08-29 07:34:02 +02:00
Kyle Huey
7b5d330147
Merge m-c to b-s.
2011-08-28 06:00:17 -04:00
Matt Woodrow
11c1aac810
Bug 505115 - Part 15 - Add 4D Vectors, Quaternions and gfx3DMatrix functions. r=derf
2011-08-27 12:06:03 +12:00
Matheus Kerschbaum
0f5b3e839c
Bug 680625 part 0b: Remove more workarounds for past century compilers. r=ted
2011-08-26 00:35:13 +01:00
Matheus Kerschbaum
8a4cb927fd
Bug 678155 - Remove NS_COM. r=bsmedberg
2011-08-18 15:46:39 +02:00
Ginn Chen
7b5e7e6d4a
Bug 674469 - Add -xarch=sse2 flag for *SSE2.cpp with Solaris Studio compiler. r=khuey.
2011-07-28 11:40:39 +08:00
Jeff Muizelaar
10f647ec1a
Bug 592009. Fix AppendPrintf to support more than 31 characters. r=bsmedberg
...
We can use vsmprintf to have the formatting code do the allocation for us.
2011-08-25 10:43:49 -04:00
Ed Morley
3f49fdcb2a
Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted
2011-06-25 16:06:02 +02:00
Ehsan Akhgari
53103940ec
Bug 656607 - Let the compiler do the pointer arithmetic, instead of manually performing it; r=sicking
2011-06-08 22:02:49 -04:00
Dominic Fandrey
968bf5196a
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-06-02 14:56:50 +02:00
Mats Palmgren
c094a0c158
Bug 638112 - Assertion failure: chars[length] == jschar(0). r=dbaron
2011-05-11 11:46:59 +02:00
Tyler Downer
51a816c89b
Bug 471588 - Remove String docs. r=dbaron DONTBUILD
2011-05-06 12:43:35 -07:00
Daniel Holbert
02e60c843c
Bug 624410: Add gcc-suggested parentheses in nsReadableUtils.cpp to silence build warning. r=dwitte
2011-03-29 08:47:53 -07:00
Justin Lebar
d5dcbf68a6
Bug 592557 - Eliminate uses of PR_Atomic{Increment,Decrement} functions in favor of PR_ATOMIC_{INCREMENT,DECREMENT} macros. r=bsmedberg,gal
...
--HG--
extra : rebase_source : 71069eb9c9d61131adee49279e136c8574dabc62
2011-03-28 15:58:49 -04:00
Justin Lebar
b774f4accc
Bug 586698 - Add SSE versions of LossyConvertEncoding; r=tterribe,jst
2010-08-13 09:15:44 -07:00
Ehsan Akhgari
cb6a971f1a
Merge cedar into mozilla-central
2011-03-25 14:21:07 -04:00
Mounir Lamouri
6e945be67b
Bug 636750 (1/4) - Add ToDouble to nsTString. r=bsmedberg
2011-03-25 12:13:59 +01:00
Rafael Ávila de Espíndola
1ad7ee1a76
Bug 623132 - Add constructor for nsCaseInsensitiveCStringComparator (which inherits from nsCStringComparator) to placate CLang; r=bsmedberg
2011-03-24 19:28:57 -04:00
Mats Palmgren
d8e85c2924
Bug 615147. r=dbaron a=blocking2.0:final
2011-01-14 01:22:26 +01:00
Boris Zbarsky
3517f94854
Bug 608914 part 1. Remove the nsString overloads of AppendInt and move AppendFloat up to nsAString. r=bsmedberg
2010-11-30 13:18:15 -05:00
Dave Townsend
f322fea87c
Backing out bug 614058, bug 609272, bug 478445, bug 499628, bug 605296, bug 608914 and bug 614724 due to potentially causing bug 615736 CLOSED TREE. a=backout
2010-12-01 11:01:56 -08:00
Boris Zbarsky
2c04de129c
Bug 608914 part 1. Remove the nsString overloads of AppendInt and move AppendFloat up to nsAString. r=bsmedberg
2010-11-30 13:18:15 -05:00
Olli Pettay
e257d02ebd
Bug 600301 - Optimize ReplacePrep, r=benjamin, a=benjamin
...
--HG--
extra : rebase_source : 92cff8659239f2e62a9588234f9d3ef00f255c85
2010-11-07 21:39:04 +02:00
Justin Lebar ext:(%2C%20Kyle%20Huey%20%3Cme%40kylehuey.com%3E)
a6e293112f
Bug 145975 - Implement nsCaseInsensitiveUTF8StringComparator r=smontagu
...
--HG--
extra : rebase_source : 8e5d63a6a5ca50b6e95a80421ad96a1d4a52ae77
2010-08-31 18:03:40 -07:00
L. David Baron
5f3c6db760
Add PR_STATIC_ASSERTs to check some assumptions. (Bug 584945) r=bsmedberg a2.0=tests
2010-08-11 12:32:53 -07:00
Boris Zbarsky
78ca39176b
Bug 584299. Inline the string constructors and destructors again. r=bsmedberg
2010-08-06 20:46:51 -04:00
Mounir Lamouri
d55a633ca1
Bug 549475: Implement HTML5-specified value sanitization algorithm for HTMLInputElement. r=sicking,ehsan,bsmedberg sr=jst
...
--HG--
rename : layout/reftests/editor/newline-1.html => layout/reftests/editor/newline-4.html
2010-07-21 02:11:19 +02:00
Olli Pettay
6f759b3d50
Bug 577472 - Quickstub string handling shouldn't addref/release the string buffer, r=mrbkap
...
--HG--
extra : rebase_source : 5c343f210f3fb4a0aca5fc5f8b9b2d492248d3f3
2010-07-19 13:34:23 +03:00
Mitchell Field
d0f35f6883
Remove @status FROZEN and @status UNDER_REVIEW. r=bsmedberg
...
--HG--
extra : rebase_source : 7fab31a6b7898e05ff828482390846cc9ce2854d
2010-07-02 10:27:06 -04:00
Olli Pettay
4a3cfaa4e8
Bug 574089 - Optimize ::GetInnerHTML, r=jst
...
--HG--
extra : rebase_source : 3ed1549eaa96d3ff3fe6bf2bb2562dd9e68fcc17
2010-06-26 23:39:56 +03:00
Michael Kohler
6c0f59f4a6
Bug 506041 Part 2: Correct misspellings in source code
...
r=timeless
2010-05-13 14:19:50 +02:00
Jonas Sicking
c24e5442a9
Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg
2010-03-08 07:44:59 -08:00
Chris Jones
f181d3cf73
Bug 441324, part 4: Enable infallible operator new (leaving malloc fallible) in Gecko, and play well with the wince shunt. r=bsmedberg r=blassey r=vlad
2010-03-03 23:02:58 -06:00
Jonas Sicking
21ba749fb2
Bug 541245 part 4: Be consistent about prohibited characters such as 0xFFFE in UTF8<->UTF16 conversion code. r=smontagu
2010-02-23 09:38:10 -08:00
Jonas Sicking
2eb1e75087
Bug 541245 part 2: Make UTF8<->UTF16 comparison code consistent in the face of badly encoded strings. r=smontagu
2010-02-23 09:38:10 -08:00
Jonas Sicking
5db97f9537
Bug 422868 part 1: Fix UTF8 <-> UTF16 conversion code to deal with all encoding errors consistently. r=smontagu
2010-02-23 09:38:10 -08:00
Neil Rashbrook
b871244cc3
Bug 538476 Allow ToInteger to take an nsresult* parameter to match the external string API r=bsmedberg
2010-01-08 23:43:50 +00:00
Jonas Sicking
0b77e1fa89
Bug 526500: Fix bug in OOM handing for nsTSubstring::SetLength. Also change Capacity to return 0 rather than -1 for immutable strings to avoid similar surprises in the future. Finally Make SetCapacity return a boolean indicating success/failure to make it easier to check for oom handling. r=bsmedberg sr=dbaron
2009-11-18 17:14:29 -08:00
Neil Rashbrook
63ff447dc4
Bug 520366 AppendInt only handles 32 bit signed ints r=bsmedberg
2009-11-04 21:33:23 +00:00
Chris Jones
708e2e04ae
Backed out changeset 8cbc47eee659
2009-10-02 18:09:08 -05:00
Chris Jones
f2df9d3504
bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad
2009-10-01 21:50:09 -05:00
Benjamin Smedberg
ba372f3a4c
Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted
2009-08-25 08:59:31 -07:00
Neil Rashbrook
16b1fe13c8
Bug 499027 Copying an empty string to a new string allocates a buffer r=dbaron sr=jst
2009-08-14 12:03:05 +01:00
Jeff Walden
47019f7663
Remove stray semicolon that Linux gcc hates, r=red
2009-08-06 12:48:58 -07:00
Jeff Walden
e847bcc870
Bug 428465 - nsTArray should refuse to compile with T=nsAutoString (or work correctly). r=bsmedberg
2009-08-03 21:13:28 -07:00
Neil Rashbrook
dba2472e83
Bug 504660 Make sEmptyBuffer non-const so EnsureMutable can safely use it for an empty string r=bsmedberg
2009-07-20 21:04:44 +01:00
L. David Baron
53e2566c2b
Use char16_t when available, and when it is, don't test for -fshort-wchar. (Bug 502298) r=bsmedberg
2009-07-20 07:04:41 -04:00
Bob Clary
c5196b6787
bug 395651 - crash test by Jesse Ruderman.
2009-04-24 10:08:22 -07:00
Bob Clary
2baa715643
bug 394275 - crash test by Jesse Ruderman.
2009-04-24 10:08:22 -07:00
Neil Rashbrook
eeca3c2f77
Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg
2009-03-04 09:50:22 +00:00
Dão Gottwald
7724726ab5
Backed out changeset 2df29cb1ed93
2009-02-07 15:07:36 +01:00
Tyler Downer
ca2d87685b
Bug 471930 - Strip User Docs from XPCOM. r=bsmedberg
2009-02-07 13:54:47 +01:00
Daniel Holbert
4301671b45
Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg
2009-01-21 22:55:08 -08:00
Fred Jendrzejewski
424883d380
Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
...
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Benjamin Smedberg
bfbe5114fe
Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron
...
--HG--
extra : rebase_source : b0c9f51f2860aa1008c447334fa9075dd0b8e718
2009-01-15 13:44:46 -05:00
Benjamin Smedberg
470d4ccbfb
Bug 469072 - Annotations in XPCOM, and a couple related code fixups, to make outparams spit out useful warnings, r=bent
2008-12-11 15:13:52 -05:00
Daniel Holbert
5492039225
Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe
2008-10-01 23:49:45 -07:00
Jonas Sicking
69b9ff0371
Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst
2008-09-30 17:50:42 -07:00
Benjamin Smedberg
f0fdeb2ef7
Remove the v1 string ABI compatibility hacks. Replace references of nsTAString_CharT with nsTSubstring_CharT which is the new base class. r=dbaron
2008-09-19 11:07:22 -04:00
Serge Gautherie
cb3c0524ac
Bug 410708 – Compiler warning in nsUTF8Utils.h
...
(Av2) Use char notation
2008-08-09 04:36:52 +02:00
Boris Zbarsky
878d2da364
Bug 265534. Take some string constructors out of line to reduce codesize. r=bsmedberg, sr=dbaron
2008-08-18 11:40:49 -04:00
Marco Pesenti Gritti
5f039b9eb5
Make sure that nsString and nsString_external are the same size. b=430581 r=benjamin
2008-07-30 08:06:54 +02:00
Benjamin Smedberg
a124d5b9a1
Bug 442714 - Mark NS_STACK_CLASS on nsAutoString, r=dbaron
2008-06-30 14:46:47 -04:00
Jeff Walden
becc8f7cf3
Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68 ). acid3++ r=dbaron
2008-06-02 21:29:00 -04:00
dbaron@dbaron.org
d7e5cb7c5b
Fix -Wconversion warnings that prevent compiling netwerk/cookie/src/ (which makes warnings fatal) with gcc 4.3 on x86_64. b=409384 r=bsmedberg a=beltzner
2008-03-06 15:03:50 -08:00
benjamin@smedbergs.us
4d7ff5db89
Bug 409384 - Firefox 3.0b2 fauks to compile with gcc 4.3, r=dwitte+dbaron a=damons
2008-02-26 14:44:41 -08:00
dwitte@stanford.edu
84e6172062
update copy_string() to the single-fragment string world, and optimize write() to not return a value. b=282083, r+sr=jst, a=schrep
2008-01-03 16:07:06 -08:00
benjamin@smedbergs.us
fd5b74bf13
Bug 396052 - Firefox fails to start when run from a directory with non-native characters, r=luser sr=neil
2007-12-31 07:15:43 -08:00
jst@mozilla.org
ff5edada7b
Fixing bug 395651. Make our UTF-8 and UTF-16 comparison code etc more robust when dealing with invalid UTF-16 data. r+sr=jonas@sicking.cc, a=jst@mozilla.org/jonas@sicking.cc
2007-09-14 16:09:49 -07:00
jst@mozilla.org
651a54cda2
Fixing bug 394275. Fix problem with UTF16 to UTF8 character conversions when dealing with broken UTF16 characters. r+sr=jonas@sicking.cc
2007-09-07 13:28:27 -07:00
jwalden@mit.edu
d09c44d69c
Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change
2007-09-04 23:41:35 -07:00
bent.mozilla@gmail.com
8b4a7312a5
Bug 385250 - "IsVoid and IsTerminated may return something other than PR_TRUE and PR_FALSE". r=dbaron, sr=jag, a=bz.
2007-08-19 20:09:30 -07:00
philringnalda@gmail.com
3432251d59
Bug 380783 - nsStringAPI.h: no equivalent of IsVoid (tell if string is null), patch by Mook <mook.moz+mozbz@gmail.com>, r=bsmedberg/dbaron, sr=dbaron, a1.9=bz
2007-08-17 20:48:16 -07:00
aaronr@us.ibm.com
5b7b541d9a
make nsStringContainer_base smaller bug 390849, r+sr+a=bsmedberg
2007-08-07 16:37:44 -07:00
benjamin@smedbergs.us
6586a4906f
Bug 387132 followup - build the reftest-fast tool correctly with libxul, r=vlad a=only functional change is NPOB
2007-08-06 13:13:19 -07:00
asqueella@gmail.com
cb5ac9d2d1
Bug 339069 - Optimization for RFindInReadable
...
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r=darin, sr=dbaron
2007-07-23 18:30:19 -07:00
jst@mozilla.org
0240a7e8d9
Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org
2007-07-11 13:46:43 -07:00
neil@parkwaycc.co.uk
10de8387c8
Followup to bug 348748 to fix the alignment of trailing backslashes in macros
...
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
jwalden@mit.edu
6d7584839a
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
jruderman@hmc.edu
5339922cd3
Fix bug 383426 (OOM crash). r=peterv, sr=roc.
2007-07-02 23:03:11 -07:00
bent.mozilla@gmail.com
4f8634673c
Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg.
2007-05-16 13:10:18 -07:00
hg@mozilla.com
05e5d33a57
Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT,
2007-03-22 10:30:00 -07:00
timeless%mozdev.org
cfde29cd47
Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
...
r=darin
updating comment
2006-12-24 12:27:45 +00:00
timeless%mozdev.org
f2a71aa0dd
Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
...
r=darin
2006-12-21 07:13:58 +00:00
timeless%mozdev.org
05804e5bfe
Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
...
r=darin
2006-12-21 07:03:23 +00:00
mozilla%weilbacher.org
157e788e06
Fix XPCOM build break on OS/2, see bug 345517. p=abwillis1, r=benjamin
2006-12-07 22:54:18 +00:00
benjamin%smedbergs.us
e1fc008627
From bug 345517 - fix adoptcount logging for the frozen string API, r=darin
2006-11-10 20:05:04 +00:00
smontagu%smontagu.org
63552c0f0c
Prevent the IS_*_SURROGATE macros from identifying code points in supplementary planes as surrogates. Bug 347867, r+sr=darin
2006-08-10 10:12:37 +00:00
alfred.peng%sun.com
d54f29958e
Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
...
jst: review+
darin: superreview+
2006-08-04 08:36:36 +00:00
darin%meer.net
1fe60255fb
fixing win32 build bustage
2006-06-28 23:49:57 +00:00
darin%meer.net
218045e9fd
fixing win32 bustage
2006-06-28 22:54:40 +00:00
darin%meer.net
1bda9a04bc
fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron
2006-06-28 22:11:39 +00:00
dveditz%cruzio.com
4a2fa425a7
bug 284219 addendum, missed biesi's review comment
2006-06-22 22:21:52 +00:00
dveditz%cruzio.com
506140bd0c
Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
...
simplify OOM checks when growing an nsAString. r/sr=darin
2006-06-22 19:07:30 +00:00
benjamin%smedbergs.us
f51ee5d8fd
Bug 339726 - getter_Copies (internal API) should work with nsString, r=darin
2006-05-31 14:28:14 +00:00
bzbarsky%mit.edu
5abe2229c9
Do better logging of string leaks. Bug 336914, r+sr=darin
2006-05-12 03:36:37 +00:00
benjamin%smedbergs.us
08887664c9
Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
...
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
2006-05-03 16:11:14 +00:00
darin%meer.net
621c803bd5
fixes bug 327719 "Passing a big double serialize a rounded double" patch by afatecha@idea.com.py r=dbaron sr=darin
2006-03-15 14:23:11 +00:00
bryner%brianryner.com
f75f6a2bff
Backing out patch for bug 328755 due to crash regression bug 328842. r=darin.
2006-03-01 00:38:15 +00:00
bryner%brianryner.com
f7d6ac5402
Don't allocate a buffer when assigning a zero-length string, just call Truncate() instead (bug 328755). r=darin.
2006-02-27 19:44:48 +00:00
timeless%mozdev.org
1ce5986f6b
Bug 106386 Correct misspellings in source code
...
r=bernd rs=brendan
2006-02-23 09:36:43 +00:00
darin%meer.net
e2bb3bb1e7
fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard and doesn't clear F_VOIDED flag" r=bzbarsky
2006-02-04 00:42:18 +00:00
cbiesinger%web.de
c2d981f764
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
2006-02-03 14:18:39 +00:00
bryner%brianryner.com
ecc0706743
Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin.
2006-01-24 19:22:02 +00:00
timeless%mozdev.org
9b0852aaf7
Bug 106386 Correct misspellings in source code
...
patch by unknown@simplemachines.org r=timeless rs=brendan
2005-11-25 21:57:13 +00:00
jshin%mailaps.org
29c5a75f9a
bug 317281 : Make UCS4 to High/Low surrogate pair a little bit more efficient (r=smontagu, sr=bz)
2005-11-22 07:48:49 +00:00
bzbarsky%mit.edu
7d7e006845
Make definition match declaration for AppendUCS4ToUTF16. Bug 316859, patch by
...
Greg Onufer <gonufer@yahoo.com>, r+sr=bzbarsky
2005-11-20 19:21:48 +00:00
bzbarsky%mit.edu
11d61012cd
Fix stupid mistake in previous commit. Bug 316394, caught by smontagu
2005-11-17 15:13:25 +00:00
bzbarsky%mit.edu
add8c53fcc
Fix build bustage. Bug 316394
2005-11-15 19:18:26 +00:00
bzbarsky%mit.edu
79da4ded63
Move some basic macros for working with UTF16 from intl to XPCOM; use them in
...
some places including the HTML parser. Part of fix for bug 316394; the CSS
parser changes are still coming. r=smontagu, r=mrbkap on parser changes, sr=dbaron
2005-11-15 18:17:22 +00:00
bsmedberg%covad.net
a4d3866df3
Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver
2005-11-10 14:43:22 +00:00
bsmedberg%covad.net
a7253270ad
Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree.
2005-11-08 18:17:49 +00:00
bsmedberg%covad.net
33ca187193
Bug 315438 - Want nsTAString const char_type* BeginWriting() const; signature r=darin
2005-11-08 14:16:16 +00:00
bzbarsky%mit.edu
aee1056ad7
Implement a in-place (no copy) CompareUTF8toUTF16, and use it to make the atom
...
hashtable lookups zero-copy. Patch by jst, bug 314465 (with lots of the
discussion in bug 277479), r=bsmedberg,dbaron,brendan (on the PLDHashTable
keyhash value assumptions), sr=bzbarsky, moa=shaver.
2005-11-04 19:52:18 +00:00
bsmedberg%covad.net
acf28ad4d1
Bug 289010 - Move nsVoidArray/nsCOMArray to the XPCOM glue, and a few other things to make the glue easier to use, r=shaver+darin . The following files were CVS-copied from xpcom/ds to xpcom/glue:
...
nsVoidArray.h
nsVoidArray.cpp
nsCOMArray.h
nsCOMArray.cpp
nsQuickSort.h
nsQuickSort.cpp
2005-11-02 20:38:21 +00:00
bryner%brianryner.com
ddd7501923
Don't use memcpy for single-character Replace/Assign since it performs worse than simple assignment. Bug 312681, r+sr=darin.
2005-10-17 16:28:21 +00:00
dbaron%dbaron.org
abc0ac68ae
Back out bug 311456, at least for now, because it caused bug 311676.
2005-10-09 09:48:25 +00:00
darin%meer.net
8dbb1899d0
fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard" r+sr=bzbarsky
2005-10-07 21:52:18 +00:00
bsmedberg%covad.net
f0d2e05a7e
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
2005-08-15 18:29:55 +00:00
bsmedberg%covad.net
8992fb4c7d
Backout bug 299992 - too much odd platform-specific bustage
2005-08-11 22:07:08 +00:00
bsmedberg%covad.net
e9c48557e9
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
2005-08-11 20:40:53 +00:00
darin%meer.net
08464ff71a
fixes bug 297973 "It's possible to allocate a nsAString in the Gecko SDK" r=bryner sr=dbaron a=asa
2005-06-20 17:26:56 +00:00
darin%meer.net
3b218b11f8
fixes bug 288786 "Add BeginWriting equivalent to frozen string API" r=biesi sr=dbaron a=asa
2005-04-27 01:38:35 +00:00
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