Nicholas Nethercote
e8236888ee
Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
...
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
2017-09-22 14:35:46 +10:00
Henri Sivonen
4a5ed37f38
Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj
...
MozReview-Commit-ID: 49AGBPjW4Ca
2017-09-01 11:53:31 +03:00
Sebastian Hengst
a030b74d2a
Backed out changeset d59b62713c66 (bug 1395527)
2017-09-02 10:38:20 +02:00
Henri Sivonen
3756bf2f04
Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj
...
MozReview-Commit-ID: 49AGBPjW4Ca
2017-09-01 11:53:31 +03:00
Nicholas Nethercote
4ce1e9c11f
Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsSubstring --> nsAString
- nsCSubstring --> nsACString
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
4cbdad69e6
Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsAFlatString --> nsString
- nsAFlatCString --> nsCString
2017-06-20 19:19:05 +10:00
Nicholas Nethercote
8bdcb2343a
Bug 1374580 (part 1) - Remove nsASingleFragment{,C}String typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsASingleFragmentString --> nsAString
- nsASingleFragmentCString --> nsACString
2017-06-20 19:18:17 +10:00
Nathan Froyd
e5e6dfef1d
Bug 1362194 - part 1 - add a fallible CopyASCIItoUTF16 function; r=mccr8
...
We already have all the machinery to expose a function like this, we
just need to write it.
2017-05-05 11:33:36 -04:00
Nicholas Nethercote
26b6e79d96
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
2016-04-27 14:16:50 +10:00
William Chen
3f3db96963
Bug 1259590 - Remove B2G ACL code. r=khuey
2016-04-07 09:50:01 -07:00
Nathan Froyd
c3cd9afb6f
Bug 1247359 - micro-optimize the common case of String{Begins,End}With; r=erahm
...
StringBeginsWith (resp. StringEndsWith) takes a defaulted
nsStringComparator object for doing comparisons. The flexibility this
affords is great, but the cost is not: nsStringComparator has virtual
methods, so initializing that defaulted object (at every callsite)
requires a temporary object whose vtable must be initialized.
Since the overwhemingly common case is to use the default comparator
anyway, we should not use defaulted arguments and instead provide the
default comparator/user-provided comparator cases as separate overloads.
This change eliminates the virtual call for the majority of callsites
and reduces codesize as well.
2016-02-10 14:31:06 -05:00
Xidorn Quan
088a0a3a5f
Bug 1213130 - Make several string function to accept char16ptr_t instead of char16_t*, and remove redundant overloads. rs=froydnj
2015-10-10 12:19:23 +11:00
Hamzata Diallo
3f804c88be
Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow
2015-07-02 15:19:35 -07:00
Jim Blandy
2bb4503427
Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
2015-03-19 00:46:40 -07:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
William Chen
1847cddd95
Bug 1131348 - Use fallible Append in content serializers. r=smaug,nfroyd
2015-03-17 01:55:22 -07:00
Ehsan Akhgari
0f02dbc8c0
Bug 1097452 - Use fallible allocation when setting the value of an <input> or <textarea> element; r=jst,froydnj
...
This patch handles most of the call sites for these allocations except
for a few where I added TODO comments with some information. Handling
those places may require reworking lots of code, so I prefer to not do
that here.
2015-01-14 17:31:41 -05:00
Birunthan Mohanathas
2a49da1efa
Bug 1028559 - Flatten xpcom/string/{public,src}/ directories. r=dbaron
2014-06-25 15:08:54 -07:00
Wes Kocher
777add5c77
Backed out 6 changesets (bug 1028559, bug 1028565) for android mochitest bustage on a CLOSED TREE
...
Backed out changeset fdd74c065e5d (bug 1028565)
Backed out changeset 5e9777d38052 (bug 1028565)
Backed out changeset 3510bcdba3fc (bug 1028565)
Backed out changeset 62ad3254903e (bug 1028565)
Backed out changeset e7557f70acfe (bug 1028565)
Backed out changeset 5b1b527abe47 (bug 1028559)
2014-06-24 18:32:55 -07:00
Birunthan Mohanathas
91694f185a
Bug 1028559 - Flatten xpcom/string/{public,src}/ directories. r=dbaron
2014-06-21 08:56:57 -07:00