Commit graph

12 commits

Author SHA1 Message Date
ntrifunovic
d3640c792b Added the code point validity check to utf::append
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@28 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-26 18:33:43 +00:00
ntrifunovic
9e726bcc5e Changed the type for seqence_length from size_t to std::iterator_traits<octet_iterator>::difference_type
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@27 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-26 18:20:13 +00:00
ntrifunovic
5a0f1d3fc4 Changed unchecked::next to look more like utf8::next
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@25 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-26 17:41:09 +00:00
ntrifunovic
ad118a86e7 Fix for the bug [ 1528544 ] utf::next does not work correctly for 4-byte sequences
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@23 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-26 17:31:51 +00:00
ntrifunovic
abc6fd5428 Fix for the bug [ 1528369 ] utf8::find_invalid does not return the start of a seqence
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@21 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-25 17:20:44 +00:00
ntrifunovic
db36241cc1 Fixed conditions for impossible code points 0xfffe and 0xffff
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@20 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-25 13:16:11 +00:00
ntrifunovic
3dfa478146 Fixed a problem in find_invalid : reporting some valid code points as invalid.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@18 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-24 11:37:56 +00:00
ntrifunovic
9bf8c4ae63 Fixed a bug with internal::validate_next. Was comparing the lead byte against 80 dec instead 0x80.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@16 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-20 16:18:30 +00:00
ntrifunovic
f7e5f04087 Implemented utf::next in terms of internal::validate_next
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@15 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-20 15:47:16 +00:00
ntrifunovic
a0800ac8f1 Fix for the bugs [ 1524459 ] utf8::is_valid does not report some illegal code positions and [ 1525236 ] utf8::is_valid does not detect overlong sequences.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@14 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-20 15:27:09 +00:00
ntrifunovic
99ea6bec06 Grouped helper code and constants into internal namespace
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@13 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-20 11:45:56 +00:00
ntrifunovic
ac29285954 Initial import of the project tree
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@1 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-07 11:48:37 +00:00