support jquery style element / css style / id lookups of elements on a document/element - along with test cases

This commit is contained in:
James Strachan
2012-02-27 08:49:47 +00:00
parent 9e6a9e2dc7
commit dd36efd24d
3 changed files with 92 additions and 6 deletions
+2
View File
@@ -10,6 +10,8 @@ inline fun String.equalsIgnoreCase(anotherString: String) = (this as java.lang.S
inline fun String.indexOf(str : String) = (this as java.lang.String).indexOf(str)
inline fun String.matches(regex : String): Boolean = (this as java.lang.String).matches(regex)
inline fun String.indexOf(str : String, fromIndex : Int) = (this as java.lang.String).indexOf(str, fromIndex)
inline fun String.replace(oldChar: Char, newChar : Char) = (this as java.lang.String).replace(oldChar, newChar).sure()