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

📄 tst051.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
# testing string stuffs:= "hello world";t:= str.string(s,0,2);	io.print(t);t:= str.string(s,-4,2);	io.print(t);t:= str.string(s,0,15);	io.print(t);t:= str.string(nil:str,0,15);	io.print(t);t:= str.string(s,5);	io.print(t);t:= str.prefix(s,4);	io.print(t);t:= str.suffix(s,4);	io.print(t);i:= str.locate(s,"hello"); io.print(i);i:= str.locate(s,"xyz"); io.print(i);i:= str.locate(s,nil:str); io.print(i);i:= str.locate(nil:str,"hello"); io.print(i);i:= str.locate(nil:str,"xyz"); io.print(i);i:= str.locate(nil:str,nil:str); io.print(i);t:= str.repeat("abc",3);	io.print(t);t:= str.repeat(nil:str,3);	io.print(t);t:= str.insert("hello world",5,1,"brave new "); io.print(t);t:= str.insert("",5,1,"brave new "); io.print(t);t:= str.insert(nil:str,5,1,"brave new "); io.print(t);t:= str.insert("",5,1,"brave new "); io.print(t);t:= str.insert("",0,1,"brave new "); io.print(t);t:= str.insert("hello world",5,1,""); io.print(t);t:= str.insert("hello world",5,1,nil:str); io.print(t);t:= str.replace("hello world","world","brave new world"); io.print(t);

⌨️ 快捷键说明

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