|
Copyright ® (1999-2008) EDMGROUP Pty Ltd - EZY Prolog Reference |
Type | Predicate | Parameters | Flow pattern | Description |
|---|---|---|---|---|
determ | ||||
determ | (i,i) | |||
determ | (i,o) | Performs a bit-wise AND operation | ||
determ | (i,o) | Performs a bit-wise left shift | ||
determ | (i,o) | Performs a bit-wise NOT operation | ||
determ | (i,o) | Performs a bit-wise OR (inclusive OR). | ||
determ | (i,o) | Performs a bit-wise right shift | ||
determ | (i,o) | Performs a bit-wise XOR (exclusive OR) | ||
determ | (i) | Test whether a variable is bound to a value The bound predicate succeeds if Variable is bound. The bound is used to control flow patterns and the binding of reference variables. | ||
determ | (i,o),(o,i),(i,i) | Convert between characters and their ASCII values | ||
determ | STRING RESULT | (o) | ||
determ | (i,i,o),(o,i,i),(i,o,i),(i,i,i) | The concat works as if defined by the equation: LongString = String1 + String2 | ||
determ | STRING FILENAME | (i) | Load prolog program from the file and compile it to memory | |
determ | (o,o,o) | Set the system date | ||
determ | STRING FILENAME | (i) | Delete file defined by FILENAME | |
determ | (i,i,o) | Return difference between the specified two time marks. | ||
determ | STRING FILE | (i) | Check whether a file exists | |
determ | INTEGER RC | (o) | Performs an exit with specified return code. | |
determ | ||||
determ | (i,i),(i,o) | Read or write a whole disk text file to or from a string | ||
determ | (i,i,o),(i,o,o) | Get/Set name of the file extension | ||
determ | (o,i,i),(i,o,o) | Get/Set file name path | ||
determ | (i,i,o) | Return the reduced filename with the sub-path, if any, from the specified BaseDirectory Remarks FullFileName an input filename with a path. It is not required that the path should start with a device name; it can start from any subdirectory. BaseDirectory an input base directory name. Notice that the last backslash (doubled) character in a directory name can be omitted. educedFileName is the output argument. It returns the filename with the calculated relative sub-path from the BaseDirectory. Notice that filenamereduce is pure string handling predicate and it does not check the correctness of the specified file and path names In the simplest case, when filenamepath can unify all BaseDirectory with root of FullFileName, then it works according to the following formula: \tReducedFileName = FullFileName - BaseDirectory | ||
determ | (o,i,i) | |||
determ | (o) | Check if variable is free. | ||
determ | (i,o,o),(i,i,o),(i,o,i),(i,i,i),(o,i,i) | Return the first character in a string Remarks The frontchar predicate operates as if it were defined by the equation: String = (the concatenation of FirstChar and RestString) The frontchar takes three arguments; the first is a string, the second is a char (the first character of the first string), and the third is the rest of the first string. The frontchar can be used to split a string up into a series of characters, or to create a string from a series of characters, and to test the characters within a string. If the argument String is bound to a zero-length string, the predicate fails. | ||
determ | (i,i,o,o) | Split a string into two strings Remarks The frontstr splits SrcString into two parts. StartStr contains the first NumberOfChars characters from SrcString, and EndString contains the rest of SrcString. | ||
determ | (i,o,o),(i,i,o),(i,o,i),(i,i,i),(o,i,i) | Separates the first token in a string Remarks The fronttoken operates as if it were defined by the equation: String =(the concatenation of Token and RestString) | ||
determ | (i) | |||
determ | (i,i) | |||
determ | (i,o) | Return time-stamp with expiration | ||
determ | (i,o) | Generate integer random numbers | ||
determ | (i) | Remove a Fact from the matched internal facts section. The retract/1 predicate deletes the first Fact in the facts section that matches the given Fact. During backtracking, the rest of the matching facts are deleted. | ||
determ | (i) | Remove all matching facts from the matched internal facts section. | ||
determ | (i) | |||
determ | (i,i,o) | Locate a character sequence in a string Remarks The searchstring predicate returns the Position of the first occurrence of a substring SearchStr in another string SourceStr. The first character in SourceStr has position 1. The search is case sensitive. | ||
determ | INTEGER SECONDS | (i) | Suspend execution | |
determ | (o,o,o) | |||
determ | (i,o),(i,i),(o,i) | Convert between strings and integers | ||
determ | (i,o),(i,i),(i,i) | Correlate strings and their lengths Remarks (i, i) - Succeeds if String has Length characters, otherwise str_len(i, i) fails. (i, o) - Binds Length to the number of characters in String. (o, i) - Returns a string of Length spaces allocated on the global stack. | ||
determ | (i,i,i,o) | Return part of string Remarks The first character in Source has position 1. It is an error to address outside the string, except that it is not an error to ask for 0 characters at the extreme end of it. | ||
determ | (o,o) | Return home directory and name of program | ||
determ | STRING COMMAND | (i) | Execute a new OS shell Sends CommandString to the OS for execution. If the string is empty(""), the OS shell is activated in interactive mode. | |
determ | (i,i,o),(i,o,i) | Converts term into string and vice versa | ||
determ | (o,o,o,o) | Read the system time | ||
determ | REAL Ticket | (i) | Test time-stamp for expiration | |
determ | ||||
determ | (o,i),(i,o),(i,i) | Convert between upper and lower case characters Remarks The upper_lower predicate performs conversions between upper and lower case for either two strings or two characters. (i, o) - Binds LowerCase to the lower-case equivalent of UpperCase. (o, i) - Binds UpperCase to the upper-case equivalent of LowerCase. (i, i) - This flow version is different from the other two. It succeeds if the two strings would be equal if they both were either all upper case or all lower-case. In other words, upper_lower (i, i) provides a case-insensitive string comparison. |