Content deleted Content added
Javascript -> JavaScript |
Added Tcl to the following tables: Concatenation,Find,Format,Length,Lowecase,Reverse,rfind,split,substring,Uppercase. Added an external link for Tcl string command reference. |
||
Line 473:
| <code>''string<sub>1</sub>'' <> ''string<sub>2</sub>''</code>
|[[Mathematica]]
|-
|concat ''string<sub>1</sub> string<sub>2</sub>''
|[[Tcl]]
|}
Line 516 ⟶ 519:
| Related
|}
¢ Example in [[ALGOL 68]] ¢
string in string("e", '''loc int''', "Hello mate"); ¢ returns '''true''' ¢
Line 821 ⟶ 750:
|-
| <code>index(''string'', ''substring'', ''startpos'' )</code>
|[[PL/I]]<ref name="contain1">''startpos'' is IBM extension.</ref>
|returns 0 (positions start at 1)
|-
| <code>''string''.indexOf(''substring''«,''startpos''«, ''charcount''»»)</code>
|[[Cobra (programming language)|Cobra]]
|returns −1
|-
|string first ''substring string startpos''
|[[Tcl]]
|returns −1
|}
Line 1,034 ⟶ 967:
|-
| <code>''formatstring''.format(''items'')</code>
|[[Python scripting language|Python]]
|.NET
|-
Line 1,096 ⟶ 1,029:
|[[Cobra (programming language)|Cobra]]
|.NET
|-
|format ''formatstring items''
|[[Tcl]]
|C
|}
Line 1,606 ⟶ 1,543:
| number of characters and number of bytes, respectively
| [[COBOL]]
|-
|string length ''string''
|a decimal string giving the number of characters
|[[Tcl]]
|}
Line 1,751 ⟶ 1,692:
| <code>''string''.toLower</code>
|[[Cobra (programming language)|Cobra]]
|-
|string tolower ''string''
|[[Tcl]]
|}
Line 2,006 ⟶ 1,950:
| <code>String(reverse(''string''))</code>
|[[Swift (programming language)|Swift]] (1.2)
|-
|string reverse ''string''
|[[Tcl]]
|}
Line 2,125 ⟶ 2,072:
|[[Smalltalk]]
|returns 0
|-
|string last ''substring string startpos''
|[[Tcl]]
|returns −1
|}
Line 2,340 ⟶ 2,291:
| <code>''string''.split«(''sepchars''«, ''limit''«, ''options''»»)»</code>
|[[Cobra (programming language)|Cobra]]
|-
|split ''string separator''
|[[Tcl]]
|}
Line 2,505 ⟶ 2,459:
|Ya
| <code>''string'' (''startpos'':''numChars'')</code>
|-
|string range ''string startpos endpos''
|[[Tcl]]
|
|}
Line 2,650 ⟶ 2,608:
| <code>''string''.toUpper</code>
|[[Cobra (programming language)|Cobra]]
|-
|string toupper ''string''
|[[Tcl]]
|}
Line 2,953 ⟶ 2,914:
*[http://www.freebasic.net/wiki/wikka.php?wakka=CatPgString FreeBASIC String Functions]
*[http://reference.wolfram.com/mathematica/guide/StringManipulation.html Reference.wolfram.com]
*[http://www.tcl.tk/man/tcl/TclCmd/string.htm Tcl reference for string commands]
[[Category:Programming language comparisons|*String functions]]
|