mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Made basename() generic in string type.
This commit is contained in:
parent
0cdf093766
commit
798b6c0cea
1 changed files with 13 additions and 13 deletions
|
@ -278,7 +278,7 @@ unittest
|
||||||
* -----
|
* -----
|
||||||
*/
|
*/
|
||||||
|
|
||||||
string basename(string fullname, string extension = null)
|
S basename(S)(S fullname, string extension = null)
|
||||||
out (result)
|
out (result)
|
||||||
{
|
{
|
||||||
assert(result.length <= fullname.length);
|
assert(result.length <= fullname.length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue