previous up next     contents index
Next: wxMediaWordbreakMap::wxMediaWordbreakMap Up: wxMediaWordbreakMap: wxObject Previous: wxMediaWordbreakMap: wxObject

wxMediaWordbreakMap::map

  char map[256]

This array contains the mapping information. It can be accessed/set directly, or through SetMap and GetMap. Information for each character is stored in the array at the location corresponding to the character's ASCII value.

The value is a bitwise OR for some combination of   wxBREAK_FOR_CARET,   wxBREAK_FOR_LINE,   wxBREAK_FOR_SELECTION,   wxBREAK_FOR_USER_1, and   wxBREAK_FOR_USER_2. For example, if   wxBREAK_FOR_CARET is present, then this character is a ``non-breaking'' character for caret-movement words, and so on. Each stream of non-breaking characters is a single word.

When a wordbreak map is created, all alpha-numeric characters are initialized with wxBREAK_FOR_CARET + wxBREAK_FOR_LINE + wxBREAK_FOR_SELECTION. All other non-space characters except ``-'' are initialized with wxBREAK_FOR_LINE. All space characters and ``-'' are initialized with 0.



PLT