Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 4 and Version 5 of StdLib/StringLib

Show
Ignore:
Author:
JarrettBillingsley (IP: 71.199.122.84)
Timestamp:
11/03/07 00:34:39 (16 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StdLib/StringLib

    v4 v5  
    9797 
    9898As this example shows, if you pass "reverse" to the `opApply` function, either directly or as the second part of the `foreach` container, the iteration will go in reverse, starting at the end of the string. 
     99 
     100== '''`s.startsWith(string)`''' == 
     101 
     102Returns a bool of whether or not `s` starts with the substring `string`.  This is case-sensitive. 
     103 
     104== '''`s.endsWith(string)`''' == 
     105 
     106Returns a bool of whether or not `s` ends with the substring `string`.  This is case-sensitive. 
     107 
     108== '''`s.istartsWith(string)`''' == 
     109 
     110Returns a bool of whether or not `s` starts with the substring `string`.  This is case-insensitive. 
     111 
     112== '''`s.iendsWith(string)`''' == 
     113 
     114Returns a bool of whether or not `s` ends with the substring `string`.  This is case-insensitive.