company logo

String :: appendWord - Append text at end separated by comma

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

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

Implementation details

odaba::String & String  :: appendWord ( 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).