gecko-dev/xpcom/string
Eric Rahm e0bdf23b2e Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj
In order to properly disable template functions with `std::enable_if` we need
to use the resulting type. This only works if we use a dependent type in the
template params, hence the need to shadow the `T` param.

Proper usage is now of the form:

template<typename Q = T, typename EnableIfChar = CharOnlyT<Q>>
Foo();

--HG--
extra : rebase_source : da7855403d9e683d06d3858e26805e9d8e338208
2017-10-03 12:44:44 -07:00
..
crashtests Bug 1403959, part 3 - Manually fix some xpcom/ eslint failures and enable it. r=froydnj 2017-09-28 16:12:52 -07:00
README.html
moz.build Bug 1397942 - Disable C5037 in xpcom/string to workaround MSVC bug. r=froydnj 2017-09-08 15:08:39 +10:00
nsASCIIMask.cpp Bug 1358297: Part 2. Helper class to mask ascii characters, letting us do a faster test for membership in a string/character set. r=froydnj 2017-05-10 13:12:30 -04:00
nsASCIIMask.h Bug 1358297: Part 2. Helper class to mask ascii characters, letting us do a faster test for membership in a string/character set. r=froydnj 2017-05-10 13:12:30 -04:00
nsAString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsCharTraits.h Bug 1353755 - remove nsCharTraits::assign; r=erahm 2017-05-22 09:23:09 -04:00
nsDependentString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsDependentString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsDependentSubstring.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsDependentSubstring.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsLiteralString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsPrintfCString.h Bug 1386103 (part 2, attempt 3) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm. 2017-08-09 20:41:40 +10:00
nsPromiseFlatString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsPromiseFlatString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsReadableUtils.cpp Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm. 2017-09-22 14:35:46 +10:00
nsReadableUtils.h Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm. 2017-09-22 14:35:46 +10:00
nsReadableUtilsImpl.h
nsReadableUtilsSSE2.cpp
nsString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsStringBuffer.h Bug 1343715 - Split nsTSubstring::mFlags into separate variables for class and data flags. r=dmajor 2017-07-10 12:23:10 -07:00
nsStringComparator.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsStringFlags.h Bug 1403506 - Remove nsTFixedString<T>. r=erahm. 2017-09-27 20:19:33 +10:00
nsStringFwd.h Bug 1403506 - Remove nsTFixedString<T>. r=erahm. 2017-09-27 20:19:33 +10:00
nsStringIterator.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsStringObsolete.cpp Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsSubstring.cpp Bug 1377351 - Part 3: Expose nsA[C]String::Assign(nsA[C]String&&) overload as take_from to rust, r=froydnj 2017-10-18 13:00:15 -04:00
nsSubstring.h
nsSubstringTuple.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsSubstringTuple.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTDependentString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTDependentString.h Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTDependentSubstring.cpp Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTDependentSubstring.h Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTLiteralString.h Bug 1377351 - Part 5: Add a workaround for gcc 4.9 compiler bug, r=froydnj 2017-10-18 13:00:22 -04:00
nsTPromiseFlatString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTPromiseFlatString.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTString.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTString.h Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTStringComparator.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTStringObsolete.cpp Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTStringRepr.h Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTSubstring.cpp Bug 1377351 - Part 5: Add a workaround for gcc 4.9 compiler bug, r=froydnj 2017-10-18 13:00:22 -04:00
nsTSubstring.h Bug 1403083 - Part 1: Properly disable string functions for invalid char types. r=froydnj 2017-10-03 12:44:44 -07:00
nsTSubstringTuple.cpp Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTSubstringTuple.h Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink 2017-08-14 14:22:50 -07:00
nsTextFormatter.cpp Bug 1401821 - nsTextFormatter "*" width argument comes before the actual argument; r=froydnj 2017-09-21 09:43:28 -06:00
nsTextFormatter.h Bug 1388789 - change return values of nsTextFormatter::vs{s,v}printf; r=froydnj 2017-09-05 13:17:49 -06:00
nsUTF8Utils.h
nsUTF8UtilsSSE2.cpp
precompiled_templates.cpp Bug 1403506 - Remove nsTFixedString<T>. r=erahm. 2017-09-27 20:19:33 +10:00

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>