Clojure String Audit for PTC-Lisp

Copy Markdown View Source

Warning: This file is auto-generated by mix ptc.gen_docs from priv/function_audit.exs. Manual edits will be overwritten. Edit priv/function_audit.exs instead.

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).

StatusCount
Supported16
Candidate4
Not Relevant1
Not Classified0
Relevant Target20
Coverage16/20 (80.0%)
Total21

Details

VarStatusDescriptionNotes
blank?✅ supportedTrue if s is nil, empty, or contains only whitespaceBUG 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🔲 candidateConverts first character to upper-case, rest to lower-casepure string transformation
ends-with?✅ supportedTrue if s ends with substrBUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified
escape🔲 candidateReturn a new string applying cmap to each characterpure character mapping
includes?✅ supportedTrue if s includes substrBUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified
index-of✅ supportedReturn index of value in stringDIV-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✅ supportedReturns a string of elements joined by separatorBUG GAP-S26: nil collections, nil separators, string collections, and map collections currently raise instead of joining
last-index-of✅ supportedReturn last index of value in stringDIV-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✅ supportedConverts string to all lower-caseBUG GAP-S139: numeric inputs raise instead of being stringified
re-quote-replacement❌ not_relevantEscapes special characters in replacement stringJava regex-specific utility
replace✅ supportedReplaces all instances of match in sBUG 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🔲 candidateReplaces first instance of match in spure string transformation
reverse🔲 candidateReturns s with characters reversedpure string transformation
split✅ supportedSplits string on regexBUG 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✅ supportedSplits string on \n or \r\nGAP-S51 fixed: empty string returns [""]
starts-with?✅ supportedTrue if s starts with substrBUG GAP-S116: character substring arguments are accepted instead of raising. BUG GAP-S139: numeric receivers raise instead of being stringified
trim✅ supportedRemoves whitespace from both ends of stringBUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003
trim-newline✅ supportedRemoves all trailing newline or return charactersBUG GAP-S116: character inputs are accepted instead of raising
triml✅ supportedRemoves whitespace from the left side of stringBUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003
trimr✅ supportedRemoves whitespace from the right side of stringBUG GAP-S50: Unicode whitespace classification differs from Clojure for U+00A0 and U+2003
upper-case✅ supportedConverts string to all upper-caseBUG GAP-S139: numeric inputs raise instead of being stringified