Skip to main content

Operations with Areas

Operations with Distances

Operations with Numeric Data Types

Operations with Rectangles and Regions

String Operations

Function

Description

String Chr( Int )

Returns a string using the specified Unicode code of the character (code must be written in decimal system).

String LCase( String )

Returns a string obtained from the specified string by changing all of its characters to lower case.

String RealToStrVariants( Real value, String fractionalPartSeparators, Int maxDigitsCountInFractionalPart = 2 )

Creates string representations, separated by a vertical bar (”|”), for the specified real number “value,” decimal separators fractionalPartSeparators, and the maximum number of digits in the fractional part. For example, for the arguments 19, ”.,”, 2 the result is “19|19.0|19.00|19,0|19,00”.

String Str( Int )
String Str( Logic )
String Str( Real )
String Str( XInterval )
String Str( YInterval )
String Str( DistInterval )
String Str( FuzzyRect )
String Str( Hypothesis )
String Str( RectArray )
String Str( Region )
String Str( Area )
String Str( Quality )
String Str( Distance )
String Str( PageInterval )

String representation of a data type.

String RemoveSpaces( String )

Returns a string obtained from the specified string by removing all of the spaces in the string.

String UCase( String )

Returns a string obtained from the specified string by changing all of its characters to upper case.

Access to XML Files

Type Conversion and Checks

Function

Description

Logic IsReal( String numberString, String separators = ”.,”, Logic isStrictMode = false )

Checks that the inputString string can be safely converted to a real number. The list of allowed decimal separators is set by the “separators” argument.

Logic IsRealFuzzy( String, String separators = defaultDecimalSeparators, Logic isStrictMode = false )

Checks if the string inputString can be safely converted into a real number taking into account possible recognition errors in the string.

Logic IsInt( String inputString, Logic isStrictMode = false )

Checks that the inputString string can be safely converted to an integer number.

Logic IsIntFuzzy( String inputString, Logic isStrictMode = false )

Checks if the string inputString can be safely converted into an integer taking into account possible recognition errors in the string.

Real StrToRealFuzzy( String, String separators = defaultDecimalSeparators, Logic isStrictMode = false )

Returns the result of converting the value of the string inputString into a real number taking into account possible recognition errors.

Real StrToReal( String numberString, String separators = ”.,”, Logic isStrictMode = false )

Returns the result of converting the inputString string into a real number. Spaces are omitted.

Example
Real realValue;
String valueFromDocument = SearchElements.StaticText.Value();
Logic canBeConverted = IsReal(valueFromDocument, ”.”);
if(canBeConverted) then realValue = StrToReal(valueFromDocument, ”.”);

Int StrToInt( String inputString, Logic isStrictMode = false )

Returns the result of converting the inputString string value into an integer. Spaces are omitted.

Example
Int integralValue;
String valueFromDocument = SearchElements.StaticText.Value();
Logic canBeConverted = IsInt(valueFromDocument, true);
if(canBeConverted) then integralValue = StrToInt(valueFromDocument, true);

Int StrToIntFuzzy( String, Logic isStrictMode = false )

Returns the result of converting the value of the string inputString into an integer taking into account possible recognition errors.

Int LogicToInt( Logic value )

Returns “1” if the value is true and “0” if the value is false.

Operations with Coordinates

Access to Data Catalogs

To access a data catalog, you should first create a skill parameter referring to that catalog, and then use the parameter name in the method calls.

Access to Skill Parameters of Type Text

Miscellaneous