company logo

String :: prepend - Insert a String at the beginning

The function inserts the string cString at the beginning of this String object and returns a reference to this String object.

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

Implementation details

odaba::String & String  :: prepend ( odaba::String &cString )
  • cString - Constant string object

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