Skip to content

Commit

Permalink
(#22873) utf8.h: add version cci.20240202
Browse files Browse the repository at this point in the history
* utf8.h: add version cci.20240202

* fix version
  • Loading branch information
toge authored Feb 26, 2024
1 parent 5fa9190 commit 1079417
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions recipes/utf8.h/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"cci.20240202":
url: "https://github.com/sheredom/utf8.h/archive/2aa5709fe39c66d2868c0d52d42788899b90dc92.tar.gz"
sha256: "1cce8cad2ab17b9ac4e59c8b06fa6f2bdf729893c7061b734164f2e87ff9f7f9"
"cci.20210310":
url: "https://github.com/sheredom/utf8.h/archive/ee5a7d4beb7755da13e4d4ec3eccfb65a0530456.tar.gz"
sha256: "d7c9ad480b640c76292a1c4b9735497fd635cb8828e95beabb7db91ea4cecf55"
8 changes: 7 additions & 1 deletion recipes/utf8.h/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#if defined(__cplusplus) && __cplusplus >= 202002L
using char_type = char8_t;
#else
typedef char char_type;
#endif

#include "utf8.h"

int main()
Expand All @@ -7,7 +13,7 @@ int main()
char str[] = {'\xcf', '\xb4', '\xce', '\xb8', '\xce',
'\x98', '\xcf', '\x91', '\0'};

int r = utf8ncasecmp(ref, str, 8);
int r = utf8ncasecmp(reinterpret_cast<const char_type*>(ref), reinterpret_cast<const char_type*>(str), 8);

return 0;
}
2 changes: 2 additions & 0 deletions recipes/utf8.h/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"cci.20240202":
folder: all
"cci.20210310":
folder: all

0 comments on commit 1079417

Please sign in to comment.