Commit graph

17 commits

Author SHA1 Message Date
Ivailo Monev
3c44a64a7a correct warning message in QTextBoundaryFinderPrivate::operator=()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-14 18:26:55 +00:00
Ivailo Monev
da3f5dc609 reimplement QTextBoundaryFinder via ICU
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-14 17:45:40 +00:00
Ivailo Monev
97db6a1b84 replace system with local header inclusions where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-16 00:41:53 +00:00
Ivailo Monev
009c4b8d40 set internal string lenght of invalid QTextBoundaryFinder to -1
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-09 23:21:16 +00:00
Ivailo Monev
87e8e5e7a7 always create private object of QTextBoundaryFinder
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-09 22:44:57 +00:00
Ivailo Monev
a21a480105 copyright update
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-02 18:13:44 +00:00
Ivailo Monev
80d4bc168e more copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-03 14:21:30 +00:00
Ivailo Monev
74bb412630 copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-03 13:38:02 +00:00
Ivailo Monev
2154c9e0ef fix build of QTextEngine with strict iterators
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-20 14:59:04 +00:00
Ivailo Monev
f3e3515217 add missing break in QTextBoundaryFinder
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-12 05:32:54 +00:00
Ivailo Monev
7cf27b2703 mostly compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2017-08-07 17:15:37 +00:00
Ivailo Monev
262373abf1 make copies of the string in QTextBoundaryFinder, use const in args where possible
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-22 22:01:06 +00:00
Ivailo Monev
c3eb03e6ce fix assignment of invalid QTextBoundaryFinder object
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-22 21:58:13 +00:00
Ivailo Monev
f661c97828 fix some compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-29 15:54:06 +00:00
Ivailo Monev
11c0d478fb getting QTextBoundaryFinder to behave like I want it (theoretically)
Grapheme - all-in-one, everything that is not a letter or a number - marks,
punctuations, space, etc.

Word - stop at space, illogical but right because when one wants to word-
wrap (which this is mostly used for I assume) punctuation should be on the
same row which means that a split must happen after the punctuation, e.g.
"hey,<split> joe!"

Sentence - that's very questionable, usually a punctuation (e.g. comma) can
be used to split a sentence into few sentences but that does not mean that
the sentence boundary was found (e.g. full stop, question mark, etc.) in
the current implementation

Line - obviously just line ending, that would be \n for UNIX (x000A in
Unicode) and whatever else someone comes up into his own "standard".

In any case the whole text-boundary finder class looks wrong for any use
case to me, while I was working on KHTML I found that it's much faster and
more reliable to just test if the UChar/QChar is space (via isSpace()) or
whatever the case needs rather then use the finder. I do not want to botch
it out of the toolkit yet but I suppose a class that looks for a QChar
category(ies) would be far more usefull then a boundry type specific to the
boundry finder with assumptions that are not obvious at first glance.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-29 05:04:31 +00:00
Ivailo Monev
4f7e7882d6 re-implement QTextBoundryFinder via QChar
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-28 17:06:32 +00:00
Ivailo Monev
bfbc380756 initial import
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-10 05:06:13 +02:00