Changeset 1218

Show
Ignore:
Timestamp:
07/04/09 15:00:40 (3 years ago)
Author:
andrei
Message:

added ifind, rfind, and irfind for (in char[], in char[]) for backwards compatibility

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phobos/std/string.d

    r1217 r1218  
    41704170    return lastIndexOf(s, c, CaseSensitive.no); 
    41714171} 
     4172 
     4173deprecated int ifind(in char[] s, in char[] c) 
     4174{ 
     4175    return indexOf(s, c, CaseSensitive.no); 
     4176} 
     4177 
     4178deprecated int rfind(in char[] s, in char[] c) 
     4179{ 
     4180    return lastIndexOf(s, c, CaseSensitive.yes); 
     4181} 
     4182 
     4183deprecated int irfind(in char[] s, in char[] c) 
     4184{ 
     4185    return lastIndexOf(s, c, CaseSensitive.no); 
     4186}