vector-8b-set!)
(export ()
camel-case-string->lisp
- char->string
guarantee-substring
guarantee-substring-end-index
guarantee-substring-start-index
(substring-move-left! substring-move!)
(substring-move-right! substring-move!)
burst-string
+ char->string
decorated-string-append
string-find-next-char
string-find-next-char-ci
(define %words->octets-shift
(- %octets->words-shift))
-(define (char->string char)
- (guarantee 8-bit-char? char 'CHAR->STRING)
- (make-string 1 char))
-
(define (reverse-string string)
(guarantee-string string 'REVERSE-STRING)
(%reverse-substring string 0 (string-length string)))
(define (->string object caller)
(cond ((not object) "")
- ((bitless-char? object)
- (let ((s
- (if (char-8-bit? object)
- (legacy-string-allocate 1)
- (full-string-allocate 1))))
- (string-set! s 0 object)
- s))
+ ((bitless-char? object) (char->string object))
((string? object) object)
((symbol? object) (symbol->string object))
((pathname? object) (->namestring object))
(string-upper-case? (string-slice string start end)))
(define (string-null? string)
- (fix:= 0 (string-length string)))
\ No newline at end of file
+ (fix:= 0 (string-length string)))
+
+(define (char->string char)
+ (guarantee bitless-char? char 'char->string)
+ (let ((s
+ (if (char-8-bit? char)
+ (legacy-string-allocate 1)
+ (full-string-allocate 1))))
+ (string-set! s 0 char)
+ s))
\ No newline at end of file