Ticket #7743: utf.hpp.patch
File utf.hpp.patch, 902 bytes (added by , 10 years ago) |
---|
-
utf.hpp
old new 219 219 if(BOOST_LOCALE_UNLIKELY(p==e)) 220 220 return incomplete; 221 221 tmp = *p++; 222 if (!is_trail(tmp)) 223 return illegal; 222 224 c = (c << 6) | ( tmp & 0x3F); 223 225 case 2: 224 226 if(BOOST_LOCALE_UNLIKELY(p==e)) 225 227 return incomplete; 226 228 tmp = *p++; 229 if (!is_trail(tmp)) 230 return illegal; 227 231 c = (c << 6) | ( tmp & 0x3F); 228 232 case 1: 229 233 if(BOOST_LOCALE_UNLIKELY(p==e)) 230 234 return incomplete; 231 235 tmp = *p++; 236 if (!is_trail(tmp)) 237 return illegal; 232 238 c = (c << 6) | ( tmp & 0x3F); 233 239 } 234 240