CoreClasses REALbasic Plugin

StringArray Class

StringArray is a high speed relocatable string array class.

The string array is different from REALbasic array since a string array can be inherited, strings can be sorted, items can be swapped, plugins can use it for cross talk, and it has a iterator interface.

Object
   StringArray

class StringArray implements

IStringIterator

Constructors

StringArrayThe default constructor for the StringArray class.
StringArrayUse this constructor to construct a instance of the array and have influence on the grow rate of the array.

Methods

AddItemsUse this method to add multiple strings from any container that implements the IStringIterator interface.
AppendUse this method to append a string to the array.
CountUse this function to get the element count from the array.
GetNextUse to get next item from the StringArray.
HasNextUse to get info if there are more items in the StringArray.
InsertUse this method to insert a string to the array.
ItemUse this setter/getter function to read or write to a item in the array.
MoveFirstUse to reset the iterator in the StringArray.
PeekNextUse this function to peek at next item from the StringArray without causing iteration.
RemoveUse this method to remove a single string from the array.
RemoveUse this method to remove strings from the array.
ResizeUse this method to resize the array.
SortUse this method to sort the array.
SwapUse this method to swap two objects in the array.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86