Racket Libraries
5.1 双 and 􏿴
5.2 􏻿
5.3 􏿰
5.4 􏶃
5.5 􏷂
5.6 􏶿
5.7 
5.8 
5.9 􏺃
5.10 
5.11 Conditionals
5.12 
5.13 
On this page:
5.7.1 Overall
5.7.2 句 􏽀 􏽁, 句? 􏽀? 􏽁?, 􏼟?
5.7.3 􏽁化 􏽀化
5.7.4 􏼅, 􏼄
5.7.5 􏼃, 􏼁, 􏼂
5.7.6 􏺕, 􏼭, 邭
5.7.7 􏼘, 􏼘/  以􏾝, 􏼅𰅡
5.7.8 􏿴􏵷句 句􏵸􏿴 句化􏿴 􏿴化句
5.7.9 􏶐, 􏶊, 􏶋
5.7.10 􏼹?, 􏼸?, 邭?
5.7.11 􏶉 􏶈 􏶇 􏶆
5.7.12 ming/  racket/  base
句?
􏼅
􏽁化
􏺕
􏼭
􏼘
􏽀化
􏼘/  以􏾝
􏼅𰅡
􏼃
􏼁
句化􏿴
􏿴化句
􏼄
句=?
句<?
句<=?
句>?
句>=?
􏶅=?
􏶅<?
􏶅<=?
􏶅>?
􏶅>=?
􏶉
􏶈
􏶇
􏶆
5.7.13 ming/  racket/  string
􏼂
􏿴􏵷句
句􏵸􏿴
􏶋
􏶐
􏶊
􏼟?
邭?
􏼹?
􏼸?
8.16

5.7 🔗

Originates from Strings and extends to .

5.7.1 Overall🔗

Rule

Example

句B

 􏽀 􏼅 􏼄 􏼃 􏼂

句L

 􏺕 􏼭 􏶐 􏶊 􏶋  􏶉 􏶈 􏶇 􏶆

ideograph

  connotation : introduce a specific data type
  originates from :
  originally means : wrap, wrapper
Imagines it as a data spaces where specific content.
Examples:   􏷂 􏶿

5.7.2 句 􏽀 􏽁, 句? 􏽀? 􏽁?, 􏼟?🔗

🐘 􏷂 􏶿

🐘 􏽀 􏽁

: +
ideograph

  connotation : string, introduce a string data type
  originates from :
  originally means : sentences
introduces a space of a specific data type, where the inside doesn’t have a specific meaning, it is just a placehold to distinguish it between 􏷂 or 􏶿. All of the three characters are similar data types, this is also the reason they share .
Examples:  句? 句化􏿴 􏿴化句

句B : + B
ideograph

  connotation : output type is string
Examples:  􏽀 􏼅 􏼄 􏼃 􏼂
句L : + L
ideograph

  connotation : input type is string
Examples:  􏺕 􏼭 􏶐 􏶊 􏶋  􏶉 􏶈 􏶇 􏶆 􏼸? 􏼹?
句R : + 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

5.7.3 􏽁化 􏽀化🔗

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

#t

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

#t

5.7.4 􏼅, 􏼄🔗

🐘 􏼓 􏼎

􏼅 : + 句B
ideograph

  connotation : generate string of duplicated elements
􏼄 : + 句B
ideograph

  connotation : generate string of index like elements

Examples:
> (􏼅 5 #\t)

"ttttt"

> (􏼄 5 米化句)

string-set!: contract violation

  expected: char?

  given: "0"

5.7.5 􏼃, 􏼁, 􏼂🔗

🐘 􏿝 􏿜

􏼃 : + 句B
ideograph

  connotation : appended string
􏼂 : + + 句B
ideograph
Appends strings 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

5.7.6 􏺕, 􏼭, 邭🔗

🐘  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"

5.7.7 􏼘, 􏼘/以􏾝, 􏼅𰅡🔗

􏼘 : + +
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"

5.7.8 􏿴􏵷句 句􏵸􏿴 句化􏿴 􏿴化句🔗

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"

5.7.9 􏶐, 􏶊, 􏶋🔗

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

5.7.10 􏼹?, 􏼸?, 邭?🔗

🐘 

􏼹 : +
ideograph
􏼸 : +
ideograph

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

#t

> (􏼸? "ThisIsString" "ing")

#t

> (邭? "ThisIsString" "sIs")

#t

> (邭? "ThisIsString" "Thi")

#t

> (邭? "ThisIsString" "ing")

#t

5.7.11 􏶉 􏶈 􏶇 􏶆🔗

􏶉:  + 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"

5.7.12 ming/racket/base🔗

transformer

句? :  + ?SFX = string?

transformer

 :  = string

transformer

􏼅 : 􏼅 = make-string

transformer

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

transformer

􏺕 : 􏺕 = string-length

transformer

􏼭 : 􏼭 = string-ref

transformer

􏼘 : 􏼘 = string-set!

transformer

 :  = substring

transformer

􏽀化 : 􏽀 +  = string-copy

transformer

􏼘/以􏾝 : 􏼘 + / + + 􏾝 = string-copy!

transformer

􏼅𰅡 : 􏼅 + 𰅡 = string-fill!

transformer

􏼃 : 􏼃 = string-append

transformer

􏼁 :  + 􏼃 = string-append-immutable

transformer

句化􏿴 :  + + 􏿴 = string->list

transformer

􏿴化句 : 􏿴 + +  = list->string

transformer

􏼄 : 􏼄 = build-string

transformer

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

transformer

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

transformer

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

transformer

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

transformer

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

transformer

􏶅=? : 􏶅 + =? = string-ci=?

transformer

􏶅<? : 􏶅 + <? = string-ci<?

transformer

􏶅<=? : 􏶅 + <=? = string-ci<=?

transformer

􏶅>? : 􏶅 + <=? = string-ci>?

transformer

􏶅>=? : 􏶅 + >=? = string-ci>=?

transformer

􏶉 : 􏶉 = string-upcase

transformer

􏶈 : 􏶈 = string-downcase

transformer

􏶇 : 􏶇 = string-titlecase

transformer

􏶆 : 􏶆 = string-foldcase

5.7.13 ming/racket/string🔗

 (require ming/racket/string) package: ming

transformer

􏼂 : 􏼂 = string-append*

transformer

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

transformer

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

transformer

􏶋 : 􏶋 = string-normalize-spaces

transformer

􏶐 : 􏶐 = string-replace

transformer

􏶊 : 􏶊 = string-trim

transformer

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

transformer

邭? :  + ?SFX = string-contains?

transformer

􏼹? : 􏼹 + ?SFX = string-prefix?

transformer

􏼸? : 􏼸 + ?SFX = string-suffix?