aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testUniConversion.cxx
AgeCommit message (Collapse)AuthorFilesLines
2025-03-08Define constants for UTF-8 and UTF-16 implementation for clarity.Neil1-0/+33
Add tests to check that inverted conversions yield the original value.
2025-02-04Add overload of UnicodeFromUTF8 that takes a string_view.Neil1-0/+5
2024-01-02Fix warnings in test case code mostly by adding const.Neil1-24/+24
2023-11-07Feature [feature-requests:#1501] Use string_view and constexpr in unit tests.Zufu Liu1-2/+2
2021-07-11Avoid some incorrect compiler warnings for out-of-bounds access by providingNeil1-3/+3
extra bytes.
2021-06-21Fix some warnings in unit tests.rel-5-1-0Zufu Liu1-1/+1
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-1/+1
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-09Add @file <filename> comments to follow convention.Neil1-1/+3
Fix incorrect filename comments. Normalize Qt code to use #endif /* X */ insetad of #endif // X.
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-2/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2018-05-31Allow std::unique_ptr to be used more widely.Neil1-0/+1
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil1-0/+1
2018-05-14Use string_view for UniConversion functions.Neil1-24/+24
2018-05-13Include <string_view> in tests in case needed.Neil1-0/+1
2018-03-25Feature [feature-requests:#1213]. Clarify UTF8Classify.Zufu Liu1-31/+48
Use UTF8BytesOfLead to determine expected length early in function to quickly detect argument not long enough, invalid single bytes and invalid first trail then branching on length for more detailed checks.
2018-03-24Feature [feature-requests:#1212]. Move Unicode conversions into UniConversion.Zufu Liu1-0/+27
Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion.
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-60/+107
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-03-20Add unit tests for UniCoversion.Neil1-0/+264