`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format` binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use` now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples, man-test and tests; adds a negative gold and updates view/catalog rendering. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
357 B
Markdown
20 lines
357 B
Markdown
---
|
|
title: lib/text — strings
|
|
description: Trim, split, join wrappers
|
|
import text:lib/text.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
Import lib/text.mq.md. Functions: str_trim(s), str_split(s, sep), str_join(xs, sep).
|
|
|
|
*`t` = > text.str_trim s= marqdo *
|
|
|
|
> print text=`t`
|
|
|
|
*`parts` = > text.str_split s=a,b,c sep=,*
|
|
|
|
*`j` = > text.str_join xs=`parts` sep=-*
|
|
|
|
> print text=`j`
|