Lines Matching refs:foo
76 String foo = "boo:and:foo";
78 ck(foo.matches("b+"), false);
79 ck(foo.matches("o+"), false);
80 ck(foo.matches("b..:and:f.*"), true);
82 ck(foo.replaceAll("oo", "uu"), "buu:and:fuu");
83 ck(foo.replaceAll("o+", "<$0>"), "b<oo>:and:f<oo>");
85 ck(foo.replaceFirst("oo", "uu"), "buu:and:foo");
86 ck(foo.replaceFirst("o+", "<$0>"), "b<oo>:and:foo");
88 ck(foo.split(":"), new String[] { "boo", "and", "foo" });
89 ck(foo.split("o"), new String[] { "b", "", ":and:f" });
91 ck(foo.split(":", 2), new String[] { "boo", "and:foo" });
92 ck(foo.split("o", -2), new String[] { "b", "", ":and:f", "", "" });