cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+10 -9
View File
@@ -2,15 +2,16 @@
String safe_name(String raw)
:params
raw : arbitrary display/name text
return value : normalized safe name
raw : arbitrary input string
return value : a sanitized name safe to use as a file or key name
:content
Sanitizes a string into a safe name by normalizing or stripping characters that are unsafe in file names and identifiers (whitespace, separators, control characters). Use it before turning user input into a file name or cache key.
:example
print(safe_name("My Report: 2024/Q1!"), "\n");
:see
>string
>ascii_safe_name
:content
Returns a filesystem/identifier-friendly name while preserving more Unicode input than `ascii_safe_name()` where supported.
:example
print("safe_name example\n");
ascii_safe_name
runtime_safe_key