Commit graph

47 commits

Author SHA1 Message Date
ntrifunovic
f4c3f0ab0f Fix for the bug ID: 3083640 - is_code_point_valid incorrectly returns false
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@117 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v2_0/test_data/negative/utf8_invalid.txt
2014-06-01 02:10:08 +02:00
ntrifunovic
045624abd7 Fix for [3167987]: prior moves it before start
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@116 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:07:52 +02:00
ntrifunovic
e628e37223 Completed documentation for the exceptions. Fixed bug ID: 2960112: is_bom wording fix
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@112 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:07:08 +02:00
ntrifunovic
4bfad91501 Feature request 2857462: Proposed minor extension: safe version of is_bom
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@111 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:06:56 +02:00
ntrifunovic
2ca22999da Fix for the bug ID: 2915657 - 64bit portability issue
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@110 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:06:44 +02:00
ntrifunovic
ac70b66ce6 Feature ID 2885695: "Group" utf8 exceptions.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@108 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:06:09 +02:00
ntrifunovic
7c41f51d56 Fix for the bug [ID: 2906315]: < instead != in utf8to32
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@107 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:06:01 +02:00
ntrifunovic
85d925e1ab Fix for the bug ID: 2857454 [dereference invalid iterator]
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@105 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:05:36 +02:00
ntrifunovic
cb757aff4f Fix for bug #ID: 2857456[redundant checks in append in checked.h]
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@102 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:04:52 +02:00
ntrifunovic
0b6b8b5cf8 Fix for bug ID: 2852872 [invalid utf16 strings were parsed without any error]
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@100 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:04:37 +02:00
ntrifunovic
6adb83ba84 Fix for the bug ID: 2830326: " multiple definition of `utf8::internal::is_overlong_sequence"
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@98 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:02:43 +02:00
ntrifunovic
58ab95c963 Fix for the bug ID: 2823847: warnings from GCC 4.3
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@95 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:01:10 +02:00
ntrifunovic
4a3b41e9f1 Updated documentation to include additional samples. Fixed a typo in core.h
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@92 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 02:00:04 +02:00
ntrifunovic
33dc220fae Removed std::distance from validate_next and (hopefully) made it work with input iterators. Also, did a major
refactoring of that function.

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@91 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:59:53 +02:00
ntrifunovic
1976a0584c Removing bidirectional restrictions for the octet_iterator
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@87 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v2_0/test_drivers/performance/timer.h
	v2_0/test_drivers/performance/win32.cpp
2014-06-01 01:57:43 +02:00
ntrifunovic
bd4cd05acd Implemented feature request ID: 2515238; renamed an internal enum to avoid conflicts with macros from other libraries
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@85 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:52:02 +02:00
ntrifunovic
3a04fda526 Added peek_next
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@82 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:51:12 +02:00
ntrifunovic
0cadd58fe2 Updated documentation. Fixed a small bug in checked.h. Added new checks to the negative tests
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@78 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v2_0/test_drivers/negative/negative.cpp
2014-06-01 01:46:55 +02:00
ntrifunovic
28149b16f3 The requirement for octet_iterator is bidirectional rather than random access now. Other minor changes
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@72 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:39:18 +02:00
ntrifunovic
f0a6b9376b Added boost directory, updated documentation, fixed a typo in a local variable in the code
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@71 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v1_0/doc/utf8cpp.html
	v1_0/source/utf8.h
2014-06-01 01:39:01 +02:00
ntrifunovic
bfb37e9c26 Added the unchecked iterator, added base() to the checked one, updated tests
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@69 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:35:08 +02:00
ntrifunovic
a42b82da3a Added the checked iterator, function prior that replaces previous, and updated the html documentation
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@66 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v1_0/doc/utf8cpp.html
2014-06-01 01:33:02 +02:00
ntrifunovic
65a33d5965 Added the first version of the iterator to the code. Started upgrading the html documentation
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@65 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:32:02 +02:00
ntrifunovic
dc7df7b78c split the library into multiple .h files
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@62 a809a056-fc17-0410-9590-b4f493f8b08e
2014-06-01 01:30:31 +02:00
ntrifunovic
8671171bee Implemented replace_invalid functionality
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@61 a809a056-fc17-0410-9590-b4f493f8b08e

Conflicts:
	v2_0/doc/utf8cpp.html
	v2_0/source/utf8.h
	v2_0/test_drivers/smoke_test/test.cpp
2014-05-31 23:51:24 +02:00
ntrifunovic
1d0a0435be Got rid of a compilation warning
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@55 a809a056-fc17-0410-9590-b4f493f8b08e
2006-09-05 22:27:14 +00:00
ntrifunovic
dc0adbba22 Another refactoring - added sequence_length inline function
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@53 a809a056-fc17-0410-9590-b4f493f8b08e
2006-09-03 17:32:47 +00:00
ntrifunovic
94c65497d9 Added a boundary check to the optimization branch of next_validate
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@52 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-27 02:31:23 +00:00
ntrifunovic
856d0d2b3d Performance enhancement for utf8::next based functions.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@50 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-24 22:25:38 +00:00
ntrifunovic
124a50b920 Removed an unused function unchecked::get
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@47 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-22 22:31:22 +00:00
ntrifunovic
92e73d7eb2 A minor refactoring.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@46 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-18 22:46:49 +00:00
ntrifunovic
d7ef2ce0a9 Changed conversion functions to return the position of last inserted character/byte
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@44 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-15 01:54:49 +00:00
ntrifunovic
45fe39aeb4 Fixed several typos with accepting results form "append". I can't explain the fact that it had no visible influence on the functionality.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@40 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-11 22:38:42 +00:00
ntrifunovic
3e5b1b6c51 Fix for the bug [ 1538338 ] unchecked::next does not work correctly for 4-byte sequences
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@38 a809a056-fc17-0410-9590-b4f493f8b08e
2006-08-10 21:51:28 +00:00
ntrifunovic
da02583fea Fix for the bug [ 1531740 ] utf8::append does not work correctly for some code points.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@32 a809a056-fc17-0410-9590-b4f493f8b08e
2006-07-31 22:04:46 +00:00
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