gecko-dev/xpcom/string
Chris Peterson 515689e933 Bug 1880008 - Add char8_t string overloads to MFBT string functions when compiling with -std=c++20. r=xpcom-reviewers,emilio
When compiled with -std=c++17, u8"" string literals have type `const char[]`. When compiled with -std=c++20, u8"" string literals have type `const char8_t[]`. This patch adds the minimum char8_t overloads needed to compile Firefox with -std=c++20. If we want to use char8_t in more code or replace `Utf8Unit` with char8_t, that will require an extensive redesign of MFBT's and xpcom's string classes after we update from -std=c++17 to c++20.

Differential Revision: https://phabricator.services.mozilla.com/D201672
2024-02-14 01:33:31 +00:00
..
crashtests
moz.build
nsASCIIMask.cpp
nsASCIIMask.h
nsAString.h
nsCharTraits.h
nsDependentString.h
nsDependentSubstring.h
nsLiteralString.h
nsPrintfCString.h
nsPromiseFlatString.h
nsReadableUtils.cpp
nsReadableUtils.h
nsString.h
nsStringBuffer.cpp
nsStringBuffer.h
nsStringFlags.h
nsStringFwd.h
nsStringIterator.h
nsStringStats.cpp
nsStringStats.h
nsTDependentString.cpp
nsTDependentString.h
nsTDependentSubstring.cpp
nsTDependentSubstring.h
nsTextFormatter.cpp
nsTextFormatter.h
nsTLiteralString.cpp
nsTLiteralString.h
nsTPromiseFlatString.cpp
nsTPromiseFlatString.h
nsTString.cpp
nsTString.h
nsTStringComparator.cpp
nsTStringHasher.h
nsTStringRepr.cpp
nsTStringRepr.h
nsTSubstring.cpp
nsTSubstring.h
nsTSubstringTuple.cpp
nsTSubstringTuple.h
nsUTF8Utils.h
README.html
RustRegex.h
RustStringAPI.cpp

<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>