XDS Library Guide and Reference
Table Of Contents
00
00
00
0000000000000000000000
Overview
ISO Modula-2 standard libraries
Input/output library
Reading and writing via default channels
Reading and writing data
Device modules
Low-level IO modules
String conversions
Mathematical libraries
Processes and Semaphores
Other libraries
Utility libraries
FileName module
Format - File name format record
GetFormat - Get file name format
Get* - Get file name parts
Convert - Convert String to File Name
ConvertExt - Convert File Name Extension
Length - Calculate File Name Length
Create - Create File Name
Example
FileSys module
Exists - Is File Exist
ModifyTime - Return Modify Time
Rename - Rename File
Remove - Remove File
FormOut module
writeProc - Write Procedure Type
format - Generic Formatting Procedure
LineSeparator - Set Line Separator
TextSeparator - Set Line Separator
Examples
FormStr module
print - Print to string
append - Append to the end of string
image - Print from the given position
iscan - Read integer in Modula-2 format
Printf module
ChanId - I/O channel identity
fprintf - Write formatted data to channel
printf - Print formatted data
sprintf - Put formatted data to buffer
ProgEnv module
ArgNumber - Return the number of arguments
GetArg - Get argument
ArgLength - Return length of argument
ProgramName - Get program name
ProgramNameLength - Length of program name
String - Get environment string
StringLength - Return environment string length
Example
TimeConv module
DateTime - Date and Time Type
Compare - Compare two clock values
SubDateDays - Date difference in days
SubDateSecs - Time difference in seconds
AddDateDays - Add whole number of days to date
AddDateSecs - Add seconds to date
TheDayNumber - Ordinal day number
TheFractionNumber - Number of fractions passed from midnight
WeekDay - Determine day of the week
millisecs - Milliseconds passed from midnight
time - System time in seconds
unpack - Unpack system time
pack - Pack system time
weekday - Determine day of the week for system time
DStrings module
String - Dynamic String Type
Assign - Create and Initialize String
Append - Append to Dynamic String
FilePath module
IsSimpleName - Is just a File Name
Lookup - Look up File
UseFirst - Use First Directory
RegComp module
Regular expressions
Examples of regular expressions
Expr - Regular expression
Compile - Compile regular expression
Const - Is constant expression
Match - Compare string with expression
Len - Length of substring
Pos - Position of substring
Substitute - Substitute substrings
PIM standard libraries
Oberon-2 Oakwood libraries