Warning: This file is auto-generated by
mix ptc.gen_docsfrompriv/function_audit.exs. Manual edits will be overwritten. Editpriv/function_audit.exsinstead.
Comparison of clojure.string vars against PTC-Lisp builtins.
See also: Function Reference | Namespace Coverage | Clojure Core Audit | Clojure Set Audit | Clojure Walk Audit | Java Math Audit | Java Boolean Audit | Java Double Audit | Java Float Audit | Java Integer Audit | Java Long Audit | Java String Audit | Java System Audit | Java LocalDate Audit | Java Instant Audit | Java Duration Audit | Java Period Audit | Java Date Audit
Summary
Coverage excludes not_relevant entries: supported / (supported + candidate + not_classified).
| Status | Count |
|---|---|
| Supported | 16 |
| Candidate | 4 |
| Not Relevant | 1 |
| Not Classified | 0 |
| Relevant Target | 20 |
| Coverage | 16/20 (80.0%) |
| Total | 21 |
Details
| Var | Status | Description | Notes |
|---|---|---|---|
blank? | ✅ supported | True if s is nil, empty, or contains only whitespace | BUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003; BUG GAP-S116: character inputs are accepted instead of raising |
capitalize | 🔲 candidate | Converts first character to upper-case, rest to lower-case | pure string transformation |
ends-with? | ✅ supported | True if s ends with substr | BUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified |
escape | 🔲 candidate | Return a new string applying cmap to each character | pure character mapping |
includes? | ✅ supported | True if s includes substr | BUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified |
index-of | ✅ supported | Return index of value in string | DIV-36: returns grapheme offsets instead of JVM UTF-16 code-unit offsets; BUG GAP-S124: finite numeric from-index arguments are rejected instead of coerced. BUG GAP-S139: numeric receivers raise instead of being stringified |
join | ✅ supported | Returns a string of elements joined by separator | BUG GAP-S26: nil collections, nil separators, string collections, and map collections currently raise instead of joining |
last-index-of | ✅ supported | Return last index of value in string | DIV-36: returns grapheme offsets instead of JVM UTF-16 code-unit offsets; BUG GAP-S80: negative from-index returns 0 instead of nil; BUG GAP-S124: finite numeric from-index arguments are rejected instead of coerced. BUG GAP-S139: numeric receivers raise instead of being stringified |
lower-case | ✅ supported | Converts string to all lower-case | BUG GAP-S139: numeric inputs raise instead of being stringified |
re-quote-replacement | ❌ not_relevant | Escapes special characters in replacement string | Java regex-specific utility |
replace | ✅ supported | Replaces all instances of match in s | BUG GAP-S27: replacement function form is not implemented. BUG GAP-S73: regex replacement string group references are not honored. BUG GAP-S116: character match/replacement arguments are accepted instead of raising for mismatched replacement types. BUG GAP-S139: numeric receivers raise instead of being stringified |
replace-first | 🔲 candidate | Replaces first instance of match in s | pure string transformation |
reverse | 🔲 candidate | Returns s with characters reversed | pure string transformation |
split | ✅ supported | Splits string on regex | BUG GAP-S15: empty regex currently keeps a trailing empty element; BUG GAP-S25: 3-arity limit form is not implemented; BUG GAP-S95: trailing empty fields and empty input differ from Clojure split. BUG GAP-S116: character delimiters are accepted instead of raising |
split-lines | ✅ supported | Splits string on \n or \r\n | GAP-S51 fixed: empty string returns [""] |
starts-with? | ✅ supported | True if s starts with substr | BUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified |
trim | ✅ supported | Removes whitespace from both ends of string | BUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003 |
trim-newline | ✅ supported | Removes all trailing newline or return characters | BUG GAP-S116: character inputs are accepted instead of raising |
triml | ✅ supported | Removes whitespace from the left side of string | BUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003 |
trimr | ✅ supported | Removes whitespace from the right side of string | BUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003 |
upper-case | ✅ supported | Converts string to all upper-case | BUG GAP-S139: numeric inputs raise instead of being stringified |