Browse Source

Auto-update utfcpp to v4.0.0 (#2750)

* Update utfcpp to v4.0.0

* Update xmake.lua
Jérôme Leclercq 1 year ago
parent
commit
c74b83dbe0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/u/utfcpp/xmake.lua

+ 2 - 1
packages/u/utfcpp/xmake.lua

@@ -6,6 +6,7 @@ package("utfcpp")
 
 
     add_urls("https://github.com/nemtrif/utfcpp/archive/refs/tags/$(version).tar.gz",
     add_urls("https://github.com/nemtrif/utfcpp/archive/refs/tags/$(version).tar.gz",
              "https://github.com/nemtrif/utfcpp.git")
              "https://github.com/nemtrif/utfcpp.git")
+    add_versions("v4.0.0", "ac44d9652aa2ee64d405c1705718f26b385337a9b8cf20bf2b2aac6435a16c1e")
     add_versions("v3.2.5", "14fd1b3c466814cb4c40771b7f207b61d2c7a0aa6a5e620ca05c00df27f25afd")
     add_versions("v3.2.5", "14fd1b3c466814cb4c40771b7f207b61d2c7a0aa6a5e620ca05c00df27f25afd")
     add_versions("v3.2.4", "fde21a4c519eed25f095a1cd8490167409cc70d7b5e9c38756142e588ccb7c7e")
     add_versions("v3.2.4", "fde21a4c519eed25f095a1cd8490167409cc70d7b5e9c38756142e588ccb7c7e")
     add_versions("v3.2.3", "3ba9b0dbbff08767bdffe8f03b10e596ca351228862722e4c9d4d126d2865250")
     add_versions("v3.2.3", "3ba9b0dbbff08767bdffe8f03b10e596ca351228862722e4c9d4d126d2865250")
@@ -25,7 +26,7 @@ package("utfcpp")
     on_test(function (package)
     on_test(function (package)
         local test_snippet = [[
         local test_snippet = [[
             #define UTF_CPP_CPLUSPLUS 201103L
             #define UTF_CPP_CPLUSPLUS 201103L
-            #include <utf8cpp/utf8.h>
+            #include <utf8.h>
             void test() {
             void test() {
                 std::string line("你好,世界");
                 std::string line("你好,世界");
                 std::u16string u16line = utf8::utf8to16(line);
                 std::u16string u16line = utf8::utf8to16(line);