String matching: Difference between revisions

Content added Content deleted
No edit summary
Line 3,765: Line 3,765:
=={{header|Smalltalk}}==
=={{header|Smalltalk}}==
<lang smalltalk>a startsWith: b
<lang smalltalk>a startsWith: b
a includesSubCollection: b
a includesSubCollection: b. "inherited from superclass"
a includesString: b. "the same, but more readable"
a endsWith: b
a endsWith: b
a indexOfSubCollection: b
a indexOfSubCollection: b "inherited"
a indexOfSubCollection: b startingAt: pos</lang>
a indexOfSubCollection: b startingAt: pos "inherited
a indexOfString: b
a indexOfStringStartingAt: b
</lang>


=={{header|SNOBOL4}}==
=={{header|SNOBOL4}}==