Benjamin Smedberg
bfb3212d31
Bug 1332639 followup. I apparently didn't actually remove the nsStringAPI.* files, but that was the intention, r=oops
...
MozReview-Commit-ID: GJBNWAmO6iy
2017-03-02 09:23:08 -05:00
Benjamin Smedberg
59181ead76
Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
...
MozReview-Commit-ID: 9dZcmMAI0Vk
2017-02-27 11:41:52 -05:00
Honza Bambas
aa77abdc46
Bug 1340577 - Add release-grade assertions to various XPCOM string API implementations to avoid input causing an overflow. r=froydnj
2017-02-21 11:38:00 -05:00
Tom Tromey
e90d95a3f9
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Tom Tromey
c6913978fb
Bug 1060419 - remove SprintfState typedef; r=froydnj
...
MozReview-Commit-ID: 9ygDxy8pBLT
2017-01-13 14:54:14 -07:00
David Major
0ec3ba1cf8
Bug 1339968 - Remove NS_MULTILINE_LITERAL_STRING. r=froydnj
2017-02-17 15:24:11 +13:00
Vincent Lequertier
0e546ed084
Bug 1329243 - Fix nsAdoptingString -Wextra copy constructor warning; r=froydnj
...
MozReview-Commit-ID: DEicxRecJUu
2017-01-23 20:50:01 +01:00
Michael Layzell
621721814b
Bug 1335203 - Synchronize rust debug-assertions with C++ DEBUG, r=froydnj
...
MozReview-Commit-ID: JPD9eNFg89S
2017-02-01 13:54:22 -05:00
Emilio Cobos Álvarez
d008616afb
Bug 1335204: Remove DEBUG-only ifdef for Gecko_IncrementStringAdoptCount. r=mystor
...
MozReview-Commit-ID: KhwAxk1fHUn
2017-01-30 23:17:19 +01:00
Gian-Carlo Pascutto
236437a59e
Bug 1330326 - Add Split() function on String classes. r=froydnj
...
MozReview-Commit-ID: 3xug2xMR60j
2017-01-30 12:34:35 +01:00
Emilio Cobos Álvarez
9fdca1aa23
Bug 1334579: Integrate nsstring bindings with leak logging. r=mystor
...
MozReview-Commit-ID: 368DwwuaMqr
2017-01-27 21:12:22 +01:00
Sebastian Hengst
e589e41ba2
Backed out changeset 558774589f3e (bug 1330326) for Windows build bustage in nsTSubstring.h. r=backout on a CLOSED TREE
2017-01-27 21:00:49 +01:00
Gian-Carlo Pascutto
6907337bb3
Bug 1330326 - Add Split() function on String classes. r=froydnj
...
MozReview-Commit-ID: 3xug2xMR60j
2017-01-24 12:07:00 +01:00
Benjamin Smedberg
2ecc8bf217
Bug 1332631 part E - file moves from xpcom/glue to xpcom/string, r=froydnj
...
MozReview-Commit-ID: AGHVJ5uYOoI
2017-01-20 14:19:22 -05:00
Nathan Froyd
b97ad47f89
Bug 1332648 - remove bogus string radix/case #defines; r=erahm
...
Nothing uses these defines, so we should remove them lest anybody get
confused. I would have also removed kAutoDetect (who would want to do
this?!), but kAutoDetect is used in one place in the tree, and I didn't
want to hold up the deletion of these two items with trying to fix that
one place.
2017-01-20 16:37:35 -05:00
Boris Zbarsky
08ec56f832
Bug 1330759 part 6. Make the null-termination asserts in nsStringBuffer::ToString into diagnostic asserts. r=froydnj
2017-01-18 22:20:15 -05:00
Boris Zbarsky
12f7fd3391
Bug 1330759 part 5. Back out the nsTSubstring changes we made in bug 1324430, because they can lead to non-null-terminated nsStrings. r=froydnj
2017-01-18 22:20:15 -05:00
Hiroyuki Ikezoe
b52c55c435
Bug 1330824 - Add truncate for nsAString and nsACString. r=mystor
...
MozReview-Commit-ID: 2ND5ra3buxI
2017-01-14 15:02:14 +09:00
Andrea Marchesini
3eefb79c84
Bug 1324430 - Implement nsTSubstring_CharT::Assign with length for a better string buffer sharing, r=froydnj
2016-12-23 17:22:21 +01:00
Olli Pettay
94b094475b
Bug 1324808 - Improve string allocation, r=nfroyd
2016-12-22 00:23:07 +02:00
Benjamin Smedberg
4eb5eefca5
Bug 1306329 part A - nsUTF8Utils is used from outside libxul, and NS_WARNING now only works from within libxul, so make its usage conditional, r=froydnj
...
MozReview-Commit-ID: HRYpj8C9c5k
2016-11-04 14:12:15 -04:00
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Eric Rahm
790ce7f0b5
Bug 1318766 - Validate length in SubstringTuple. r=froydnj
...
MozReview-Commit-ID: JuwQS8jpKcX
2016-12-02 10:35:35 -08:00
Eric Rahm
3c17c2a4ae
Bug 1317545 - Check new length in ReplaceSubstring. r=froydnj
...
MozReview-Commit-ID: 5Qvusd3twhM
2016-11-28 13:29:04 -08:00
Masatoshi Kimura
b582797a18
Bug 1318857 - Unhide nsTSubstring_CharT::StripChars in nsTString_CharT. r=froydnj
...
MozReview-Commit-ID: CyQhH2y9lbm
2016-11-20 00:53:37 +09:00
Tooru Fujisawa
a371f033d7
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Wes Kocher
62d49513c8
Backed out 10 changesets (bug 1283710) for osx xpcshell failures a=backout
...
Backed out changeset eb95a12e5d86 (bug 1283710)
Backed out changeset f727edc4be48 (bug 1283710)
Backed out changeset fed60fbf645d (bug 1283710)
Backed out changeset 98339fa564f1 (bug 1283710)
Backed out changeset 51b8d69edca0 (bug 1283710)
Backed out changeset d72527b7d3c0 (bug 1283710)
Backed out changeset ee5215f1a38e (bug 1283710)
Backed out changeset dcedbaefe399 (bug 1283710)
Backed out changeset 61f8250cbe0b (bug 1283710)
Backed out changeset 239382846137 (bug 1283710)
2016-10-18 17:27:58 -07:00
Tooru Fujisawa
556e7c80df
Bug 1283710 - Part 5: Rename message to toStringResult if it is the result of toString. r=bholley,jwalden,froydnj
2016-08-14 20:39:31 +09:00
Nathan Froyd
af192cdd27
Bug 1306616 - part 2 - remove nsWritingIterator<T>::write; r=erahm
...
Iterators shouldn't have methods like write(); if you need to write to
an iterator, that logic should be handled by something outside of the
iterator...which also explains why we have a specialization of
nsCharTraits<nsWritingIterator<T>>. The HTML parser wants this for its
own reasons, so we have to make sure it continues to work.
2016-10-03 17:21:52 -04:00
Nathan Froyd
6270c3fe57
Bug 1306616 - part 1 - don't use write() method of nsWritingIterator in nsReadableUtils; r=erahm
...
Iterators really shouldn't have methods like these; there should be
something else sitting on top of iterators that provides this.
2016-10-03 17:21:52 -04:00
Nathan Froyd
8d58cfa662
Bug 1305422 - part 18 - remove #if 0'd-out code from nsStringIterator.h; r=erahm
...
We don't support IBM VisualAge for OS/2 anymore, and we haven't needed
this code in a long time regardless.
2016-09-29 22:33:57 -04:00
Nathan Froyd
195502b23d
Bug 1305422 - part 17 - remove size_{forward,backward} from ns{Reading,Writing}Iterator; r=erahm
2016-09-29 22:33:57 -04:00
Nathan Froyd
6d7eb5345f
Bug 1305422 - part 9 - remove {start,end} from ns{Reading,Writing}Iterator; r=erahm
...
These methods are now unused thanks to previous patches.
2016-09-29 22:33:57 -04:00
Nathan Froyd
5d94c1a8b2
Bug 1305422 - part 6 - pass explicit end iterators for CopyTo{Upper,Lower}Case; r=erahm
...
This change avoids calling size_forward on the iterator, which we are
trying to eliminate.
2016-09-29 22:33:57 -04:00
Nathan Froyd
755d30ff92
Bug 1305422 - part 6a - add operator- support for ns{Reading,Writing}Iterator; r=erahm
...
This change is necessary so we can start using a pair of
iterators (current, end) and subtract them to figure out how far we have
left to go. The current code just uses size_forward and size_backward
for this purpose, and it's quite an unusual iterator that knows how far
it can go until it's done.
2016-09-29 22:33:58 -04:00
Nathan Froyd
765776be01
Bug 1305422 - part 3 - don't call size_forward in nsTStringComparator.cpp; r=erahm
...
Asking for size_forward on an iterator that you haven't started reading
from is just asking for the length of the original string, so use that
instead.
2016-09-29 22:33:58 -04:00
Nathan Froyd
252f50dc0d
Bug 1305422 - part 1 - remove normalize* methods from ns{Reading,Writing}Iterator; r=erahm
...
They are never called.
2016-09-29 22:33:58 -04:00
Michael Layzell
cc2ec32acb
Bug 1295762 - Part 1: Implement rust bindings to XPCOM's string types, r=froydnj
...
MozReview-Commit-ID: 7fnWSc3AzlR
2016-09-20 11:26:43 -04:00
Eric Rahm
bed8f9f769
Bug 1301742 - Improve UTF-16 to UTF-8 conversion speed. r=froydnj
...
This adds an SSE2 optimized path for UTF-16 strings that can be trivially
converted to UTF-8 (they contain no characters > 0X7F). It has a
speedup for the case where many of the leading characters are < 0X80 and
should have the same performance in the worst-case scenario where the first
character is > 0X7F.
2016-09-15 15:46:29 -07:00
Andrea Marchesini
f25b5588b4
Bug 1301025 - Change string allocation to be similar to nsTArray allocation, r=smaug, r=froydnj
2016-09-08 19:49:49 +02:00
Eric Rahm
f148bd8eae
Bug 1295747 - Use CheckedInt in size calculation. r=froydnj
2016-08-30 10:43:27 -07:00
Nicholas Nethercote
efa809864c
Bug 1295053 (part 4) - Don't use NS_METHOD for remaining xpcom functions. r=froydnj.
...
These don't need __stdcall on Win32.
2016-08-15 14:49:26 +10:00
Tom Tromey
1b5a2bdb96
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Chris Peterson
a2408938ab
Bug 1277106 - Part 4: Remove MOZ_UTF16() macro. r=Waldo
2016-07-19 21:07:53 -07:00
Chris Peterson
1e35dbdf75
Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium
2016-05-14 00:54:55 -07: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
Nicholas Nethercote
ae06f32e55
Bug 1262359 (part 3) - Add a missing fallible nsTSubstring_CharT::Assign() variant. r=erahm.
2016-04-06 17:23:19 +10:00
Jacek Caban
64339e3663
Bug 1257262 - Removed invalid nsAString:Assign variant. r=bsmedberg
2016-03-29 15:04:19 +02:00
Jeff Walden
1042076379
Bug 1256027 - Cast a few things in varargs to the expected types for MSVC 2015 warning-compatibility. r=froydnj
2016-03-23 13:21:02 -07:00