nl_tokens: helper functions
pl_tokens: function getResignedFilename ( input ) { if ( ! input ) { return null ; } const pos = input . lastIndexOf ( path . sep ) ; if ( <mask> !== - 1 ) { const tmp = input . substring ( pos + 1 ) ; const dot = tmp . lastIndexOf ( '.' ) ; input = ( dot !== - 1 ) ? tmp . substring ( 0 , dot ) : tmp ; } else { const dot = input . lastIndexOf ( '.' ) ; if ( dot !== - 1 ) { input = input . substring ( 0 , dot ) ; } } return input + '-resigned.ipa' ; }