mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
97f2efff13
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 |
||
---|---|---|
.. | ||
crashtests | ||
moz.build | ||
nsASCIIMask.cpp | ||
nsASCIIMask.h | ||
nsAString.h | ||
nsCharTraits.h | ||
nsDependentString.cpp | ||
nsDependentString.h | ||
nsDependentSubstring.cpp | ||
nsDependentSubstring.h | ||
nsLiteralString.h | ||
nsPrintfCString.h | ||
nsPromiseFlatString.cpp | ||
nsPromiseFlatString.h | ||
nsReadableUtils.cpp | ||
nsReadableUtils.h | ||
nsString.cpp | ||
nsString.h | ||
nsStringBuffer.h | ||
nsStringComparator.cpp | ||
nsStringFlags.h | ||
nsStringFwd.h | ||
nsStringIterator.h | ||
nsStringObsolete.cpp | ||
nsSubstring.cpp | ||
nsTDependentString.cpp | ||
nsTDependentString.h | ||
nsTDependentSubstring.cpp | ||
nsTDependentSubstring.h | ||
nsTextFormatter.cpp | ||
nsTextFormatter.h | ||
nsTLiteralString.h | ||
nsTPromiseFlatString.cpp | ||
nsTPromiseFlatString.h | ||
nsTString.cpp | ||
nsTString.h | ||
nsTStringComparator.cpp | ||
nsTStringObsolete.cpp | ||
nsTStringRepr.h | ||
nsTSubstring.cpp | ||
nsTSubstring.h | ||
nsTSubstringTuple.cpp | ||
nsTSubstringTuple.h | ||
nsUTF8Utils.h | ||
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>