mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibTextCodec: Add GBK/GB18030 decoder
Includes changes from GB-18030-2022, which are not yet included in the Encoding Specification, but WebKit, Blink and WPT are already updated.
This commit is contained in:
parent
9ed52504ab
commit
2ce61fe6ea
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/skyrising
Commit: 2ce61fe6ea
Pull-request: https://github.com/SerenityOS/serenity/pull/24485
Reviewed-by: https://github.com/ADKaster
8 changed files with 497 additions and 0 deletions
15
Meta/CMake/libtextcodec_generators.cmake
Normal file
15
Meta/CMake/libtextcodec_generators.cmake
Normal file
|
@ -0,0 +1,15 @@
|
|||
function (generate_encoding_indexes)
|
||||
set(LIBTEXTCODEC_INPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
# indexes.json can be found at https://encoding.spec.whatwg.org/indexes.json
|
||||
invoke_generator(
|
||||
"LookupTables.cpp"
|
||||
Lagom::GenerateEncodingIndexes
|
||||
"${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
||||
"LookupTables.h"
|
||||
"LookupTables.cpp"
|
||||
arguments -j "${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
||||
)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LookupTables.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibTextCodec/")
|
||||
endfunction()
|
Loading…
Add table
Add a link
Reference in a new issue