Cut out extension of filename or filepath. If ext is null, then return length that require for store extension.
See Implementation
Cut out extension of filename or filepath. If ext is null, then return length that require for store extension.