Skip to content

Commit 5b47510

Browse files
Merge pull request #113 from data-man/ucd_17
Update to Unicode 17.0.0
2 parents eb9f4c3 + 946e410 commit 5b47510

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
jobs:
2020
check_PR_TODOs:
2121
name: "Check PR-TODOs"
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: "Checking for open PR-related TODO items"
@@ -29,7 +29,7 @@ jobs:
2929
3030
check_clang_format:
3131
name: "Check C++ style"
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-24.04
3333
steps:
3434
- uses: actions/checkout@v4
3535
- name: Install clang

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ if(LIBUNICODE_TESTING)
7070
endif()
7171

7272
# ----------------------------------------------------------------------------
73-
set(LIBUNICODE_UCD_VERSION "16.0.0" CACHE STRING "libunicode: Unicode version")
73+
set(LIBUNICODE_UCD_VERSION "17.0.0" CACHE STRING "libunicode: Unicode version")
7474
set(LIBUNICODE_UCD_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_ucd" CACHE PATH "Path to directory for downloaded files & extracted directories.")
7575

7676
set(LIBUNICODE_UCD_ZIP_DOWNLOAD_URL "https://www.unicode.org/Public/${LIBUNICODE_UCD_VERSION}/ucd/UCD.zip")
77-
set(LIBUNICODE_UCD_MD5 "bdd823cbd37c376633d6737a12281233")
77+
set(LIBUNICODE_UCD_MD5 "aa35d214bbc24b3b8d07b96bb9db7dca")
7878
set(LIBUNICODE_UCD_ZIP_FILE "${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}.zip")
7979
set(LIBUNICODE_UCD_DIR "${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}" CACHE PATH "Path to UCD directory.")
8080

src/libunicode/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ target_link_libraries(unicode PUBLIC unicode::ucd)
184184

185185
add_executable(unicode_tablegen tablegen.cpp)
186186
set_target_properties(unicode_tablegen PROPERTIES CMAKE_BUILD_TYPE Release)
187+
target_compile_definitions(unicode_tablegen PRIVATE LIBUNICODE_UCD_VERSION="${LIBUNICODE_UCD_VERSION}")
187188
target_link_libraries(unicode_tablegen PRIVATE unicode::loader)
188189

189190

src/libunicode/codepoint_properties_loader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ namespace
4747
pair { "14.0"sv, Age::V14_0 },
4848
pair { "15.0"sv, Age::V15_0 },
4949
pair { "16.0"sv, Age::V16_0 },
50+
pair { "17.0"sv, Age::V17_0 },
5051
pair { "1.1"sv, Age::V1_1 },
5152
pair { "2.0"sv, Age::V2_0 },
5253
pair { "2.1"sv, Age::V2_1 },

src/libunicode/tablegen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ int main(int argc, char const* argv[])
189189
{
190190
// clang-format off
191191
int i = 1;
192-
auto const ucdDataDirectory = consumeParamterOrDefault(i, argc, argv, "_ucd/ucd-15.0.0");
192+
static const std::string ucdDataDirectoryDefault = "_ucd/ucd-"s + LIBUNICODE_UCD_VERSION;
193+
auto const ucdDataDirectory = consumeParamterOrDefault(i, argc, argv, ucdDataDirectoryDefault.c_str());
193194
auto const cxxHeaderFileName = consumeParamterOrDefault(i, argc, argv, "codepoint_properties_data.h");
194195
auto const cxxImplementationFileName = consumeParamterOrDefault(i, argc, argv, "codepoint_properties_data.cpp");
195196
auto const cxxNamesFileName = consumeParamterOrDefault(i, argc, argv, "codepoint_names_data.cpp");

0 commit comments

Comments
 (0)