Files
LCUI/lib/yutil
Liu 464eed1402 build: centralize package versions and standardize on C11
versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
2026-11-19 22:03:59 +08:00
..
2026-08-05 22:42:24 +08:00

yutil

一个用 c 语言实现的基础工具类函数库。

简介

yutil 易工具:是一个用 c 语言实现的实用类函数库。

目前计划以下内容。

特性

容器

  • 提供链表、数组、红黑树、字典等常用容器。

实用工具

  • 实现日志输出工具。

字符编码

  • 支持 utf8、ansi 与 Unicode 之间的互相转码。

数学运算

  • 提供一些特定的数学函数。

内存

  • 提供 strpool 用于解决大量相同字符串的内存占用问题。
  • 提供 strlist 满足多字符串存储需求,配合 strpool 使用。

其他

  • 提供部分字符串、宽字符串操作。
  • 提供 directory、time 等常用系统接口。
  • 提供不依赖事件循环的定时器。