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

📄 str.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
#line 67 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/atoms/str.mx"module str;command str(s:str):str address STRtostrcomment "Noop routine.";command string(s:str,offset:int) :str address STRTailcomment "Return the tail s[offset..n] 	 of a string s[0..n].";command string(s:str,offset:int,count:int):str address STRSubStringcomment "Return substring s[offset..offset+count] of a string s[0..n]";command +( l:str, r:str) :str address STRConcatcomment "Concatenate two strings.";command length( s:str ) :int address STRLengthcomment "Return the length of a string.";command stringlength( s:str ) :int address STRstringLengthcomment "Return the length of a right trimed string (SQL semantics).";command nbytes( s:str ) :int address STRBytescomment "Return the string length in bytes.";command chrAt( s:str, index:int) :chr address STRChrAtcomment "String array lookup operation.";command unicodeAt(s:str, index:int) :int address STRWChrAtcomment "get a unicode character 	(as an int) from a string position.";command unicode(wchar:int) :str address STRFromWChrcomment "convert a unicode to a character.";command codeset() :str address STRcodesetcomment "Return the locale's codeset";command iconv(org:str,fromCs:str,toCs:str):str address STRIconvcomment "String codeset conversion";command startsWith(s:str,prefix:str):bit address STRPrefixcomment "Prefix check.";command endsWith( s:str, suffix:str ) :bit address STRSuffixcomment "Suffix check.";command toLower( s:str ) :str address STRLowercomment "Convert a string to lower case.";command toUpper( s:str ) :str address STRUppercomment "Convert a string to upper case.";command search( s:str, c:str ) :int address STRstrSearchcomment "Search for a substring. Returns 	 position, -1 if not found.";command search( s:str, c:chr ) :int address STRchrSearchcomment "Search for a character. Returns 	 position, -1 if not found.";command r_search( s:str, c:str ) :int address STRReverseStrSearchcomment "Reverse search for a substring. Returns 	 position, -1 if not found.";command r_search( s:str, c:chr ) :int address STRReverseChrSearchcomment "Reverse search for a char. Returns 	 position, -1 if not found.";command trim( s:str ) :str address STRStripcomment "Strip whitespaces around a string.";command ltrim( s:str ) :str address STRLtrimcomment "Strip whitespaces from start of a string.";command rtrim( s:str ) :str address STRRtrimcomment "Strip whitespaces from end of a string.";command substitute(s:str,src:str,dst:str,rep:bit)	:str address STRSubstitutecomment "Substitute first occurrence of 'src' by 	'dst'.  Iff repeated = true this is 	repeated while 'src' can be found in the 	result string. In order to prevent 	recursion and result strings of unlimited 	size, repeating is only done iff src is 	not a substring of dst.";command like(s:str,pat:str):bitaddress STRlikewrap2comment "SQL pattern match function";command like(s:str,pat:str,esc:str):bitaddress STRlikewrapcomment "SQL pattern match function";command ascii(s:str):intaddress STRasciicomment "Return unicode of head of string";command substring(s:str, start:int):straddress STRsubstringTailcomment "Extract the tail of a string";command substring(s:str, start:int, len:int):straddress STRsubstringcomment "Extract a substring from str starting at start, for length len";command prefix(s:str,l:int):straddress STRprefixcomment "Extract the prefix of a given length";command suffix(s:str,l:int):straddress STRsuffixcomment "Extract the suffix of a given length";command stringleft(s:str,l:int):straddress STRprefix;command stringright(s:str,l:int):straddress STRsuffix;command locate(s1:str,s2:str):intaddress STRlocatecomment "Locate the start position of a string";command locate(s1:str,s2:str,start:int)address STRlocate2comment "Locate the start position of a string";command insert(s:str,start:int,l:int,s2:str):straddress STRinsertcomment "Insert a string into another";command replace(s:str,pat:str,s2:str):straddress STRreplacecomment "Insert a string into another";command repeat(s2:str,c:int):straddress STRrepeat;command space(l:int):straddress STRspace;command STRprelude() :voidaddress strPrelude;command STRepilogue() :voidaddress strEpilogue;str.STRprelude();	

⌨️ 快捷键说明

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