Utilities.AdjustLineBreaks Method

Applies to TestComplete 15.47, last modified on January 20, 2023
This method is obsolete. See the Remarks section below.

Description

Replaces all single carriage return (CR) or linefeed (LF) symbols in the string specified by the Str parameter with the carriage return and linefeed pair (CR/LF) and returns the resulting string.

Declaration

Utilities.AdjustLineBreaks(Str)

Str [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Str

Specifies the string in which all single carriage return and linefeed symbols should be replaced with carriage return and linefeed pairs (CR/LF).

Result Value

The string in which all single carriage return and linefeed symbols are replaced with carriage return and linefeed pairs (CR/LF).

Remarks

Note that function replaces only single LF or CR character. It will not replace characters if it meets the pair CR/LF. However, symbols in the pair LF/CR are considered as single LF and CR characters and are replaced.

This method is obsolete. It is supported for backward compatibility only. To process strings, use the methods of the aqString object.

See Also

Replace Method
Trim Method
Find Method

Highlight search results