cvs commit: src/lib/libc/locale runetype.c tolower.c toupper.c

Tim J. Robbins tjr at FreeBSD.org
Sun May 9 06:04:50 PDT 2004


tjr         2004/05/09 06:04:49 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/locale      runetype.c tolower.c toupper.c 
  Log:
  Use a binary search to find the range containing a character in
  RuneRange arrays. This is much faster when there are hundreds of
  ranges (as is the case in UTF-8 locales) and was inspired by a
  similar change made by Apple in Darwin.
  
  Revision  Changes    Path
  1.9       +10 -6     src/lib/libc/locale/runetype.c
  1.9       +12 -7     src/lib/libc/locale/tolower.c
  1.9       +12 -7     src/lib/libc/locale/toupper.c


More information about the cvs-all mailing list