Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXStringDict Class Reference

#include <FXStringDict.h>

Inheritance diagram for FXStringDict:

FXDict FXObject List of all members.

Public Methods

 FXStringDict ()
 Construct a string dictionary.

const FXchar * insert (const FXchar *ky, const FXchar *str, FXbool mrk=FALSE)
 Insert a new string indexed by key, with given mark flag.

const FXchar * replace (const FXchar *ky, const FXchar *str, FXbool mrk=FALSE)
 Replace or insert a new string indexed by key, unless given mark is lower that the existing mark.

const FXchar * remove (const FXchar *ky)
 Remove entry indexed by key.

const FXchar * find (const FXchar *ky) const
 Return the entry indexed by key, or return NULL if the key does not exist.

const FXchar * data (FXuint pos) const
 Return the string at position pos.

virtual ~FXStringDict ()
 Destructor.


Detailed Description

String dictionary maps a character string to a character string. The inserted strings are copied when they're inserted.