Skip to content

Commit

Permalink
Merge pull request #99 from xatier/macro-refactor
Browse files Browse the repository at this point in the history
refactor(InputMacro): introduce InputMacro classes for grouping
  • Loading branch information
lukhnos authored Dec 18, 2023
2 parents aae09c4 + 34860f4 commit ad11e21
Show file tree
Hide file tree
Showing 4 changed files with 537 additions and 234 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ if (ENABLE_CLANG_TIDY)
MESSAGE(STATUS "Found clang-tidy: ${CLANG_TIDY}")
string(CONCAT CLANG_TIDY_CHECKS "-checks=-*,"
"clang-analyzer-*,bugprone-*,cert-*,readability-*,"
"clang-diagnostic-*,"
"cppcoreguidelines-explicit-virtual-functions,"
"cppcoreguidelines-virtual-class-destructor,"
"-bugprone-easily-swappable-parameters,"
"-readability-const-return-type,"
"-readability-convert-member-functions-to-static,"
Expand Down
49 changes: 49 additions & 0 deletions data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16764,6 +16764,15 @@ _punctuation_~ ~ 0.0
ㄇㄧㄥˊ-ㄊㄧㄝˋ 名帖 -7.56766981
ㄇㄧㄥˊ-ㄊㄧㄠˊ 名條 -6.56766981
ㄇㄧㄥˊ-ㄊㄧㄢ 明天 -4.08622719
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_SHORT -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_MEDIUM -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_MEDIUM_ROC -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_MEDIUM_CHINESE -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_MEDIUM_JAPANESE -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_WEEKDAY_SHORT -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_WEEKDAY -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW2_WEEKDAY -8
ㄇㄧㄥˊ-ㄊㄧㄢ MACRO@DATE_TOMORROW_WEEKDAY_JAPANESE -8
ㄇㄧㄥˊ-ㄊㄧㄢ-ㄉㄜ˙ 明天的 -5.34470065
ㄇㄧㄥˊ-ㄊㄧㄢ-ㄕㄤˋ-ㄨˇ-ㄅㄚ-ㄕˊ 明天上午八時 -6.69148813
ㄇㄧㄥˊ-ㄊㄧㄢ-ㄖˋ-ㄑㄧˊ 明天日期 -8
Expand All @@ -16781,6 +16790,12 @@ _punctuation_~ ~ 0.0
ㄇㄧㄥˊ-ㄋㄧㄠˇ 鳴鳥 -6.56766981
ㄇㄧㄥˊ-ㄋㄧㄠˇ 名鳥 -7.56766981
ㄇㄧㄥˊ-ㄋㄧㄢˊ 明年 -4.10407541
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_GANZHI -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_CHINESE_ZODIAC -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_PLAIN -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_PLAIN_WITH_ERA -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_ROC -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ MACRO@NEXT_YEAR_JAPANESE -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ-ㄉㄜ˙ 明年的 -5.22522481
ㄇㄧㄥˊ-ㄋㄧㄢˊ-ㄍㄢ-ㄓ 明年干支 -8
ㄇㄧㄥˊ-ㄋㄧㄢˊ-ㄍㄢ-ㄓ MACRO@NEXT_YEAR_GANZHI -8
Expand Down Expand Up @@ -77397,6 +77412,15 @@ _punctuation_~ ~ 0.0
ㄐㄧㄣ-ㄊㄧㄝ 津貼 -4.75743730
ㄐㄧㄣ-ㄊㄧㄠˊ 金條 -5.88642858
ㄐㄧㄣ-ㄊㄧㄢ 今天 -3.28937361
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_SHORT -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_MEDIUM -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_MEDIUM_ROC -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_MEDIUM_CHINESE -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_MEDIUM_JAPANESE -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_WEEKDAY_SHORT -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_WEEKDAY -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY2_WEEKDAY -8
ㄐㄧㄣ-ㄊㄧㄢ MACRO@DATE_TODAY_WEEKDAY_JAPANESE -8
ㄐㄧㄣ-ㄊㄧㄢ-ㄉㄜ˙ 今天的 -4.34181496
ㄐㄧㄣ-ㄊㄧㄢ-ㄋㄥˊ 今天能 -6.82182190
ㄐㄧㄣ-ㄊㄧㄢ-ㄏㄨㄟˋ 今天會 -5.67569387
Expand All @@ -77419,6 +77443,12 @@ _punctuation_~ ~ 0.0
ㄐㄧㄣ-ㄋㄧㄡˊ ♉ -8
ㄐㄧㄣ-ㄋㄧㄡˊ-ㄗㄨㄛˋ 金牛座 -5.60433796
ㄐㄧㄣ-ㄋㄧㄢˊ 今年 -3.57582376
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_GANZHI -8
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_CHINESE_ZODIAC -8
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_PLAIN -8
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_PLAIN_WITH_ERA -8
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_ROC -8
ㄐㄧㄣ-ㄋㄧㄢˊ MACRO@THIS_YEAR_JAPANESE -8
ㄐㄧㄣ-ㄋㄧㄢˊ-ㄍㄢ-ㄓ 今年干支 -8
ㄐㄧㄣ-ㄋㄧㄢˊ-ㄍㄢ-ㄓ MACRO@THIS_YEAR_GANZHI -8
ㄐㄧㄣ-ㄋㄧㄢˊ-ㄕㄥ-ㄒㄧㄠˋ 今年生肖 -8
Expand Down Expand Up @@ -85980,6 +86010,12 @@ _punctuation_~ ~ 0.0
ㄑㄩˋ-ㄊㄢˊ 趣談 -6.56766981
ㄑㄩˋ-ㄋㄧˇ-ㄉㄜ˙ 去你的 -6.27775386
ㄑㄩˋ-ㄋㄧㄢˊ 去年 -3.80140572
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_GANZHI -8
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_CHINESE_ZODIAC -8
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_PLAIN -8
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_PLAIN_WITH_ERA -8
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_ROC -8
ㄑㄩˋ-ㄋㄧㄢˊ MACRO@LAST_YEAR_JAPANESE -8
ㄑㄩˋ-ㄋㄧㄢˊ-ㄉㄜ˙ 去年的 -5.08542540
ㄑㄩˋ-ㄋㄧㄢˊ-ㄉㄨˋ 去年度 -5.82182190
ㄑㄩˋ-ㄋㄧㄢˊ-ㄍㄢ-ㄓ 去年干支 -8
Expand Down Expand Up @@ -92041,6 +92077,8 @@ _punctuation_~ ~ 0.0
ㄒㄧㄢˋ-ㄖㄨˋ-ㄐㄧㄤ-ㄐㄩˊ 陷入僵局 -6.50194272
ㄒㄧㄢˋ-ㄖㄨˋ-ㄐㄩㄝˊ-ㄐㄧㄥˋ 陷入絕境 -7.28009397
ㄒㄧㄢˋ-ㄗㄞˋ 現在 -3.17490254
ㄒㄧㄢˋ-ㄗㄞˋ MACRO@TIME_NOW_SHORT -8
ㄒㄧㄢˋ-ㄗㄞˋ MACRO@TIME_NOW_MEDIUM -8
ㄒㄧㄢˋ-ㄗㄞˋ 陷在 -6.78951856
ㄒㄧㄢˋ-ㄗㄞˋ-ㄉㄜ˙ 現在的 -4.31803122
ㄒㄧㄢˋ-ㄗㄞˋ-ㄕˊ-ㄎㄜˋ 現在時刻 -8
Expand Down Expand Up @@ -112334,6 +112372,8 @@ _punctuation_~ ~ 0.0
ㄕˊ-ㄑㄧㄥ 石青 -7.26663982
ㄕˊ-ㄑㄧㄥˊ 實情 -5.46729927
ㄕˊ-ㄑㄩ 時區 -5.94442052
ㄕˊ-ㄑㄩ MACRO@TIMEZONE_STANDARD -8
ㄕˊ-ㄑㄩ MACRO@TIMEZONE_GENERIC_SHORT -8
ㄕˊ-ㄑㄩ 十區 -7.26663982
ㄕˊ-ㄑㄩˇ 拾取 -6.66457983
ㄕˊ-ㄑㄩˇ 十曲 -7.56766981
Expand Down Expand Up @@ -125754,6 +125794,15 @@ _punctuation_~ ~ 0.0
ㄗㄨㄛˊ 筰 -7.71145774
ㄗㄨㄛˊ 葃 -7.71145774
ㄗㄨㄛˊ-ㄊㄧㄢ 昨天 -3.71470212
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_SHORT -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_MEDIUM -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_MEDIUM_ROC -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_MEDIUM_CHINESE -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_MEDIUM_JAPANESE -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_WEEKDAY_SHORT -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_WEEKDAY -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY2_WEEKDAY -8
ㄗㄨㄛˊ-ㄊㄧㄢ MACRO@DATE_YESTERDAY_WEEKDAY_JAPANESE -8
ㄗㄨㄛˊ-ㄊㄧㄢ-ㄉㄜ˙ 昨天的 -5.38248921
ㄗㄨㄛˊ-ㄊㄧㄢ-ㄒㄧㄚˋ-ㄨˇ 昨天下午 -5.36628012
ㄗㄨㄛˊ-ㄊㄧㄢ-ㄓㄨㄥ-ㄨˇ 昨天中午 -6.20091272
Expand Down
Loading

0 comments on commit ad11e21

Please sign in to comment.