fix version

This commit is contained in:
chatlanin 2023-04-24 22:13:17 +03:00
parent bebc25fb8e
commit ce8d0176cb
4 changed files with 4 additions and 5 deletions

View File

@ -31,12 +31,12 @@ int f(int a)
int plus(int a) int plus(int a)
{ {
return a++; return ++a;
} }
int minus(int a) int minus(int a)
{ {
return a--; return --a;
} }
struct ForTypeTrace struct ForTypeTrace

View File

@ -1,7 +1,7 @@
project( project(
'hack', 'hack',
'cpp', 'cpp',
# version : run_command('jq', '-r', '.version', join_paths(meson.source_root(), 'props.json'), check: true).stdout().strip(), version: '1.0.0',
default_options : [ default_options : [
'warning_level=1', 'warning_level=1',
'optimization=3', 'optimization=3',

View File

@ -1,2 +0,0 @@
{"version": "0.0.3"}

View File

@ -5,6 +5,7 @@
namespace hack::string namespace hack::string
{ {
// подсчет кол-ва символов
inline std::size_t utf8_len(const std::string& utf8) inline std::size_t utf8_len(const std::string& utf8)
{ {
return std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t>{}.from_bytes(utf8).size(); return std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t>{}.from_bytes(utf8).size();