Racket Libraries
6.1 双 and 􏿴
6.2 􏻿
6.3 􏿰
6.4 􏶃
6.5 􏷂
6.6 􏶿
6.7 
6.8 
6.9 􏺃
6.10 
6.11 Conditionals
6.12 
6.13 
6.14 未分类
On this page:
6.7.1 句 􏽀 􏽁, 句? 􏽀? 􏽁?, 􏼟?
6.7.2 􏽁化 􏽀化
6.7.3 􏼅, 􏼄
6.7.4 􏼃, 􏼁, 􏼂
6.7.5 􏺕, 􏼭, 邭
6.7.6 􏼘, 􏼘/  以􏾝, 􏼅𰅡
6.7.7 􏿴􏵷句 句􏵸􏿴 句化􏿴 􏿴化句
6.7.8 􏶐, 􏶊, 􏶋
6.7.9 􏼹?, 􏼸?, 邭?
6.7.10 􏶉 􏶈 􏶇 􏶆
6.7.11 ming/  racket/  base
句?
􏼅
􏽁化
􏺕
􏼭
􏼘
􏽀化
􏼘/  以􏾝
􏼅𰅡
􏼃
􏼁
句化􏿴
􏿴化句
􏼄
句=?
句<?
句<=?
句>?
句>=?
􏶅=?
􏶅<?
􏶅<=?
􏶅>?
􏶅>=?
􏶉
􏶈
􏶇
􏶆
6.7.12 ming/  racket/  string
􏼂
􏿴􏵷句
句􏵸􏿴
􏶋
􏶐
􏶊
􏼟?
邭?
􏼹?
􏼸?
8.15

6.7 🔗

Originates from Strings and extends to .

6.7.1 句 􏽀 􏽁, 句? 􏽀? 􏽁?, 􏼟?🔗

🐘 􏷂 􏶿

🐘 􏽀 􏽁

 
ideograph

  connotation : string
  originates from :
  originally means : sentences

Examples:  句? 句化􏿴 􏿴化句.

句B 
ideograph

  connotation : output type is string

Examples:  􏽀 􏼅 􏼄 􏼃 􏼂.

句L 
ideograph

  connotation : input type is string

Examples:  􏺕 􏼭 􏶐 􏶊 􏶋  􏶉 􏶈 􏶇 􏶆 􏼸? 􏼹?.

句R 
ideograph

  connotation : output type is string

Examples:
> ( #\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

6.7.2 􏽁化 􏽀化🔗

Examples:
> (􏽁? (􏽁化 ( #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g)))

#t

> (􏽀? (􏽀化 "ThisIsString"))

#t

6.7.3 􏼅, 􏼄🔗

🐘 􏼓 􏼎

􏼅 : + 句B
ideograph

  connotation : duplicated elements of string

􏼄 : + 句B
ideograph

  connotation : references resembled elements of string

Examples:
> (􏼅 5 #\t)

"ttttt"

> (􏼄 5 米化句)

string-set!: contract violation

  expected: char?

  given: "0"

6.7.4 􏼃, 􏼁, 􏼂🔗

🐘 􏿝 􏿜

􏼃 : + 句B
ideograph

  connotation : appended string

􏼂 : + + 句B
ideograph

  connotation : appended string with last input being 􏿴 type.

􏼁 : + 􏼃
ideograph

  connotation : immutable appended string

Examples:
> (􏼃 "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

6.7.5 􏺕, 􏼭, 邭🔗

🐘  is short for 句􏾝

􏺕 : +
ideograph

  connotation : measure string length

􏼭 : +
ideograph

  connotation : refers a specific element of string

: +
ideograph

  connotation : substring

Examples:
> (􏺕 "ThisIsString")

12

> (􏼭 "ThisIsString" 3)

#\s

> ( "ThisIsString" 3)

"sIsString"

> ( "ThisIsString" 3 8)

"sIsSt"

6.7.6 􏼘, 􏼘/以􏾝, 􏼅𰅡🔗

􏼘 : + +
ideograph

  connotation : directly change string

🐘 􏼅 􏻿􏾩 􏿰􏾩 􏻿􏾩/以􏾝

Examples:
> ( str ( #\T #\h #\i #\s #\I #\s #\S #\t #\r #\i #\n #\g))
> (􏼘 str 1 #\H)
> str

"THisIsString"

> (􏼘/以􏾝 str 0 "ABCDEFG" 2 4)
> str

"CDisIsString"

> (􏼅𰅡 str #\Z)
> str

"ZZZZZZZZZZZZ"

6.7.7 􏿴􏵷句 句􏵸􏿴 句化􏿴 􏿴化句🔗

Examples:
> (􏿴􏵷句 '("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"

6.7.8 􏶐, 􏶊, 􏶋🔗

􏶐 : +
ideograph

􏶊 : + 𡯂
ideograph

􏶋 : +
ideograph

Examples:
> (􏶐 "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+"

6.7.9 􏼹?, 􏼸?, 邭?🔗

🐘 

􏼹 : +
ideograph

􏼸 : +
ideograph

Examples:
> (􏼹? "ThisIsString" "Thi")

#t

> (􏼸? "ThisIsString" "ing")

#t

> (邭? "ThisIsString" "sIs")

#t

> (邭? "ThisIsString" "Thi")

#t

> (邭? "ThisIsString" "ing")

#t

6.7.10 􏶉 􏶈 􏶇 􏶆🔗

􏶉:  + AA.
ideograph
􏶈:  + aa.
ideograph
􏶇:  + Aa.
ideograph
􏶆:  + (ß -> ss).
ideograph
􏶅:  + (a in A).
ideograph

Examples:
> (􏶉 "string upper case")

"STRING UPPER CASE"

> (􏶈 "string lower case")

"string lower case"

> (􏶇 "string title case")

"String Title Case"

> (􏶆 "ßtring fold case")

"sstring fold case"

6.7.11 ming/racket/base🔗

word

句? :  + ? = string?

word

 :  = string

word

􏼅 : 􏼅 = make-string

word

􏽁化 : 􏽁 +  = string->immutable-string

word

􏺕 : 􏺕 = string-length

word

􏼭 : 􏼭 = string-ref

word

􏼘 : 􏼘 = string-set!

word

 :  = substring

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

句=? :  + = + ? = string=?

word

句<? :  + < + ? = string<?

word

句<=? :  + < + = + ? = string<=?

word

句>? :  + > + ? = string>?

word

句>=? :  + > + = + ? = string>=?

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

6.7.12 ming/racket/string🔗

 (require ming/racket/string) package: ming

word

􏼂 : 􏼂 = string-append*

word

􏿴􏵷句 : 􏿴 + 􏵷 +  = string-join

word

句􏵸􏿴 :  + 􏵸 + 􏿴 = string-split

word

􏶋 : 􏶋 = string-normalize-spaces

word

􏶐 : 􏶐 = string-replace

word

􏶊 : 􏶊 = string-trim

word

􏼟? : 􏼟 + ? = non-empty-string?

word

邭? :  + ? = string-contains?

word

􏼹? : 􏼹 + ? = string-prefix?

word

􏼸? : 􏼸 + ? = string-suffix?