mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
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
<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>