summaryrefslogtreecommitdiff
path: root/platform/default/bidi.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core, test] Add BiDi unit testChris Loer2018-10-151-2/+7
| | | | | | - Port of arabic.test.js from mapbox-gl-rtl-text - Modify BiDi::getLine to remove trailing nulls in the event UBIDI_REMOVE_BIDI_CONTROLS causes the string to shorten. - Patch vendored ICU to avoid undefined undefined bit shifting behavior (triggered sanitizer failure)
* [core] Bidi support for styled text.Chris Loer2018-10-151-0/+102
| | | | Remove use of QString from non-ICU Qt stub bidi implementation since we weren't making use of it.
* [tidy] modernize-use-nullptrBruno de Oliveira Abinader2017-05-121-3/+3
|
* [core] Fix compilation error with older libicu versionsBruno de Oliveira Abinader2017-05-021-1/+1
|
* [core] Safeguard ICU UChar usageBruno de Oliveira Abinader2017-03-021-5/+7
|
* [core] Reserve vector sizeJohn Firebaugh2017-02-271-0/+2
|
* [core] Avoid some string copies in bidi implementationJohn Firebaugh2017-02-271-6/+7
| | | | As of C++11, it's safe to preallocate std::[u16]string and write to the buffer via &s[0] (C++17 makes it possible via .data() as well).
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-1/+1
|
* Port raggedness-minimizing line breaking from gl-js.Chris Loer2017-01-051-14/+10
|
* Cleaning up line breaking code.Chris Loer2017-01-051-38/+41
| | | | | | * Don't include trailing spacing (as opposed to whitespace) in lineLength * Modify BiDi interface to require initial bidi layout and linebreaking to happen in one call. * Code style changes suggested by @kkaefer
* [core] Added BidiImpl to avoid ICU types exposureBruno de Oliveira Abinader2016-12-121-14/+17
|
* [build] ICU is now configured per platformBruno de Oliveira Abinader2016-12-121-0/+125