Jump to content

Support class list: Difference between revisions

From NikiWiki
Added some methods
Cla (talk | contribs)
removed obsolete code
Line 2: Line 2:


* NOMArray: NOMObject:Base class for arrays
* NOMArray: NOMObject:Base class for arrays
** length(): This method queries the length (or size) of the array
** length(): This method queries the length of the array


* NOMPtrArray:NOMArray:An array class holding pointers on data.
* NOMPtrArray:NOMArray:An array class holding pointers on data.

Revision as of 11:31, 26 August 2007

<ClassTree title="Support classes (Foundation)">

  • NOMArray: NOMObject:Base class for arrays
    • length(): This method queries the length of the array
  • NOMPtrArray:NOMArray:An array class holding pointers on data.
    • append(gpointer* pItem):Append an item to the end of the array.
    • nomInit(): Override to initialize the GPtrArray.
  • NOMObjectArray:NOMPtrArray:Array class holding NOM objects. It's possible to set the type of object an array is supposed to hold. When trying to add an object the type is checked and if it's the correct class (or a subclass) it will be accepted.


  • NOMString:NOMObject:A generic string class holding UTF-8 strings.
    • NOMString* assign(NOMString *nomString)
    • NOMString* append(NOMString *nomString)
    • NOMString* prepend(NOMString *nomString)
    • ulong length(): Returns the length of the string in chars. Note that the byte length may be higher.
    • NOMString* truncate(ulong ulNewLen)