Mercurial > projects > dwt2
comparison base/src/java/lang/String.d @ 119:d00e8db0a568
Spell error.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 17 Apr 2011 17:58:36 +0200 |
parents | ff7053751d15 |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
118:ff7053751d15 | 119:d00e8db0a568 |
---|---|
559 version(Tango){ | 559 version(Tango){ |
560 int res = tango.text.Util.locatePrior( str, ch, formIndex ); | 560 int res = tango.text.Util.locatePrior( str, ch, formIndex ); |
561 if( res is str.length ) res = -1; | 561 if( res is str.length ) res = -1; |
562 return res; | 562 return res; |
563 } else { // Phobos | 563 } else { // Phobos |
564 return std.string.lastIndexOf(str[0 .. fromIndex], ch); | 564 return std.string.lastIndexOf(str[0 .. formIndex], ch); |
565 } | 565 } |
566 } | 566 } |
567 | 567 |
568 /// Extension to String | 568 /// Extension to String |
569 public int lastIndexOf(CString str, String ch ){ | 569 public int lastIndexOf(CString str, String ch ){ |