Class

String

Extends:

User defined methods to be added to String.

Public Methods
ext Replace the file extension with newext. If there is no extenson on the string, append the new extension to the end. If the new extension is not given, or is the empty string, remove any existing extension.
pathmap Map the path according to the given specification. The specification controls the details of the mapping. The following special patterns are recognized:
pathmap_explode Explode a path into individual components. Used by pathmap.
pathmap_partial Extract a partial path from the path. Include n directories from the front end (left hand side) if n is positive. Include |n| directories from the back end (right hand side) if n is negative.
pathmap_replace Preform the pathmap replacement operations on the given path. The patterns take the form ‘pat1,rep1;pat2,rep2…’.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.