Liu
|
3801fdc10f
|
refactor(yutil): rename public APIs and migrate timer to ptk
- charset module renamed to encoding (decode/encode kept)
- time: get_time_ms → y_gettime, sleep_ms → y_sleep
- time: delete get_time_us, get_time_delta, sleep_s
- string: strdup2 → y_strdup, wcsdup2 → y_wcsdup
- string: strtolower → y_strlower, strtrim → y_strtrim
- string: wcstrim → y_wcstrim, strhash → y_strhash
- string: strreplace → y_strreplace, strsplit → y_strsplit
- string: delete wcsreplace, cmdsplit
- math: delete y_iround, y_pow2
- timer module migrated from yutil to ptk as internal timer_scheduler
- WinMain simplified to use __argc/__argv instead of cmdsplit
BREAKING CHANGE: all renamed yutil public APIs require downstream
to update function names. Deleted APIs require code changes:
- get_time_us: use y_gettime() for ms timestamps
- get_time_delta: use y_gettime() - start instead
- sleep_s: use y_sleep(ms) with millisecond argument
- wcsreplace: no replacement, had zero callers
- cmdsplit: WinMain now uses __argc/__argv from CRT
- timer_list_*: migrated to ptk timer_scheduler_*;
ptk_reset_timer still available for external use
|
2026-08-05 22:42:26 +08:00 |
|
Liu
|
6cd01b468e
|
chore: update copyright comment
|
2026-08-05 22:42:22 +08:00 |
|
Liu
|
7f9f52b904
|
chore: update copyright and email
|
2026-08-05 22:42:16 +08:00 |
|
Liu
|
d6d08c7330
|
chore: update copyright year
|
2025-01-26 18:55:58 +08:00 |
|
Liu
|
940a0fc33a
|
chore: update copyright
|
2025-01-05 23:29:56 +08:00 |
|
Liu
|
6851e9aef3
|
refactor: change type naming style
|
2024-12-22 23:14:13 +08:00 |
|
Liu
|
91e359ff02
|
chore: update copyright header
|
2024-09-19 00:06:04 +08:00 |
|
Liu
|
d3d36fa19d
|
Revert "feat: replace decode_utf8 with mbstowcs"
This reverts commit 9e225e9d27.
|
2024-09-19 00:06:04 +08:00 |
|
Liu
|
9e225e9d27
|
feat: replace decode_utf8 with mbstowcs
|
2024-05-13 22:49:22 +08:00 |
|
Liu
|
d60ec9227d
|
chore: update copyright year
|
2024-05-13 22:49:22 +08:00 |
|
Liu
|
074c94f406
|
refactor: clear compiler errors
|
2024-05-13 22:49:20 +08:00 |
|
Liu
|
023b35e245
|
chore: add copyright header
|
2024-05-13 22:49:20 +08:00 |
|
Liu
|
27db5aeede
|
feat: add i18n library
|
2023-06-03 17:52:22 +08:00 |
|