📄 builtin.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>JIL native types prototypes</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.4 (Win32)">
<META NAME="CREATED" CONTENT="20050212;22242853">
<META NAME="CHANGED" CONTENT="20050615;19311303">
</HEAD>
<BODY LANG="de-DE" DIR="LTR">
<H1><FONT FACE="Arial, sans-serif">string methods</FONT></H1>
<P><FONT FACE="Arial, sans-serif"><B>These are the prototypes of the
built-in string methods:</B></FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method </FONT><FONT COLOR="#000000">string</FONT><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">accessor long </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">accessor long </FONT></SPAN>lastChar<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT></SPAN>Compare<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>s<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT></SPAN>CharAt<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT></SPAN>FindChar<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>chr, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT></SPAN>FindCharReverse<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>chr, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT></SPAN>FindString<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>s, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>SpanIncluding<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>charSet, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>SpanExcluding<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>charSet, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>Insert<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>s, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>InsertChar<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>chr, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>Remove<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>Replace<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>search, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>replace<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>SubString<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method </FONT></SPAN>Fill<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>chr, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>Trim<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>ToUpper<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>ToLower<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;</PRE><H1>
<FONT FACE="Arial, sans-serif">array methods</FONT></H1>
<P><FONT FACE="Arial, sans-serif"><B>These are the prototypes of the
built-in array methods:</B></FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method </FONT><FONT COLOR="#000000">array</FONT><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">accessor long </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method array </FONT></SPAN>Duplicate<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method array </FONT></SPAN>Insert<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const array</FONT><FONT COLOR="#000000">& </FONT></SPAN>src, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method array </FONT></SPAN>InsertItem<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const var</FONT><FONT COLOR="#000000">& item</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method array </FONT></SPAN>Remove<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method array </FONT></SPAN>SubArray<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>length<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method </FONT></SPAN>Swap<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index1, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>index2<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string </FONT></SPAN>ToString<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>format<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;</PRE>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -