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

Changeset 3894

Show
Ignore:
Timestamp:
08/19/08 13:11:02 (4 months ago)
Author:
keinfarbton
Message:

all compiles now for DMD 2.018 on linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/experimental/D2.0/tango/net/ftp/FtpClient.d

    r3893 r3894  
    11601160 
    11611161        // We have to sniff this... :/. 
    1162         switch (! Text.contains ("0123456789", line[0])) 
     1162        switch (! Text.contains !(char)("0123456789", line[0])) 
    11631163            { 
    11641164                // Not a number; this is UNIX format. 
  • branches/experimental/D2.0/tango/sys/Environment.d

    r3893 r3894  
    8282 
    8383                // rifle through the path (after converting to standard format) 
    84                 foreach (pe; Text.patterns (standard(get("PATH")), FileConst.SystemPathString )) 
     84                foreach (pe; Text.patterns (standard(get("PATH")), FileConst.SystemPathString )) 
    8585                         if (bin.path(pe).exists) 
    8686                             version (Windows) 
  • branches/experimental/D2.0/tango/text/Util.d

    r3893 r3894  
    282282******************************************************************************/ 
    283283 
    284 bool contains(T) (T[] source, T match) 
     284bool contains(T) (const(T)[] source, T match) 
    285285{ 
    286286        return indexOf!(T) (source.ptr, match, source.length) != source.length; 
     
    331331******************************************************************************/ 
    332332 
    333 uint locatePrior(T, U=uint) (T[] source, T match, U start=uint.max) 
     333uint locatePrior(T, U=uint) (const(T)[] source, T match, U start=uint.max) 
    334334{return locatePrior!(T)(source, match, start);} 
    335335 
    336 uint locatePrior(T) (T[] source, T match, uint start=uint.max) 
     336uint locatePrior(T) (const(T)[] source, T match, uint start=uint.max) 
    337337{ 
    338338        if (start > source.length) 
     
    365365        if (match.length && extent <= source.length) 
    366366            while (extent) 
    367                    if ((idx = indexOf (p, match[0], extent)) is extent) 
     367                   if ((idx = indexOf !(T)(p, match[0], extent)) is extent) 
    368368                        break; 
    369369                   else 
     
    472472******************************************************************************/ 
    473473 
    474 T[][] delimit(T) (T[] src, T[] set) 
    475 { 
    476         T[][] result; 
     474const(T)[][] delimit(T) (const(T)[] src, const(T)[] set) 
     475{ 
     476        const(T)[][] result; 
    477477 
    478478        foreach (segment; delimiters!(T) (src, set)) 
     
    511511******************************************************************************/ 
    512512 
    513 T[][] splitLines(T) (T[] src) 
     513const(T)[][] splitLines(T) (const(T)[] src) 
    514514{ 
    515515        int count; 
     
    518518                 ++count; 
    519519 
    520         T[][] result = new T[][count]; 
     520        const(T)[][] result = new const(T)[][count]; 
    521521 
    522522        count = 0; 
     
    693693******************************************************************************/ 
    694694 
    695 uint indexOf(T, U=uint) (T* str, T match, U length) 
     695uint indexOf(T, U=uint) (const(T)* str, T match, U length) 
    696696{return indexOf!(T) (str, match, length);} 
    697697 
     
    892892******************************************************************************/ 
    893893 
    894 LineFruct!(T) lines(T) (T[] src) 
     894LineFruct!(T) lines(T) (const(T)[] src) 
    895895{ 
    896896        LineFruct!(T) lines; 
     
    918918******************************************************************************/ 
    919919 
    920 DelimFruct!(T) delimiters(T) (T[] src, T[] set) 
     920DelimFruct!(T) delimiters(T) (const(T)[] src, const(T)[] set) 
    921921{ 
    922922        DelimFruct!(T) elements; 
     
    12371237private struct LineFruct(T) 
    12381238{ 
    1239         private T[] src; 
    1240  
    1241         int opApply (int delegate ( ref T[] line) dg) 
     1239        private const(T)[] src; 
     1240 
     1241        int opApply (int delegate ( ref const(T)[] line) dg) 
    12421242        { 
    12431243                uint    ret, 
    12441244                        pos, 
    12451245                        mark; 
    1246                 T[]     line; 
     1246                const(T)[]     line; 
    12471247 
    12481248                const T nl = '\n'; 
     
    12861286private struct DelimFruct(T) 
    12871287{ 
    1288         private T[] src; 
    1289         private T[] set; 
    1290  
    1291         int opApply (int delegate (ref T[] token) dg) 
     1288        private const(T)[] src; 
     1289        private const(T)[] set; 
     1290 
     1291        int opApply (int delegate (ref const(T)[] token) dg) 
    12921292        { 
    12931293                uint    ret, 
    12941294                        pos, 
    12951295                        mark; 
    1296                 T[] token; 
     1296                const(T)[] token; 
    12971297 
    12981298                // optimize for single delimiter case