changing doc format and HTML literals

This commit is contained in:
udo
2026-04-22 01:56:46 +00:00
parent 8223dcc6b3
commit f7b066b374
123 changed files with 1917 additions and 1611 deletions
+11 -6
View File
@@ -6,12 +6,17 @@ haystack : string to be nibbled at
delim : delimiter
return value : string before first occurrence of 'delim'
:desc
Returns the part of 'haystack' before the first occurrence of 'delim', removing the corresponding part from 'haystack' (including 'delim'). If the substring 'delim' does not occurr in 'haystack', the entire string is returned and 'haystack' is set to an empty string.
:see
>string
:related
**PHP:** Small parsing helpers built with `strpos()`, `substr()`, and `explode()`
**JavaScript / Node.js:** Manual parsing with `indexOf()`, `slice()`, and `split()`
:content
Returns the part of `haystack` before the first occurrence of `delim`.
As a side effect, the consumed portion is removed from `haystack`, including the delimiter itself.
If `delim` does not occur in `haystack`, the entire string is returned and `haystack` is set to an empty string.
Related:
- PHP: small parsing helpers built with `strpos()`, `substr()`, and `explode()`
- JavaScript / Node.js: manual parsing with `indexOf()`, `slice()`, and `split()`