I am trying to optimize the rendering code.  Things could, indeed, be made
more efficient if one didn't care about multi-byte encodings.  Of course,
we should care about them.  ANyway, while optimizing, I had some
questions:

1. There is no guarantee that every bit of text in a record is followed
eventually by a null, right?  (There is, e.g., no guarantee that there is
a function at the end of a record, or a terminating null?)

2. Can multi-byte encoded texts have nulls that do not signal the end of
the string, i.e., nulls in the middle of multi-byte characters?  (I assume
there can't be nulls at the start of them--if there can, our code is in
trouble.)

3. At one point in the code I'd like to skip to the next function or to a
specified offset N in a string, whichever is closer.  Any bright ideas on
how to do this quickly?  Of course the easy way is to loop using
TxtGlueGetNextChar().  But TxtGlueGetNextChar(), I expect, slows things
down.  If the answer to #2 is negative, then this is easy--I just scan
ahead character by character to a null. 

I might just have to make some alternate code for 8-bit encodings.

Alex

--
Dr. Alexander R. Pruss  || e-mail: [EMAIL PROTECTED]
Philosophy Department   || online papers and home page:
Georgetown University   ||  www.georgetown.edu/faculty/ap85
Washington, DC 20057    ||
U.S.A.                  ||
-----------------------------------------------------------------------------
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)

_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to