regexxer r636 - in trunk: . src



Author: daniel
Date: 2007-01-14 10:31:47 +0000 (Sun, 14 Jan 2007)
New Revision: 636
ViewCVS link: http://svn.gnome.org/viewcvs/regexxer?rev=636&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/translation.cc
   trunk/src/translation.h
Log:
* src/translation.{cc,h} (Util::compose_argv): New function with
the functionality of compose_impl() but using a format string of
type const char*.  This implementation operates on bytes instead of
Unicode code points, and copies the chunks between placeholders in
one go instead of each character separately.
(Util::compose): Call compose_argv() instead of compose_impl()
and change the type of the format argument to const char* because
the format string really should be a string literal.  Also, inline
all of these overloads since they just forward their arguments to
compose_argv() anyway, so that inlining actually reduces code size.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]