Repository navigation
docs: add bilingual documentation in docs/en_us and docs/zh_cn - #11
Merged
Merged
Conversation
- add a complete English and Simplified Chinese manual: getting started, user guide, API reference for buffers/views and search/compare/split, regex guide, design & internals, build/test/package, contributing, CI - move the CI notes from docs/CI.md into both languages and update every link; add a docs hub at docs/README.md - correct root README statements about the layer that declares sx_split and about out-of-contract inputs - every public function is documented with its exact prototype; all complete examples compile and run under ASan/UBSan/LSan and the full 20-test suite passes
- tighten the prose to a concise, direct style; rewrite the quick-start example as a single chained expression that shows memory-safe ownership - replace Forge tutorials with a link and the commands users actually need - document the write-range overflow contract (NULL return, target unchanged, owned input still consumed) and the native memmem fast path for sx_find*, including the SX_FORCE_NO_MEMMEM fallback - sync with the 24-test suite and the new write-safety, search-performance and benchmark workflows - fold the upstream docs/WRITE_SAFETY.md into the bilingual manual and keep docs/ organized as docs/en_us + docs/zh_cn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the complete bilingual manual under
docs/en_us/anddocs/zh_cn/(hub atdocs/README.md), kept in sync with the current behavior and CI.sx_write*returnsNULL, target unchanged, owned input still consumed) and the nativememmemfast path forsx_find*with theSX_FORCE_NO_MEMMEMfallback.docs/CI.mdmoves into the bilingual manual (root README links updated); upstreamdocs/WRITE_SAFETY.mdis folded into the API / design / guide pages sodocs/stays in theen_us+zh_cnlayout.Verification
SX_FORCE_NO_MEMMEMandSX_FORCE_EXACT_RESERVEvariants.Branch is rebased on
mainat d8b251e (write-overflow fix, search fast paths, benchmarks and new CI workflows).中文摘要:新增
docs/en_us/与docs/zh_cn/完整双语文档(docs/README.md为语言入口),并已与最新main同步:记录写入范围溢出拒绝契约、sx_find*的memmem原生快路径与SX_FORCE_NO_MEMMEM回退、24 个测试套件,以及 write-safety / search-performance / benchmark 新工作流。原docs/CI.md迁入双语ci.md,上游docs/WRITE_SAFETY.md内容折入 API/设计/指南页面,保持 docs 目录为en_us+zh_cn结构。本 PR 仅改文档;24/24 测试、32/32 文档示例、65/65 函数覆盖均已验证。