Package RASCAL.FileName

DescriptionManipulating filenames. Converting from DOS to RISC OS, or from Web to RISC OS.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
RASCAL.Utility
 
Use clauses
RASCAL.Utility
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Paths_Typearray (natural) of UString
Path_Pointeraccess Paths_Type
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Make_FileName function
ReturnString
Replaces illegal characters with '_' to create valid filenames.
Parameter name Type Mode Default
NameStringin
  
Convert_Path function
ReturnString
This function canonicalises the 'Path'.
It takes a filename (which may contain wildcards) and converts it into a complete pathmame, including disc and directory name when not provided.

Example: fred may convert to SCSI::Gamma.$.Utils.Fred
Parameter name Type Mode Default
PathStringin
  
Get_FS function
ReturnString
Returns the filing system part the 'Path'.
Parameter name Type Mode Default
PathStringin
  
Get_FS_And_Drive function
ReturnString
Returns the filing system and drive part the 'Path'.
Parameter name Type Mode Default
PathStringin
  
Get_Leaf function
ReturnString
Takes a filepath and returns the leafname.
Parameter name Type Mode Default
PathStringin
  
Get_Path function
ReturnString
takes a full pathname and returns the path, including the seperator ('.', ':', '<...$Path>').
Parameter name Type Mode Default
PathStringin
  
Web_To_RISCOS function
ReturnString
Converts a web-format path to RISC OS format.
Parameter name Type Mode Default
PathStringin
No_ExtensionsBooleanintrue
Mixed_CaseBooleanintrue
  
RISCOS_To_web function
ReturnString
Converts a RISC OS format path to web format.
Parameter name Type Mode Default
PathStringin
  
DOS_To_RISCOS function
ReturnString
Converts a DOS/Windows path to RISC OS format.
Parameter name Type Mode Default
PathStringin
No_ExtensionsBooleanintrue
Mixed_CaseBooleanintrue
  
App_To_Dir function
ReturnString
Remove plings from beginning of name.
Parameter name Type Mode Default
OriginalStringin
  
Seperate_Paths function
ReturnPaths_Type
Splits a paths string containing several commaseperated paths into its elements and returns an array of those paths.
Parameter name Type Mode Default
PathStringin