James Kitchener
|
5a8d6b4b4f
|
Bug 328755 - Assigning a zero-length string should not alloc a buffer. r=bsmedberg
|
2014-02-03 22:57:56 +10:30 |
|
Neil Rashbrook
|
faa06fc386
|
Bug 514173 Make literal string buffers shareable r=dbaron,ehsan,bholley
|
2014-01-08 20:51:38 +00:00 |
|
Benjamin Smedberg
|
1246de99b0
|
Bug 938794 - Annotate OOM size as infallible string or data structures abort, r=froydnj
|
2013-11-25 15:06:17 -05:00 |
|
Nathan Froyd
|
a28cce38fb
|
Bug 608915 - part 2 - use MFBT's double-conversion code in nsString::AppendFloat; r=bz,gps
|
2013-09-24 13:36:55 -04:00 |
|
Matt Brubeck
|
3966d92646
|
Bug 935376 - Back out 2e6063aa9b77 (bug 328755) on suspicion of causing a crash in ntdll
|
2013-11-05 21:12:56 -08:00 |
|
James Kitchener
|
fdaa9f45b3
|
Bug 328755 - Assigning a zero-length string should not alloc a buffer. r=bsmedberg
|
2013-11-04 14:22:37 -05:00 |
|
Nathan Froyd
|
ac7da4be9a
|
Bug 907728 - use function overloading instead of defaulted arguments for nsTSubstring::Assign; r=jlebar
|
2013-08-20 16:32:54 -04:00 |
|
Catalin Iacob
|
f88cdc0744
|
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
|
2013-06-23 14:03:39 +02:00 |
|
Aryeh Gregor
|
cfbfebd4ba
|
Bug 859817 - Make nsStringBuffer::Alloc return already_AddRefed; r=bz
|
2013-04-22 14:13:22 +03:00 |
|
Nicholas Nethercote
|
b709a01659
|
Bug 826521 (part 1) - Add SizeOfIncludingThisEvenIfShared() for strings. r=bz.
|
2013-01-17 21:21:35 -08:00 |
|
Mats Palmgren
|
fce4a6c022
|
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
|
2013-01-15 13:22:03 +01:00 |
|
Anthony Jones
|
8a8c3de2be
|
Bug 791428 - Remove unnecessary malloc from number format function. r=roc
|
2012-10-22 22:22:27 -04:00 |
|
Ehsan Akhgari
|
243c878d26
|
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
|
2012-08-22 11:56:38 -04:00 |
|
Ms2ger
|
c8ea20cf42
|
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
|
2012-08-09 09:09:40 +02:00 |
|
Aryeh Gregor
|
8b4a23fc4c
|
Bug 777292 part 2 - Change all nsnull to nullptr
|
2012-07-30 17:20:58 +03:00 |
|
Gervase Markham
|
cb6a072c2a
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Benjamin Smedberg
|
92ee1c1420
|
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
|
2012-05-08 12:42:27 -04:00 |
|
Benjamin Smedberg
|
b9be1015dc
|
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
|
2012-04-13 12:58:59 -04:00 |
|
Mats Palmgren
|
4fd4116067
|
Bug 732951. r=bsmedberg
|
2012-03-20 19:02:38 +01:00 |
|
Nicholas Nethercote
|
c96906ad44
|
Bug 682431 (part 1) - Fix up ns{String,CString} SizeOf* functions. r=bz.
|
2012-02-19 19:16:41 -08:00 |
|
Ehsan Akhgari
|
478ad1a412
|
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
|
0fe7772ece
|
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
|
2011-09-28 23:19:26 -07:00 |
|
Jeff Muizelaar
|
c3e62faaa6
|
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 |
|
Dominic Fandrey
|
532ec73933
|
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
|
2011-06-02 14:56:50 +02:00 |
|
Mats Palmgren
|
24d0ea454d
|
Bug 615147. r=dbaron a=blocking2.0:final
|
2011-01-14 01:22:26 +01:00 |
|
Boris Zbarsky
|
0cf06ba1e5
|
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
|
aea25dc578
|
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
|
798ef867c9
|
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
|
b10f0ebbcd
|
Bug 600301 - Optimize ReplacePrep, r=benjamin, a=benjamin
|
2010-11-07 21:39:04 +02:00 |
|
Justin Lebar
|
93c8b7d9da
|
Bug 145975 - Implement nsCaseInsensitiveUTF8StringComparator r=smontagu
|
2010-08-31 18:03:40 -07:00 |
|
Boris Zbarsky
|
5be4772ff0
|
Bug 584299. Inline the string constructors and destructors again. r=bsmedberg
|
2010-08-06 20:46:51 -04:00 |
|
Mounir Lamouri
|
c317c7ae13
|
Bug 549475: Implement HTML5-specified value sanitization algorithm for HTMLInputElement. r=sicking,ehsan,bsmedberg sr=jst
|
2010-07-21 02:11:19 +02:00 |
|
Jonas Sicking
|
7582856f31
|
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
|
e006f779df
|
Bug 520366 AppendInt only handles 32 bit signed ints r=bsmedberg
|
2009-11-04 21:33:23 +00:00 |
|
Neil Rashbrook
|
63c77e3cdc
|
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 |
|
Neil Rashbrook
|
b15be8f4bb
|
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 |
|
Neil Rashbrook
|
c111019db9
|
Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg
|
2009-03-04 09:50:22 +00:00 |
|
Benjamin Smedberg
|
0b842e5583
|
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 |
|
Boris Zbarsky
|
1090af6c0c
|
Bug 265534. Take some string constructors out of line to reduce codesize. r=bsmedberg, sr=dbaron
|
2008-08-18 11:40:49 -04:00 |
|
|
98de634631
|
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 |
|
[email protected]
|
0bd0cac89f
|
From bug 345517 - fix adoptcount logging for the frozen string API, r=darin
|
2006-11-10 20:05:04 +00:00 |
|
[email protected]
|
160a444055
|
fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron
|
2006-06-28 22:11:39 +00:00 |
|
[email protected]
|
8e2c7034df
|
Do better logging of string leaks. Bug 336914, r+sr=darin
|
2006-05-12 03:36:37 +00:00 |
|
[email protected]
|
bb24d899c4
|
Backing out patch for bug 328755 due to crash regression bug 328842. r=darin.
|
2006-03-01 00:38:15 +00:00 |
|
[email protected]
|
4122b05d50
|
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 |
|
[email protected]
|
a89a85b0a6
|
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 |
|
[email protected]
|
d45196cb8d
|
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 |
|
[email protected]
|
861b005324
|
Back out bug 311456, at least for now, because it caused bug 311676.
|
2005-10-09 09:48:25 +00:00 |
|
[email protected]
|
ac6649650d
|
fixes bug 311456 "Calling Truncate() on an nsAutoString makes next append work hard" r+sr=bzbarsky
|
2005-10-07 21:52:18 +00:00 |
|
[email protected]
|
afd68b4645
|
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 |
|