company logo

String :: appendLine - Append text in a new line

The function checks, whether the line is not empty and has no terminating new line character. In this case, a new line character will be inserted before appending the passed text. The updated string is returned.

Return value:  String object ( odaba::String & )

Implementation details

odaba::String & String  :: appendLine ( odaba::String &cString )

The function append the string passed in cString.

  • cString - Constant string object

    When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).