Comparison of programming languages (string functions): Difference between revisions

Content deleted Content added
m top: Simplified hatnote syntax using AWB
FrescoBot (talk | contribs)
m Bot: link syntax and minor changes
Line 1,145:
|-
| <code>''string<sub>1</sub>'' <> ''string<sub>2</sub>''</code>
|[[BASIC]], [[Visual Basic|VB]], [[Visual Basic .NET|VB .NET]], [[Pascal (programming language)|Pascal]], [[Object Pascal]] ([[Delphi (programming language)|Delphi]]), [[OCaml]], [[PHP]], [[Seed7]], [[Standard ML]], [[F Sharp (programming language)|F#]], [[COBOL]], [[Cobra (programming language)|Cobra]], [[Python 2]] (deprecated)
|-
| <code>''string<sub>1</sub>'' # ''string<sub>2</sub>''</code>
Line 2,402:
| <code>substring(''string'', ''startpos'', ''endpos'')</code> returns string <br /> <code>substr(''string'', ''startpos'', ''numChars'')</code> returns string
|-
! Description
| Returns a substring of ''string'' between starting at ''startpos'' and ''endpos'', or starting at ''startpos'' of length ''numChars''. The resulting string is truncated if there are fewer than ''numChars'' characters beyond the starting point. ''endpos'' represents the index after the last character in the substring.
|}