Changeset View
Changeset View
Standalone View
Standalone View
src/lib/text/kstringhandler.h
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Line(s) | 204 | /** | |||
---|---|---|---|---|---|
210 | but where wrapping the text will produce good results. | 210 | but where wrapping the text will produce good results. | ||
211 | 211 | | |||
212 | Examples of such points includes after punctuation signs, underscores and | 212 | Examples of such points includes after punctuation signs, underscores and | ||
213 | dashes, that aren't followed by spaces. | 213 | dashes, that aren't followed by spaces. | ||
214 | 214 | | |||
215 | @since 4.4 | 215 | @since 4.4 | ||
216 | */ | 216 | */ | ||
217 | KCOREADDONS_EXPORT QString preProcessWrap(const QString &text); | 217 | KCOREADDONS_EXPORT QString preProcessWrap(const QString &text); | ||
218 | | ||||
219 | /** | ||||
220 | Returns the length that reflects the density of information in the text. In | ||||
221 | general the character from CJK languages are assigned with weight 2, while | ||||
222 | other Latin characters are assigned with 1. | ||||
223 | | ||||
224 | @since 5.41 | ||||
225 | */ | ||||
226 | KCOREADDONS_EXPORT int logicalLength(const QString &text); | ||||
227 | | ||||
218 | } | 228 | } | ||
219 | #endif | 229 | #endif |