

While it is certainly important to have a locale-sensitive comparison orĬollation procedure when processing text, it is also important to have a suite This SRFI defines string operations that are locale- and context-independent. String operations are locale- and context-independent To the underlying view of strings as merely a sequence of "code points." This SRFI do not handle these "text" concerns they restrict themselves When interpreted as a sequence of natural-language text. This is a legal string, albeit one that does not make a great deal of sense Unicode accent characters with no preceding base character to modify. For example, consider a string comprised entirely of zero-width It's entirely possible that a legal string might not be a sensible "text" See the comments below on super-ASCII character
STRING REVERSE CODEPOINTS JAVA CODE
Operations such as comparison or reversal are always doneĬode point by code point. This SRFI considers strings simply to be a sequence of "code points" orĬharacter encodings. Lisp, Bigloo, guile, Chez, APL, Java, and the SML standard basis.Īll procedures involving character comparison are available inīoth case-sensitive and case-insensitive forms.Īll functionality is available in substring and full-string forms. String libraries found in MIT Scheme, Gambit, RScheme, MzScheme, slib, Common The library's design was influenced by the These are frequently useful for scripting and other This SRFI defines two libraries that provide a rich set of operations for String-parse-start+end string-parse-final-start+end let-string-start+end check-substring-spec substring-spec-ok? make-kmp-restart-vector kmp-step string-kmp-partial-search Rationale String-filter string-delete Low-level procedures String-replace string-tokenize Filtering & deleting Xsubstring string-xcopy! Miscellaneous: insertion, parsing String-map string-map! string-fold string-fold-right string-unfold string-unfold-right string-for-each string-for-each-index Replicate & rotate String-reverse string-reverse! string-append string-concatenate string-concatenate/shared string-append/shared string-concatenate-reverse string-concatenate-reverse/shared Fold, unfold & map String-titlecase string-upcase string-downcase string-titlecase! string-upcase! string-downcase! Reverse & append String-index string-index-right string-skip string-skip-right string-count string-contains string-contains-ci Alphabetic case mapping String-prefix-length string-suffix-length string-prefix-length-ci string-suffix-length-ci string-prefix? string-suffix? string-prefix-ci? string-suffix-ci? Searching String-compare string-compare-ci string string= string string= string-ci string-ci= string-ci string-ci= string-hash string-hash-ci Prefixes & suffixes String-length string-ref string-copy substring/shared string-copy! string-take string-take-right string-drop string-drop-right string-pad string-pad-right string-trim string-trim-right string-trim-both Modification String->list list->string reverse-list->string string-join Selection Make-string string string-tabulate List & string conversion String? string-null? string-every string-any Constructors Here is a list of the procedures provided by the string-lib The routines in this SRFI are backwards-compatible with the string-processing String-processing procedures it is accompanied by a reference implementation Scheme has an impoverished set of string-processing utilities, which is a Start/end optional argument parsing & checking utilities.Internationalisation & super-ASCII character types.String operations are locale- and context-independent.You can access previous messages via the mailing list archive. To subscribe to the list, follow these instructions. To provide input on this SRFI, please send email to. Here is an explanation of each status that a SRFI can hold. Is distributed as part of the Racket package

This copy of the SRFI 13 specification document

SRFI 13: String Libraries SRFI 13: String Libraries
