mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 11:37:24 +03:00
![]() 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. |
||
---|---|---|
.. | ||
compiler.d | ||
meta.d | ||
package.d | ||
system.d | ||
traits.d |