Abort immediately the execution.
The cause value is one of the pcerr_XXXX constant.
If specified, explanation will be used to explain the abort reasons in the Output window.
Return the absolute value of the x parameter (i.e. it returns x without sign).
Returns the inverse value of the cosine function. Returned angles are in radians,
Returns the number of arguments on the command line.
Returns the valueth argument from the command line. Argument #0 is Macrocoder executable.
Returns the inverse value of the sine function. Returned angles are in radians,
Computes the inverse tangent of y/x using the signs of arguments to correctly determine quadrant. All angles are expressed in radians.
Arc tangent of arg in radians in the range of [-/2; /2] radians.
Inverts in parameter n all bits indicated by flg.
// Set n to 00001111
var Int n = 0x0F;
// Numbering the bits 87654321, invert bits 654.
// For this reason we pass as 'flg' a mask where the bits
// we want to invert are set to 1: 00111000 (only bits 6, 5 and 4
// have been set to 1).
// Now let's call the bitInvert function
bitInvert (n, 0b00111000);
// Now bits 4, 5 and 6
// Print the result:
system ().msg << "n=" << String::formatInt (n, 2, 8) << endl;
// Result is: n=00110111
Returns true if all bits specified in flg are set to 1 in n.
Returns true if none of the bits specified in flg are set to 1 in n.
Clear to 0 all the bits of n that have been listed to 1 in flg.
Set to 1 all the bits of n that have been listed to 1 in flg.
Convert the given value i into a Float value.
Truncate the given value i into a Int value. In case of Float, the decimal part is truncated; in case the value is out of range for an Int, only the lower bits are kept.
This function returns the smallest integral value not less than x.
Retuns a string formed of one single character whose UNICODE is value. The first 127 UNICODE characters match the ASCII character set, so this function can be used to convert ASCII values into a string.
Compare v1 with v2. It returns -1 if v1<v2; it returns 0 if v1==v2; it returns 1 if v1>v2.
Copies file sourceFile to targetFile. Parameter targetFile can be a file name or a directory.
Returns the cosine of a radian angle x.
Returns the hyperbolic cosine of x.
Returns the number of bits set to 1 inside n1., For example, if n1 is 01011110, it returns 5 (i.e. 5 bits are set to 1).
Calculate the CRC-32 of the given parameter.
CRC-32 of multiple elements can be obtained by feeding the previous CRC-32 to the prevCrc parameter of the following crc32 function.
The example below calculates the CRC-32 of the string "foobar-hello" in two steps:
var Int myCrc;
myCrc = crc32 ("foobar-");
myCrc = crc32 ("hello", myCrc);
Returns the current time in milliseconds.
TBD
TBD.
TBD
TBD.
Given a value in degrees, returns the same value converted to radians. See also rad2deg.
Given an errorCode of the pcerr_XXX family, it returns a textual description of the error.
Given an unicode character (an integer in the range 0x0000 to 0xFFFF), it returns a readable description of the character.
Returns a string containing all the attributes and values contained by any object. This function is useful to quickly log or display the contents of objects while debugging an implementation.
Returns true if an object is dynamic, i.e. it is suitable to be used as a variant or array element.
TBD.
Returns e raised to the power of x.
Returns true if the filesystem is case sensitive, like in UNIX and Linux. Returns false if not case sensitive, like under Windows.
Returns true if the filesystem uses backslash for directory separation (e.g. C:\tmp), like Windows; returns false if it usese slashes (e.g. /usr/bin) like UNIX and Linux.
Force a value "v" to stay in the range "[a,b)". If a>b, the range is intended as "(b,a]". If a==b, the value "v" is forced = a.
Returns the largest integer that is smaller than or equal to x (ie: rounds downs the nearest integer).
Returns the remainder when x is divided by y.
Return the absolute path for the given file starting from the current global directory or empty string in case of error.
In n1, invert all bits that are set to 1 in flg.
Returns a value identical to n1 where all bits set to 1 in flg have been zeroed.
Returns a value identical to n1 where all bits set to 1 in flg have been set to one.
TBD
Given a 64-bit Huge value h, it returns its higher 32-bit Int value.
Given a 64-bit Huge value h, it returns its lower 32-bit Int value.
Once a JPEG file has been loaded in binary form in the jpeg object, it returns its width and height in pixels.
TBD
Returns the full pathname of the current target project.
Returns a string containing the path where the target project is.
For example, if the target project is "C:\MyDir\MyProject\prj.fct", it will return "C:\MyDir\MyProject\" including the trailing slash or backslah.
Returns true if dir exists and it is a directory.
Returns true if the given path exists and it is a file (i.e. not a directory).
Return true if the object r1 is a lifecycle instance.
Returns true if r1 and r2 are actually referring to the same object.
Joins the given strings together using separator between each one of them.
Returns the lower case version of the given unicode character.
Combines a fraction x and an exponent n into a floating-point value.
Returns the combined localized version of formed by s and GLocator loc.
Returns the logarithm of x to the base of 10.
Returns the logarithm of x to the base of e.
Returns the highest value among v1 and v2. See also min.
Returns the lowest value among v1 and v2. See also max.
Creates the given directory creating also the intermediate directory if missing.
If the given directory already exists, it ends without any error.
In case of error, the mkDir version will abort, while the mkDirRet version will return a pcerr_XXXX constant explaining the result.
Breaks value into the integral and fractional parts, each of which has the same sign as the argument. They return the fractional part, and store the integral part (as a floating-point number) in ip.
Returns an internal unique object identifier.
Returns technical information about an object. It reports the object type and its internal instance id.
Computes x raised to the power of y.
Executes the proportion a : b = c : x and it returns x.
Given a value in radians, returns the same value converted in degrees. See also deg2rad.
TBD
TBD.
Removes the given directory.
In case of error, the rmDir version will abort, while the rmDirRet version will return a pcerr_XXXX constant explaining the result.
Rounds the floating point value i and it returns its nearest integer.
Given a 64-bit Huge value h, it sets its lower 32-bit using Int value i.
Given a 64-bit Huge value h, it sets its lower 32-bit using Int value i.
Signals that some error occurred. Once signalled, Macrocoder will continue till the end of the phase and then it will abort with an error.
Returns the sine of x.
Returns the hyperbolic sine of x.
Given the array of String values, it sorts it alphabetically.
If caseUnSensitive is true, comparison will not be case sensitive.
Sort an array of integers.
Returns the square root of x.
Return the value converted to a String.
Verifyes that text is a valid identifier; if so, it will return an empty string. If not, it will return a string explaining why it is not a valid identifier.
Verifyes that text is a valid integer; if so, it will return an empty string. If not, it will return a string explaining why it is not a valid integer.
Verifyes that text is a valid type name; if so, it will return an empty string. If not, it will return a string explaining why it is not a valid type name.
Swap n1 with n2.
Returns the global System object, from which many resources can be reached.
Returns the tangent of x.
Returns the hyperbolic tangent of x.
Returns the uppercase version of the given unicode character.
Returns true if the indicated reference obj is not null. It can be used to see whether a reference is set or an object returned a valid reference.
Add an hyperlinked string topicString connected to help topic with id topicId.
See TextStream::resetIndent().
Set the automatic indenting of the output stream.
See incIndent() for more details.
Inherited from TextStream, not to be used on ActiveText, already bound to the 'Output' pane.
See TextStream::write().
Add the given octet n, from 0 to 255, to the Binary object.
The binary buffer is prepared with n elements set to zero.
Delete all the contents and leave the Binary object empty.
Compare this Binary with other. Return -1 if this < other, 0 if equal, 1 otherwise.
Extract the given range of the binary data in hex form (lowercase). It returns a string like "a1cfb30094..." representing in ASCII hex values the internal binary data. If the requested length is over the end, it returns the available characters (even empty string).
Extract length octets starting from octet firstChar (first is 0) from this object and print it in a compact readable form.
All octets having an ASCII corresponding character as printed, while other characters are escaped with \xNN, where NN is the hex value of the octet.
Returns the number of octets contained in the Binary object.
Decode the text hex string (e.g. "fc2012a9") and saves it in binary form in the Binary object.
Loads the given file into the Binary object.
Returns one of the pcerr_XXXX constant.
Resize the buffer. The buffer can be truncated or extended. The extended part is prepared with 0.
Writes the binary data to the indicated file, which will be overwritten.
Returns one of the pcerr_XXXX constant.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
Starting at i=first, it finds the first point in the DecoString where the format changes from position i-1 to i. Format at position -1 (when 'first' is specified as 0) is considered with all unset.
It returns:
- the format at i-1 (to be dropped completely)
- the format at i (to be activated completely)
- (as return value) the length of the homogeneus sequence starting at position
If returns 0, no more text is available. In that case, prevFormat is the set of items to be dropped and nextFormat is all reset.
Extract the line containing the given range and return it.
Parameter "firstOffset" is the distance of "first" from the beginning of the returned string. Parameter "lineNumber" returns the line number considering 1 as the first line.
Searches for string s inside the string, starting from position startingFrom. Returns the position or string_NOT_FOUND if not found.
The findFlags parameter is any of the find_XXX flags combined with | (binary or).
The findNoCase version is the same as find with the find_IGNORE_CASE flag set.
Returns true if all the decostring characters have identical format settings.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
Open the given fileName for reading. The operation the function returns a pcerr_XXXX constant explaining the result.
TBD.
TBD.
TBD.
TBD.
Open the given fileName. The operation the function returns a pcerr_XXXX constant explaining the result.
TBD.
TBD.
TBD.
TBD
TBD
TBD.
TBD.
Open the given fileName for writing. The operation the function returns a pcerr_XXXX constant explaining the result.
See TextStream::resetIndent().
See TextStream::write().
TBD.
TBD.
TBD.
Given a FilePath containing a base path, it returns a string containing the fullpath of inputFilePath. If inputFilePath is already absoulte, it is returned unchanged; otherwise, it is returned calculated relatively to the FilePath.
var FilePath basePath;
basePath.parse ("C:\\tmp");
var String fullPath;
fullPath = basePath.convertToFullPath ("foo\\bar");
FullPath will be set to "C:\tmp\foo\bar".
TBD.
TBD.
TBD
Internal method used to implement the << operator. Writes on o the stored path in readable mode.
TBD.
Returns a new FilePath containing an absolute path. If this path is already absolute, it is returned as is. If it is relative, it is combined with basePath, which must be absolute, to form an absolute path.
If no basePath is specified, it uses the same as returned by getCurrentPath.
Returns the content of the FilePath object in a O/S compatible string.
Paramenter entriesToPrint can be set to the number of components to print; for example, if "C:\Dir1\Dir2\File3.txt", a entriesToPrint of 2 will print "C:\Dir1\Dir2". If set to fpth_GET_ALL, all entries will be printed always.
Parameter dirMode can be one of the fpt_DIR_xxxx flags.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
Return the file path part of a complete filename.
For example, from "C:\tmp\abc.txt" it returns "C:\tmp".
Returns the complete path in a String form.
The string is composed using UNIX slashes (/) or Windows backslashes (\) according to the dirMode parameter.
Return this path expressed relatively to basePath.
For example, if this path is "C:\foo\bar\text.txt" and basePath is "C:\foo\xyz", this method will return "..\bar\text.txt".
Parameter caseMode is set according to the macro values fpth_CASE_xxx.
In a file path, it returns the rightmost component. If the file path represents a file name, it returns the file name itself.
For example, if the file path is "C:\first\second\hello.txt", the getTopNamePart method would return "hello.txt".
TBD.
TBD.
TBD.
TBD.
If this path is not already absolute, it is combined with basePath, which must be absolute, to form an absolute path.
If basePath is not specified, it is taken FilePath::getCurrent ().
Executes the parsing of pathString; if the path in the string can not be parsed, this method aborts automatically.
See also parseRet if a result is needed instead of automatically aborting.
Recursively creates the directory specified by this; all the missing directories are also created.
This method aborts automatically in case of error.
Recursively creates the directory specified by this path object. All the missing directories are also created.
This method returns a pcerr_XXXX constant explaining the result.
TBD.
TBD
TBD.
Removes the directory specified by this path object. In case of error, it aborts.
Removes the directory specified by this path object..
This method returns a pcerr_XXXX constant explaining the result.
TBD.
TBD.
TBD.
TBD.
TBD
TBD.
TBD
TBD
TBD.
TBD
TBD.
TBD
TBD
TBD.
TBD
TBD.
TBD
TBD
TBD
TBD.
TBD.
TBD
TBD
TBD
TBD.
TBD.
TBD
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD
TBD
TBD.
TBD
Set the LocDecoString object reading the data from the input parameter.
TBD.
TBD
TBD
TBD.
TBD.
TBD.
TBD.
TBD
TBD
TBD
TBD.
TBD.
TBD.
TBD
TBD
TBD
TBD.
TBD.
Set the LocString object reading the data from the input parameter.
Returns the numeric in a readable string form.
Returns the internal value converted to a Float.
Returns the internal value converted to a Huge.
Returns the internal value converted to a Int; truncation may occur if internal number is too big.
Returns the type of the contained data among (see numeric_XXX macros
Returns true if the Numeric object contains a valid value.
Parse the value from a string, starting from firstChar and reading no more than length characters. Returns the position of the first not parsed character.
Set the Numeric value.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
See TextStream::resetIndent().
See TextStream::write().
TBD.
TBD.
Appends the string s to the end.
var String x = "Hello ";
x.append ("world");
// Now 'x' contains "Hello world"
Append the substring length characters starting from first of s to the end of the target string.
If length is too big, only the available characters are copied.
var String x = "Hello ";
var String y = "my world is nice";
y.appendSubString (y, 3, 5);
// Now 'x' contains "Hello world"
Return the CRC-32 of the string.
Change the string to lower-case letters.
Change the string to upper-case letters.
Clear the contents of the string, that will become an empty string.
Compare the string with other. Comparison is case sensitive. It returns -1 if this string is smaller than other; 0 if identical; 1 if this string is bigger than other.
If len is specified, only the first len characters of both strings are considered when comparing.
See also compareNoCase for case insensitive comparison.
Compare the string with other. Comparison is not case sensitive. It returns -1 if this string is smaller than other; 0 if identical; 1 if this string is bigger than other.
If len is specified, only the first len characters of both strings are considered when comparing.
See also compare for case sensitive comparison.
Converts the EOL of the current string and writes them to target.
Parameter requestedEol must be set to:
eolCR if end-of-lines must be implemented with CR (ASCII 0x0D);
eolLF if end-of-lines must be implemented with LF (ASCII 0x0A);
eolCRLF if end-of-lines must be implemented with CR-LF (ASCII 0x0D 0x0A);
It returns one of among eolCR, eolLF or eolCRLF according to the previous EOL implementation of the input string. If the input string has no EOL, it returns eolUNKNOWN.
Returns the string converted to a compact form compatible to C identifiers. Multiple sequences of characters out the range [A-Za-z0-9] characters are converted to underscore (_).
If the resulting string begins with a number, an underscore is automatically prefixed.
The returned string will be an non-empty valid C identifier.
It is not guaranteed that different strings will generated different identifiers (for example "A;B" and "A;,.B" both generate "A_B").
Delete the given range within the string. If length is too long, the part from first to the end of the string will be deleted..
Returns the string encoded with ANSI-C escapes.
For example, the string "That's" will be returned as "That\'s".
In the string both single quote (') and double (") are escaped, so the resulting string can be used in C as a single character and a string.
Returns the string encoded with HTML escapes (e.g. """, "&", etc.).
Returns the string encoded with Java string escapes.
For example, the string "That's" will be returned as "That\'s".
Returns a string encoded with URI/URL UTF-8 percent escapes.
For example "my name" will be returned as "my%20name".
Returns a substring starting at from and len characters long. Values can safely been specified out of range.
Extracts and returns the complete lines of this that contain the range starting at first and of length length.
It returns the position where the first line begins (firstOffset) and its lineNumber, calling "1" the frist line.
Searches for string s inside the string, starting from position startingFrom. Returns the position or string_NOT_FOUND if not found.
The findFlags parameter is any of the find_XXX flags combined with | (binary or).
The findNoCase version is the same as find with the find_IGNORE_CASE flag set.
Returns a string containing a somewhat readable version of any object.
Formats and returns the given Float value in a readable string.
Formats and returns the given Int or Huge value in a readable string.
The base parameter sets the base to be used to display the number. For example, number 123 is formatted as 7B if base 16 is chosen.
Note that negative values are shown only when base 10 is selected; otherwise, the numbers are considered as unsingned of the same number of bits (32-bit unsigned for Int, 64-bit unsigned for Huge).
Parameter base can range from 2 to 36. In case base is greater than 10, the required number of alphabetic letters A..Z will be used.
Returns a string containing a single character which is the representation of the UNICODE value.
For example, formatUnicode(65) returns a string containing an upper case 'A'.
Converts this string into a unformatted DecoString
Returns the UNICODE character at position pos (where 0 is first character). If out of range, it returns kUNICODE_INVALID.
Returns the final sequence formed of ".xxx" of a string without the leading dot. It can be used to get the extension of filenames.
Returns a copy of this string changed to lower case.
Returns a string composed by a substring of this string. The substring is length characters long and it is extracted starting from first (where 0 is the first character.
Range will be automatically fit to the string if too big.
Returns a copy of this string changed to upper case.
Returns true if this string matches the globString expression.
If ignoreCase is true, case will be ignored while matching.
The globString expression is similar to the glob expressions used by filesystems: character * (star) matches any sequence, while ? (question mark) matches any single character.
Insert string s at position in the target string. If position is after the end of the string, s will be appended to the end.
Insert a portion starting at first and of given length of string s at position in the target string. If position is after the end of the string, s will be appended to the end.
Returns the number of characters contained in the string.
Opens fileName for reading and reads its ASCII contents to this string.
If the reading operation fails (for example, because the file does not exists), the application aborts automatically.
Searches all the occurences of the s string in this string and replaces them with string r.
Replaces the extension in a file name with newExtension. For example, "file.doc" can be renamed to "file.txt" by specifying "txt" as newExtension.
If the last entry doesn't have an extension, it is simply added.
Reduce a long string to a shortened version if longer than maxLen characters. Exceeding characters will be removed from the center of the string and replaced by three dots "...".
Special characters (newlines, tabs and so on) will be C-escaped (\n, \t, etc.) for easier reading.
This function can be used to display strings on message windows keeping them to a reasonable length.
Splits this string into substrings using separator as the separator string. Resulting split strings are saved to array strings.
Splits a string containing a sequence of quoted strings.
For example, a string formed by "foo" "bar" is split into two separate strings.
Opens fileName for wrriting and writes its contents to it in ASCII form.
If the writing operation fails (for example, because the file is not writable), the application aborts automatically.
Returns the number of items in the map.
Clears the contents of the StringMap.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
The concatenate methods are used to write data on the stream.
For example:
system ().msg.concatenate("This is ").concatenate(3+a).concatenate(endl);
See also the << operator that does the same thing with a more readable syntax.
Decreases the indent level of one tab.
See incIndent() for more details.
Increases the indent level of one tab. Once called, all output will be written indented by the requested number of tabs.
It can be used for example to indent the text in the generated source files.
system().msg << "Hello" << endl;
system().msg.incIndent();
system().msg << "This is indented" << endl;
system().msg.decIndent();
system().msg << "Goodbye" << endl;
Produces the following output:
Hello
This is indented
Goodbye
See also decIndent().
Write on the stream.
For example:
system ().msg << "This is " << 3+a << endl;
Clear the automatic indenting of the output stream.
See incIndent() for more details.
Set the automatic indenting of the output stream.
See incIndent() for more details.
TBD.
Write on the stream the given value s.
Reset the time/date object to an "unset" status.
Compare this date with tx. Returns <0 if this time/date is before tx, ==0 if identical, >0 otherwise.
Expand the internal date/time in a DecomposedTime object so date/time details (day, month, etc.) can be separately accessed.
Returns the current local timezone in steps of 15 minutes (1=15', 4=+1h, -1=-15' etc.).
Set the Time object to the current time as of local time zone.
Set the Time object to the current time as of UTC time zone.
Returns true if the object contents are valid.
Set the Time object by reading the values from a DecomposedTime object. Parameters dayOfWeek and dayOfYear are ignored.
Set the internal date/time by spefying all the separate details.
Set the internal date/time by spefying all the separate details. The timezone value is automatically set to the local tz.
Set the internal date/time to the current local time.
Set the internal date/time to the current UTC time.
Set the internal date/time by spefying all the separate details. The timezone value is automatically set to the UTC tz.
Convert the internal date to local timezone.
Convert the internal date to UTC timezone.
String | endl | "\n" | End-of-line constant |
Constant value representing newline.
Example:
system().msg << "Hello world" << endl;
These constants are used by the String::convertEol method to determine how EOL (end of line) should be implemented.
Remind that some implementations (like MS-DOS and Windows) require lines to be terminated by CR-LF (ASCII 0x0D 0x0A) while others, like UNIX, require a simple LF (0x0A). Macrocoder implements internally EOL with LF (0x0A, "\r").
Int | eolCR | 0x00000001 (1) | EOL implemented with CR (ASCII 0x0D, "\n") |
Int | eolLF | 0x00000002 (2) | EOL implemented with CR (ASCII 0x0D, "\n") |
Int | eolCRLF | 0x00000000 (0) | EOL implemented with CR (ASCII 0x0D 0x0A, "\r\n") |
Int | eolUNKNOWN | 0x00000003 (3) | EOL implementation unknown |
Int | file_READ | 0x00000001 (1) | TBD |
Int | file_WRITE | 0x00000002 (2) | TBD |
TBD.
These constants are used by the String::find method to determine how search has to be execute.
Int | find_IGNORE_CASE | 0x00000001 (1) | ignore case in finding |
Int | find_MATCH_WHOLE_WORDS | 0x00000002 (2) | match whole words only |
Int | fpth_CASE_AUTO | 0x00000000 (0) | Use the default case relevance of the host O/S (i.e. case sensitive on UNIX, case insensitive on Windows) |
Int | fpth_CASE_ENFORCE | 0x00000001 (1) | Enforce case |
Int | fpth_CASE_IGNORE | 0x00000002 (2) | Ignore case |
Used by FilePath::getRelative method in the caseMode parameter.
Int | fpth_DIR_AUTO | 0x00000000 (0) | Automatically use backslash on Windows and slash on UNIX-like o/s |
Int | fpth_DIR_BACKSLASH | 0x00000002 (2) | Use Windows backslash (\) |
Int | fpth_DIR_SLASH | 0x00000001 (1) | Use UNIX slash (/) |
Used by FilePath::getPathAsString method.
Int | fpth_GET_ALL | 0xFFFFFFFF (-1) | Returns all entries of the path. |
Used by the FilePath::getAsString() method.
Int | kDECODIFF_BOLD | 0x00000001 (1) | Use bold font |
Int | kDECODIFF_FIXED | 0x00000008 (8) | Use fixed-size (non proportional) font |
Int | kDECODIFF_ITALIC | 0x00000002 (2) | Use italic font |
Int | kDECODIFF_UNDERLINE | 0x00000004 (4) | Activate underlineing |
Int | kDECODIFF_MODE_CODE | 0x00000000 (0) | Color the text as "code" |
Int | kDECODIFF_MODE_COMMENT | 0x00000002 (2) | Color the text as "comment" |
Int | kDECODIFF_MODE_FREETEXT | 0x00000001 (1) | Color the text as "freetext" |
Macros used by the DecoStringDiff::diffMode attribute and other related methods.
Int | kUNICODE_INVALID | 0x0000FFFF (65535) | Invalid UNICODE value - returned by some functions to represent failure |
UNICODE values.
Float | maxFloat | 1.7e+308 | Maximum Float value (1.7E+308) |
Maximum value that can be assigned to a Float type.
Int | maxInt | 0x7FFFFFFF (2147483647) | Maximum Int value (0x7FFFFFFF, 2147483647) |
Maximum value that can be assigned to a Int type.
Float | minFloat | -1.7e+308 | Minimum Float value (-1.7E+308) |
Minimum value that can be assigned to a Float type.
Int | minInt | 0x80000000 (-2147483648) | Maximum Int value (-2147483648) |
Minimum value that can be assigned to a Int type.
Int | numeric_FLOAT | 0x00000003 (3) | Numeric is a Float |
Int | numeric_HUGE | 0x00000002 (2) | Numeric is a Huge |
Int | numeric_INT | 0x00000001 (1) | Numeric is an Int |
Int | numeric_NONE | 0x00000000 (0) | Numeric is invalid or not set |
Returned by the Numeric::getType() method.
These constants are returned by many functions to describe the operation results.
Int | pcerr_OK | 0x00000000 (0) | No error. This is the value returned upon succesful requests. |
Int | pcerr_ABORTED | 0x00000008 (8) | Execution aborted after invocation of the abort command. |
Int | pcerr_ABSTRACT_VIRTUAL | 0x00000003 (3) | Abstract (unimplemented) function invoked. |
Int | pcerr_ACCESS_DENIED | 0x00000015 (21) | Access to the requested file has been denied (already in use, missing rights, etc.) |
Int | pcerr_ADD_INVALID_TO_CAULDRON | 0x0000000C (12) | Added an invalid object to the cauldron using the "lset.enroll" function. |
Int | pcerr_ADD_OWNED_TO_CAULDRON | 0x0000000B (11) | Attempted to add an owned object to the cauldron (lset.enroll); an object is owned if it is an attribute or an object already owned by an array or a variant. |
Int | pcerr_ARRAY_OUT_OF_RANGE | 0x00000001 (1) | Trying to access an array element out of the array range. |
Int | pcerr_ASSERTION_FAILED | 0x00000007 (7) | An assert(e) statement failed (expression e is false). |
Int | pcerr_COMPILE_ERROR | 0xFFFFFFFA (-6) | Compilation error. |
Int | pcerr_DIR_ALREADY_EXISTS | 0x00000014 (20) | Attempted to create a directory that already exists |
Int | pcerr_DIR_LINKS_LOOP | 0x00000016 (22) | Loop found in symlinks |
Int | pcerr_DIR_NOT_EMPTY | 0x0000001C (28) | The directory can not be removed/modified because it is not empty |
Int | pcerr_DIR_TO_MANY_LINKS | 0x00000017 (23) | Too many links |
Int | pcerr_DIVISION_BY_ZERO | 0x0000000E (14) | A division by zero has been executed. |
Int | pcerr_FILE_IS_CLOSED | 0xFFFFFFFC (-4) | Attempted to access a file that has been closed. |
Int | pcerr_FILE_NOT_FOUND | 0xFFFFFFFE (-2) | The requested file was not found. |
Int | pcerr_INVALID_CAST | 0x00000005 (5) | Cast can not be executed. |
Int | pcerr_INVALID_DIAGRAM | 0x00000012 (18) | The object is not a diagram. |
Int | pcerr_INVALID_ENV | 0x00000009 (9) | Invalid environment. |
Int | pcerr_INVALID_FILE_EXTENSION | 0x00000011 (17) | File extension is unknown. |
Int | pcerr_INVALID_FILENAME | 0xFFFFFFFD (-3) | Given filename contains invalid characters. |
Int | pcerr_LIFESET_LOOP_FOUND | 0x0000000D (13) | Lifesets have been specified forming a creation loop |
Int | pcerr_NAME_TOO_LONG | 0x00000018 (24) | Name too long |
Int | pcerr_NOS_PC | 0x00000019 (25) | TBD |
Int | pcerr_NOT_DIR | 0x0000001A (26) | The requested resource is not a directory |
Int | pcerr_NOT_XML_FILE | 0xFFFFFFF9 (-7) | The given file is not XML. |
Int | pcerr_NULL_REFERENCE | 0x00000004 (4) | Accessed a NULL reference |
Int | pcerr_READ_ONLY_FILE_SYSTEM | 0x0000001B (27) | Read only file system |
Int | pcerr_STACK_OVEFLOW | 0x00000006 (6) | Stack overflow: too many nested function calls have been executed. |
Int | pcerr_UNBOUND_ITERATOR | 0x00000002 (2) | N/A |
Int | pcerr_UNKNOWN_ERROR | 0xFFFFFFFF (-1) | Unknown error |
Int | pcerr_UNMANAGED_EXCEPTION | 0x0000000F (15) | N/A |
Int | pcerr_USER_ERROR | 0x00000013 (19) | Generic user-defined error |
Int | pcerr_VARIANT_IS_STATIC | 0x0000000A (10) | N/A |
Int | pcerr_VCPU_BUSY | 0x00000010 (16) | N/A |
Int | pcerr_XML_ERROR | 0xFFFFFFFB (-5) | Error parsing the XML file. |
Int | pcerr_OTHER_ERROR | 0xFFFFFFF8 (-8) | Other errors. |
Float | pi | 3.14159 | Mathematical PI constant. |
Value returned by find functions when no match is found.
Int | true | 0x00000001 (1) | Non-zero value, representing "true" boolean condition |
Int | false | 0x00000000 (0) | Zero value, representing "false" boolean condition |
Macrocoder does not have a dedicated "boolean" type but uses the "Int" for boolean operations. These two constants simply represent the two Int values used for the true and the false boolean condition.
Int | fDIR | 0x00000001 (1) | The directory item is a directory |
Flags used in the DirectoryItem::flags attribute.
TBD.
TBD.
TBD.
TBD.
TBD.
Set the mode (bold, italic, etc.) by combininig various flags. See kDECODIFF_xxx constant values for details.
Indicates the relative change of the size from the default font size. Negative values make the font smaller, while positive make it bigger.
TBD.
TBD.
TBD.
TBD.
TBD.
Day, 1..31
No. of day in the week, where 0=Sunday, 1=Monday, ..., 6=Saturday.
This value is calculated by the Time::decompose method; it is ignored by the Time::set method.
No. of day in the year, where 0=first day of the year, 364=last for non leaps.
This value is calculated by the Time::decompose method; it is ignored by the Time::set method.
Hours, 0..23
Microseconds, 0..999999
Minutes, 0..59
Month, 1..12
Seconds, 0..59
Timezone, in steps of 15 minutes (1=15', 4=+1h, -1=-15' etc.)
Four digit year (for example, 2016).
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
Within a GLocator, it identifies the source file.
Within a GLocator, it identifies a finer position.
Specifies the length of the sequence of characters, starting at sourceOffset, defined by the GLocator.
Specifies the position of the first character of the sequence of sourceLength characters defined by the GLocator.
Within a GLocator, it identifies a finer position.
Position of the value within the source texts.
Value associated to this object.
Position of the value within the source texts.
Value associated to this object.
Position of the value within the source texts.
Value associated to this object.
Position of the value within the source texts.
Value associated to this object.
String on which the text is streamed when using the << operator.
Object connected to the output window. Text streamed on the "msg" object is printed on the Macrocoder output window.
system().msg << "Hello world" << endl;
Binary stream associated to the TextStream wrapper object..