⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tstring.exp

📁 早期freebsd实现
💻 EXP
字号:
an empty String:A string initialized to Hello:HelloA string initialized to previous string:HelloA string initialized to previous string.at(1, 2):elA string initialized to @:@A string initialized to dec(20):20n = 20 atoi(n) = 20 atof(n) = 20z = x + y = Helloworldx += y; x = Helloworldy.prepend(x); y = Helloworldcat(x, y, x, x); x = HelloworldHellocat(y, x, x, x); x = worldHelloHelloz = x + s +  + y.at(w) + y.after(w) + . = Hello, world.ch = x[0] = Hz = x.at(2, 3) = llox.at(2, 2) = r; x = Herox.at(0, 1) = j; x = jellox.at(He) = je; x = jellox.at(l, -1) = i; x = Helioz = x.at(r) = elloz = x.before(o) = Hellx.before(ll) = Bri; x = Brilloz = x.before(2) = Hez = x.after(Hel) = lox.after(Hel) = p; x = Helpz = x.after(3) = oz =   a bc; z = z.after(RXwhite); z =a bcx.gsub(l, ll); x = Hellllox.gsub(r, ...); x = Hello should have been replaced by this stringx.gsub(RXwhite, #); x = Hello#should#have#been#replaced#by#this#stringz = x+y; z.del(loworl); z = Heldreverse(x) = olleHx.reverse() = olleHupcase(x) = HELLOdowncase(x) = hellocapitalize(x) = Helloz = replicate(*, 10) = **********z = This string	hasfive wordsfrom split(z, RXwhite, w, 10), n words = 5:Thisstringhasfivewordsz = join(w, nw, /); z =This/string/has/five/wordsenter a word:word =abcdefghijklmnopqrstuvwxyz length = 26End of test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -