What would be the most concise way to extract an extension from a file name string (including and not including the last dot . ) In D? Right now I'm using lastIndexOf() . Is there a cleaner / preferred way?
.
lastIndexOf()
Use std.path.extension . eg.
std.path.extension
assert("file.foo".extension == ".foo");
Source: https://habr.com/ru/post/971265/More articles:Quick Expansion Doesn't Work - ioscomputing the first quartile for a numerical column in a spark - scalaPassport.js Session Confusion - node.jsContinuous reading in Fortran with free format - fortranWhat is data-toggle = "modal" used for? - javascriptWhat is php $ _SERVER ['REDIRECT_STATUS']? - phpPrevent automatic login when registering in woocommerce and redirecting to the login page? - phpIonic frames and angular ui calendar issue? - angularjsHow to set dynamic data header in ngtable (angular plugin) - angularjsProblem with MPMoviePlayerController play / pause - iosAll Articles