gecko-dev/xpcom/string
Karl Tomlinson 97f2efff13 Bug 1499212 align Replace/Insert/AppendLiteral parameter restrictions with those of AssignLiteral r=dbaron
There is no advantage in making these methods more restrictive on their
parameters than AssignLiteral.

The current implementation of the AppendLiteral overloads for equivalent
char_types is more permissive than AssignLiteral, but comments in the
implementation mention the possible optimization used in AssignLiteral and so
are assuming a similar constant and static storage duration restriction on its
parameter.  The optimization may never be implemented, but clients that would
benefit from support for non-constant or non-static parameters are also
expected to be rare, so there is little value in ruling out the optimization
at this stage.

ReplaceLiteral currently uses the AssignLiteral optimization.

Differential Revision: https://phabricator.services.mozilla.com/D8777

--HG--
extra : moz-landing-system : lando
2018-10-19 01:07:41 +00:00
..
crashtests
moz.build Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj. 2018-08-14 14:43:42 +03:00
nsASCIIMask.cpp
nsASCIIMask.h Bug 1434710 - Replaced all instances of mozilla::IndexSequence, mozilla::MakeIndexSequence and mozilla::IndexSequenceFor with std::index_sequence, std::make_index_sequence and std::index_sequence_for and removed mfbt/IndexSequence.h. r=botond 2018-04-09 21:12:13 +10:00
nsAString.h
nsCharTraits.h Bug 1486711 - Fill logically uninitialized parts of an XPCOM string's buffer with a marker byte in debug builds. r=froydnj 2018-09-07 05:47:57 +00:00
nsDependentString.cpp
nsDependentString.h
nsDependentSubstring.cpp
nsDependentSubstring.h
nsLiteralString.h
nsPrintfCString.h
nsPromiseFlatString.cpp
nsPromiseFlatString.h
nsReadableUtils.cpp Bug 1487050 - Remove CountCharInReadable() as dead code. r=froydnj 2018-09-04 14:48:39 +00:00
nsReadableUtils.h Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan 2018-09-07 14:47:51 +00:00
nsString.cpp
nsString.h Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj. 2018-08-14 14:43:42 +03:00
nsStringBuffer.h
nsStringComparator.cpp
nsStringFlags.h Bug 1448138 - Rename string DataFlags::SHARED to REFCOUNTED to make it clearer to those reading the code. r=erahm 2018-03-23 17:31:37 -07:00
nsStringFwd.h Bug 1399789 - nsSubstringSplitter/nsCSubstringSplitter is not defined anymore; r=erahm 2018-08-09 14:18:22 +02:00
nsStringIterator.h Bug 1492204 - Part 2: Remove nsWritingIterator. r=froydnj 2018-09-18 09:46:08 -07:00
nsStringObsolete.cpp
nsSubstring.cpp Bug 1482828 - Introduce C++ analogs of Rust's nsA[C]StringBulkWriteHandle. r=froydnj 2018-08-28 16:42:26 +00:00
nsTDependentString.cpp
nsTDependentString.h Bug 1492204 - Part 3: Remove references to char_iterator. r=froydnj 2018-09-18 12:05:23 -07:00
nsTDependentSubstring.cpp
nsTDependentSubstring.h Bug 1492204 - Part 3: Remove references to char_iterator. r=froydnj 2018-09-18 12:05:23 -07:00
nsTextFormatter.cpp
nsTextFormatter.h
nsTLiteralString.h
nsTPromiseFlatString.cpp
nsTPromiseFlatString.h
nsTString.cpp
nsTString.h Bug 1492204 - Part 3: Remove references to char_iterator. r=froydnj 2018-09-18 12:05:23 -07:00
nsTStringComparator.cpp
nsTStringObsolete.cpp Bug 1482828 - Introduce C++ analogs of Rust's nsA[C]StringBulkWriteHandle. r=froydnj 2018-08-28 16:42:26 +00:00
nsTStringRepr.h Bug 1499212 - document that Literal parameters must have a null terminator r=dbaron 2018-10-19 01:26:21 +00:00
nsTSubstring.cpp Bug 1484938 - Make XPCOM string appends and copying assignments write the terminator after writing content. r=froydnj 2018-09-24 14:23:35 +00:00
nsTSubstring.h Bug 1499212 align Replace/Insert/AppendLiteral parameter restrictions with those of AssignLiteral r=dbaron 2018-10-19 01:07:41 +00:00
nsTSubstringTuple.cpp
nsTSubstringTuple.h
nsUTF8Utils.h Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj. 2018-08-14 14:43:42 +03:00
precompiled_templates.cpp
README.html

<html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<body>
  <h1><span class="LXRSHORTDESC">managing sequences of characters</span></h1>
<p>
  <span class="LXRLONGDESC"></span>
</p>
</body>
</html>