[PREV - EMACS_TP]    [TOP]
NEXT

DATA_STRUCTURE


   The data structure is no problem, of course.

   The string "Cat" might become:

   @stp = (
      [ 'C', { loc  => 0,
               word => 'b',
               } ],
      [ 'a', { loc  => 1,                   David Sharnoff objects
               word => '',                  to this design, proposing
               } ],                         a lighter-weight alternative:
      [ 't', { loc  => 2,
               word => 'e',                    A string with tracking
               } ],                            metadata in a parallel
      );                                       array, with the string
                                               "boxed somehow" to
                                               prevent direct access.

   Jargon:                                     Perhaps the metadata could
    ctp - character-with-text-properties       be an array of arrays
    stp - string-with-text-properties          with key-value pairs
                                               flattened out?


--------
[NEXT - STRING_OPS]