Changeset 12293 in project for wiki/filepath


Ignore:
Timestamp:
10/29/08 03:50:28 (13 years ago)
Author:
Ivan Raikov
Message:

Added some more descriptions and procedure tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/filepath

    r12292 r12293  
    7777==== Extension procedures
    7878
    79   filepath:split-extension
    80 
    81   filepath:take-extension
    82 
    83   filepath:replace-extension
     79<procedure>(filepath:split-extension PATH) => (NAME EXT)</procedure>
     80
     81Splits path on the last extension.
     82
     83<procedure>(filepath:take-extension PATH) => EXT</procedure>
     84
     85Returns last extension of given path, or empty string.
     86
     87<procedure>(filepath:replace-extension PATH EXT) => PATH</procedure>
    8488 
    85   filepath:drop-extension
    86 
    87   filepath:add-extension
     89Replaces the last path extension with the given extension.
     90
     91<procedure>(filepath:drop-extension PATH) => PATH</procedure>
     92
     93Removes last extension and extension separator preceding it.
     94
     95<procedure>(filepath:add-extension PATH EXT) => PATH</procedure>
    8896 
    89   filepath:has-extension?
     97Appends an extension to the given path.
     98
     99<procedure>(filepath:has-extension? PATH) => BOOL</procedure>
     100
     101Returns true if the given path has an extension.
    90102 
    91   filepath:split-all-extensions
    92 
    93   filepath:drop-all-extensions
     103<procedure>(filepath:split-all-extensions PATH) => (NAME EXT)</procedure>
     104
     105Splits path on the first extension.
     106
     107<procedure>(filepath:drop-all-extensions PATH) => PATH</procedure>
    94108 
    95   filepath:take-all-extensions
     109Removes all extensions from the path.
     110
     111<procedure>(filepath:take-all-extensions PATH) => EXT</procedure>
     112
     113Returns all extensions from the path.
    96114
    97115==== Drive procedures
    98116
    99 filepath:split-drive
    100 
    101 filepath:join-drive
    102 
    103 filepath:take-drive
    104 
    105 filepath:has-drive?
    106 
    107 filepath:drop-drive
    108 
    109 filepath:is-drive?
     117<procedure>filepath:split-drive</procedure>
     118
     119<procedure>filepath:join-drive</procedure>
     120
     121<procedure>filepath:take-drive</procedure>
     122
     123<procedure>filepath:has-drive?</procedure>
     124
     125<procedure>filepath:drop-drive</procedure>
     126
     127<procedure>filepath:is-drive?</procedure>
    110128
    111129==== Operations on a file path
    112130
    113 filepath:split-file-name
    114 
    115 filepath:take-file-name
    116 
    117 filepath:replace-file-name
    118 
    119 filepath:drop-file-name
    120 
    121 filepath:take-base-name
    122 
    123 filepath:replace-base-name
    124 
    125 filepath:take-directory
    126 
    127 filepath:replace-directory
    128 
    129 filepath:combine
    130 
    131 filepath:split-path
    132 
    133 filepath:join-path
    134 
    135 filepath:split-directories
     131<procedure>filepath:split-file-name</procedure>
     132
     133<procedure>filepath:take-file-name</procedure>
     134
     135<procedure>filepath:replace-file-name</procedure>
     136
     137<procedure>filepath:drop-file-name</procedure>
     138
     139<procedure>filepath:take-base-name</procedure>
     140
     141<procedure>filepath:replace-base-name</procedure>
     142
     143<procedure>filepath:take-directory</procedure>
     144
     145<procedure>filepath:replace-directory</procedure>
     146
     147<procedure>filepath:combine</procedure>
     148
     149<procedure>filepath:split-path</procedure>
     150
     151<procedure>filepath:join-path</procedure>
     152
     153<procedure>filepath:split-directories</procedure>
    136154
    137155==== Trailing Separators
    138156
    139 filepath:has-trailing-path-separator?
    140 
    141 filepath:add-trailing-path-separator
    142 
    143 filepath:drop-trailing-path-separator
     157<procedure>filepath:has-trailing-path-separator?</procedure>
     158
     159<procedure>filepath:add-trailing-path-separator</procedure>
     160
     161<procedure>filepath:drop-trailing-path-separator</procedure>
    144162
    145163==== File Name Normalization
    146164
    147 filepath:normalise
    148 
    149 filepath:path-equal?
    150 
    151 filepath:make-relative
    152 
    153 filepath:is-relative?
    154 
    155 filepath:is-absolute?
    156 
    157 filepath:is-valid?
    158 
    159 filepath:make-valid
     165<procedure>filepath:normalise</procedure>
     166
     167<procedure>filepath:path-equal?</procedure>
     168
     169<procedure>filepath:make-relative</procedure>
     170
     171<procedure>filepath:is-relative?</procedure>
     172
     173<procedure>filepath:is-absolute?</procedure>
     174
     175<procedure>filepath:is-valid?</procedure>
     176
     177<procedure>filepath:make-valid</procedure>
    160178
    161179
Note: See TracChangeset for help on using the changeset viewer.