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
README.html
RustRegex.h
RustStringAPI.cpp
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 Bug 1854446 - Make dynamic atoms store an nsStringBuffer. r=smaug,xpcom-reviewers,nika 2023-09-27 09:06:06 +00:00
nsStringBuffer.h Bug 1854446 - Make dynamic atoms store an nsStringBuffer. r=smaug,xpcom-reviewers,nika 2023-09-27 09:06:06 +00:00
nsStringFlags.h
nsStringFwd.h
nsStringIterator.h
nsStringStats.cpp
nsStringStats.h
nsTDependentString.cpp
nsTDependentString.h
nsTDependentSubstring.cpp
nsTDependentSubstring.h
nsTLiteralString.cpp
nsTLiteralString.h Bug 1878108 - Replace custom MOZ_LIFETIME_BOUND with built-in. r=nika,glandium 2024-02-06 13:00:39 +00:00
nsTPromiseFlatString.cpp
nsTPromiseFlatString.h Bug 1876233: Mark nsTPromiseFlatString as a stack-only class. r=nika 2024-01-25 06:54:09 +00:00
nsTString.cpp
nsTString.h
nsTStringComparator.cpp
nsTStringHasher.h
nsTStringRepr.cpp
nsTStringRepr.h Bug 1880008 - Add char8_t string overloads to MFBT string functions when compiling with -std=c++20. r=xpcom-reviewers,emilio 2024-02-14 01:33:31 +00:00
nsTSubstring.cpp Bug 1857751 - nsTSubstring.cpp: Do not use 'else' after 'return'. r=sylvestre 2023-10-15 21:26:26 +00:00
nsTSubstring.h Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
nsTSubstringTuple.cpp
nsTSubstringTuple.h
nsTextFormatter.cpp
nsTextFormatter.h
nsUTF8Utils.h

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>