View source code
Display the source code in std/path.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Enum std.path.CaseSensitive
This enum
is used as a template argument to functions which
compare file names, and determines whether the comparison is
case sensitive or not.
enum CaseSensitive
: bool { ... }
Enum members
Name | Description |
---|---|
no
|
File names are case insensitive |
osDefault
|
The default (or most common) setting for the current platform.
That is, no on Windows and Mac OS X, and yes on all
POSIX systems except Darwin (Linux, *BSD, etc.).
|
yes
|
File names are case sensitive |
Example
writeln(baseName!(CaseSensitive .no)("dir/file.EXT", ".ext")); // "file"
assert(baseName!(CaseSensitive .yes)("dir/file.EXT", ".ext") != "file");
version (Posix)
writeln(relativePath!(CaseSensitive .no)("/FOO/bar", "/foo/baz")); // "../bar"
else
writeln(relativePath!(CaseSensitive .no)(`c:\FOO\bar`, `c:\foo\baz`)); // `..\bar`
Authors
Lars Tandle Kyllingstad, Walter Bright, Grzegorz Adam Hankiewicz, Thomas Kühne, Andrei Alexandrescu
License
Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.