company logo

String :: fill - Fill the String

The function fills the String object with iCount times of the content of cString adopting the coding type. If cString is empty or iCount is zero, the calling String is cleared. If iCount is less than 0, the function throws an exception.

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

Implementation details

odaba::String & String  :: fill ( odaba::String &cString, int32 iCount )
  • cString - Constant string object

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

  • iCount - Number of items

    The value contains the number of items to be processed or stored in a collection.