[BACK]Return to utf8.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/utf8.c between version 1.5 and 1.6

version 1.5, 2009/10/20 22:17:33 version 1.6, 2011/01/03 23:35:22
Line 318 
Line 318 
         return (value);          return (value);
 }  }
   
   /* Split a two-byte UTF-8 character. */
   u_int
   utf8_split2(u_int uc, u_char *ptr)
   {
           if (uc > 0x7f) {
                   ptr[0] = (uc >> 6) | 0xc0;
                   ptr[1] = (uc & 0x3f) | 0x80;
                   return (2);
           }
           ptr[0] = uc;
           return (1);
   }
   
 /* Lookup width of UTF-8 data in tree. */  /* Lookup width of UTF-8 data in tree. */
 u_int  u_int
 utf8_width(const struct utf8_data *utf8data)  utf8_width(const struct utf8_data *utf8data)

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6