Changes between Version 7 and Version 8 of FilesAdvancedCowan


Ignore:
Timestamp:
12/02/12 18:57:55 (4 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FilesAdvancedCowan

    v7 v8  
    1212The procedures `file-exists?` and `delete-file` are the same as in the `(scheme files)` library. 
    1313 
    14 == Additional procedures == 
    15  
    16 `(native-encoding)` 
    17  
    18 Returns a symbol suitable for use in a settings list to represent the native encoding used by the implementation. 
    19  
    20 `(native-newline)` 
    21  
    22 Returns a symbol suitable for use in a settings list to represent the native newline translation used by the implementation. 
     14== Port procedures == 
    2315 
    2416`(port-position `''port''`)` 
     
    3931 
    4032Returns `#t` if the port supports the `set-port-position!` operation, and `#f` otherwise. 
     33 
     34`(port-settings  `''port''`)` 
     35 
     36Returns an approximation to the settings list used to create ''port''.  The order of keys may not be the same, some keys may be omitted if they have no effect on the implementation or if they explicitly specify the implementation default, and some values may be different if they have the same effect on the implementation.  If no settings list was used, the list `(path `''filename''`)` is returned. 
     37 
     38== I/O procedures == 
    4139 
    4240`(binary-port-eof? `''port''`)` 
     
    6967Returns a list consisting of all the Scheme objects that can be read from ''port'' (as if by `read`) before an eof-object is returned, or an eof-object if there are none.  The default port is the value of `(current-input-port)`. 
    7068 
    71 `(port-settings  `''port''`)` 
     69== Conversion procedures ==  
    7270 
    73 Returns an approximation to the settings list used to create ''port''.  The order of keys may not be the same, some keys may be omitted if they have no effect on the implementation or if they explicitly specify the implementation default, and some values may be different if they have the same effect on the implementation.  If no settings list was used, the list `(path `''filename''`)` is returned. 
     71`(string->bytevector `''string'' [ ''settings-list'' [ ''start'' [ ''end'' ] ] ] `)` 
    7472 
    75 `(string->bytevector `''string'' [ ''settings-list'' ]`)` 
     73Converts ''string'' from ''start'' to ''end'' to a bytevector using the keys `encoding`, `newline`, `encoding-error`, and possibly other implementation-specific keys in ''settings-list'', and returns the string. 
    7674 
    77 Converts ''string'' to a bytevector using the keys `encoding`, `newline`, `encoding-error`, and possibly other implementation-specific keys in ''settings-list'', and returns the string. 
     75`(bytevector->string `''bytevector'' [ ''settings-list'' [ ''start'' [ ''end'' ] ] ] `)` 
    7876 
    79 `(bytevector->string `''bytevector'' [ ''settings-list'' ]`)` 
     77Converts ''bytevector'' from ''start'' to ''end'' to a string using the keys `encoding`, `newline`, `encoding-error`, and possibly other implementation-specific keys in ''settings-list'', and returns the bytevector. 
    8078 
    81 Converts ''bytevector'' to a string using the keys `encoding`, `newline`, `encoding-error`, and possibly other implementation-specific keys in ''settings-list'', and returns the bytevector. 
     79== File procedures == 
    8280 
    83 `(rename-file ''oldname newname''`)` 
     81`(rename-file `''oldname newname''`)` 
    8482 
    85 Renames a file named ''oldname'' to be named ''newname''.  Returns `#t` if it succeeds and `#f` if it fails. 
     83Renames a file named ''oldname'' to be named ''newname''.  Returns an unspecified value if it succeeds; otherwise, an error satisfying `file-error?` is raised.