5.8 句
Originates from Strings and Extends to 句.
5.8.1 Naming Rules
Overall Naming Rules
Rules | Connotation | Elucidation | Examples |
句 as component on the bottom | indicate output type | output type is 句 | |
句 as compoment on the right | indicate output type | output type is 句 | |
句 as component on the left | indicate input type | input type is 句 |
5.8.2 句 , 句? ? ?, ?
> (句 #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g) "ThisIsString"
> (句? (句 #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)) #t
> (? (句 #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)) #t
> (? (句 #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)) #f
> (? "ThisIsString") #t
> (句? "ThisIsString") #t
> (? "ThisIsString") #t
> (? "") #f
5.8.3 化 化
5.8.4 ,
5.8.5 , ,
> ( "AAA" "BBB" "CCC") "AAABBBCCC"
> ( "AAA" "BBB" "CCC") "AAABBBCCC"
> ( "AAA" "BBB" '("CCC" "DDD")) "AAABBBCCCDDD"
> (? ( "AAA" "BBB" "CCC")) #f
> (? ( "AAA" "BBB" "CCC")) #t
> (? ( "AAA" "BBB" '("CCC" "DDD"))) #f
5.8.6 , , 邭
5.8.7 , /以, 𰅡
5.8.8
> ( '("This" "Is" "String")) "This Is String"
> ( '("This" "Is" "String") "") "ThisIsString"
> ( '("This" "Is" "String") "-") "This-Is-String"
> ( "This Is String") '("This" "Is" "String")
> ( "This Is String" "") '("" "T" "h" "i" "s" " " "I" "s" " " "S" "t" "r" "i" "n" "g" "")
> ( "This Is String" " ") '("This" "Is" "String")
> ( "This-Is-String" "-") '("This" "Is" "String")
5.8.9 句化 化句
> ( '("This" "Is" "String")) "This Is String"
> ( '("This" "Is" "String") "") "ThisIsString"
> ( '("This" "Is" "String") "-") "This-Is-String"
> ( "This Is String") '("This" "Is" "String")
> ( "This Is String" "") '("" "T" "h" "i" "s" " " "I" "s" " " "S" "t" "r" "i" "n" "g" "")
> ( "This Is String" " ") '("This" "Is" "String")
> ( "This-Is-String" "-") '("This" "Is" "String")
> (句化 "ThisIsString") '(#\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)
> (化句 '(#\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)) "ThisIsString"
5.8.10 , ,
> ( "ThisIsString" "Is" "Isnot") "ThisIsnotString"
> ( "\n\r this is string \n\r\n") "this is string"
> ( "---this--is--string---" "-" #:repeat? #t) "this--is--string"
> 89 89
> ( "\n\rthis is \n\r string \n\r\n") "this is string"
> ( "---this--is--string---" "-" "+" #:repeat? #t #:trim? #f) "+this+is+string+"
5.8.11 句?, 句𨚞?, 邭?
> (句? "ThisIsString" "Thi") #t
> (句𨚞? "ThisIsString" "ing") #t
> (邭? "ThisIsString" "sIs") #t
> (邭? "ThisIsString" "Thi") #t
> (邭? "ThisIsString" "ing") #t
5.8.12
5.8.13 ming/racket/base
word
word
word
: = make-string
word
化 : + 化 = string->immutable-string
word
: = string-length
word
: = string-ref
word
: = string-set!
word
word
化 : + 化 = string-copy
word
/以 : + / + 以 = string-copy!
word
𰅡 : + 𰅡 = string-fill!
word
: = string-append
word
: 山 + = string-append-immutable
word
句化 : 句 + 化 + = string->list
word
化句 : + 化 + 句 = list->string
word
: = build-string
word
word
word
word
word
word
=? : + =? = string-ci=?
word
<? : + <? = string-ci<?
word
<=? : + <=? = string-ci<=?
word
>? : + <=? = string-ci>?
word
>=? : + >=? = string-ci>=?
word
: = string-upcase
word
: = string-downcase
word
: = string-titlecase
word
: = string-foldcase
(require ming/racket/base) | package: ming |
5.8.14 ming/racket/string
(require ming/racket/string) | package: ming |
word
: = string-append*
word
: = string-join
word
: = string-split
word
word
: = string-replace
word
: = string-trim
word
? : + ? = non-empty-string?
word
邭? : 邭 + ? = string-contains?
word
句? : 句 + + ? = string-prefix?
word
句𨚞? : 句 + 𨚞 + ? = string-suffix?