Ticket #3012: diff-src-folder.diff
File diff-src-folder.diff, 1.5 KB (added by , 16 years ago) |
---|
-
apps/terminal/UTF8Char.h
41 41 42 42 static int32 ByteCount(char firstChar) 43 43 { 44 // Note, this does not recognize invalid chars 45 uint32 c = firstChar; 46 if (c < 0x80) 47 return 1; 48 if (c < 0xe0) 49 return 2; 50 return c < 0xf0 ? 3 : 4; 44 if ((uchar)firstChar < 128) return 1; else 45 if ((uchar)firstChar >= 128 + 64 + 32 + 16) return 4; else 46 if ((uchar)firstChar >= 128 + 64 + 32) return 3; else 47 if ((uchar)firstChar >= 128 + 64) return 2; else 48 return 0; // No valid UTF-8 Byte? 51 49 } 52 50 53 51 int32 ByteCount() const -
bin/coreutils/lib/Jamfile
94 94 # lstat-stub.c 95 95 # lstat.c 96 96 # malloc.c 97 mbchar.c 97 98 mbscasecmp.c 98 99 mbswidth.c 99 100 md5.c … … 165 166 # strncasecmp.c 166 167 strndup.c 167 168 strnlen.c 169 strnlen1.c 168 170 strnumcmp.c 169 171 # strpbrk.c 170 172 # strstr.c -
bin/tar/lib/Jamfile
45 45 imaxtostr.c 46 46 lchown.c 47 47 malloc.c 48 mbchar.c 48 49 mbscasecmp.c 49 50 mempcpy.c 50 51 memrchr.c … … 76 77 stpcpy.c 77 78 strcasecmp.c 78 79 stripslash.c 80 strnlen1.c 79 81 strncasecmp.c 80 82 strndup.c 81 83 strtol.c