phobos/lib/sys
Jonathan M Davis e16ce73f59
Add isSomeString and isSomeChar to lib.sys.traits. (#8940)
This ports over isSomeString and isSomeChar from std.traits.
isSomeString behaves the same (since the std.traits version doesn't
accept enums), but the new isSomeChar is different in that the old one
accepts enums, and this one rejects them. The new isSomeChar also has a
simplified implementation, but the behavior is the same aside from how
enums are treated.

The documentation and tests have been beefed up in the process, and I
added a bit more to the documentation / tests for isDynamicArray and
isStaticArray based on what came up with the tests for isSomeString and
isSomeChar.

It is not my plan to port over any of the other traits in std.traits
which are specifically for strings (e.g. isNarrowString), so checking
string types with lib.sys.traits should be less confusing than it has
been with std.traits.
2024-03-07 23:21:51 -08:00
..
compiler.d Phobos 3 Setup (#8925) 2024-02-28 02:14:35 -08:00
meta.d Some documentation improvements to lib.sys.traits and lib.sys.meta. (#8937) 2024-03-05 01:26:39 -08:00
package.d Remove lib.sys.stdint. (#8926) 2024-02-28 22:24:26 -08:00
system.d Phobos 3 Setup (#8925) 2024-02-28 02:14:35 -08:00
traits.d Add isSomeString and isSomeChar to lib.sys.traits. (#8940) 2024-03-07 23:21:51 -08:00