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 a path into individual components. Used by pathmap. |
| pathmap_ |
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_ |
Preform the pathmap replacement operations on the given path. The patterns take the form ‘pat1,rep1;pat2,rep2…’. |
<code/>and<pre/>for code samples.