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 whitespaceUnicode whitespace (Elixir String.trim), not Java Character.isWhitespace; e.g. U+00A0 counts as blank here but not in Clojure
capitalize🔲 candidateConverts first character to upper-case, rest to lower-casepure string transformation
ends-with?✅ supportedTrue if s ends with substr
escape🔲 candidateReturn a new string applying cmap to each characterpure character mapping
includes?✅ supportedTrue if s includes substr
index-of✅ supportedReturn index of value in string
join✅ supportedReturns a string of elements joined by separator
last-index-of✅ supportedReturn last index of value in string
lower-case✅ supportedConverts string to all lower-case
re-quote-replacement❌ not_relevantEscapes special characters in replacement stringJava regex-specific utility
replace✅ supportedReplaces all instances of match in s
replace-first🔲 candidateReplaces first instance of match in spure string transformation
reverse🔲 candidateReturns s with characters reversedpure string transformation
split✅ supportedSplits string on regex or string
split-lines✅ supportedSplits string on \n or \r\n
starts-with?✅ supportedTrue if s starts with substr
trim✅ supportedRemoves whitespace from both ends of stringUnicode whitespace (Elixir String.trim), not Java Character.isWhitespace; e.g. U+00A0 is trimmed here but not in Clojure
trim-newline✅ supportedRemoves all trailing newline or return characters
triml✅ supportedRemoves whitespace from the left side of stringUnicode whitespace (Elixir String.trim_leading), not Java Character.isWhitespace; e.g. U+00A0 is trimmed here but not in Clojure
trimr✅ supportedRemoves whitespace from the right side of stringUnicode whitespace (Elixir String.trim_trailing), not Java Character.isWhitespace; e.g. U+00A0 is trimmed here but not in Clojure
upper-case✅ supportedConverts string to all upper-case