Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 4 and Version 5 of TextPatternExample

Show
Ignore:
Author:
Jordi Sayol (IP: 188.119.210.222)
Timestamp:
04/20/12 14:09:34 (12 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TextPatternExample

    v4 v5  
    1212void main() 
    1313{ 
    14         char[] source = "all cows eat grass"; 
     14        string source = "all cows eat grass"; 
    1515 
    1616        // split into an array 
    17         char[][] elements = Text.split (source, "eat"); 
     17        string[] elements = Text.split (source, "eat"); 
    1818        foreach (element; elements) 
    1919                 Cout(element).newline;