Home | History | Annotate | Download | only in protobuf

Lines Matching defs:string

94     assertTrue("substring must contain the tail of the string",
133 String testString = "I love unicode \u1234\u5678 characters";
136 assertTrue("copyFrom string must respect the charset",
141 String testString = "I love unicode \u1234\u5678 characters";
144 assertTrue("copyFromUtf8 string must respect the charset",
179 + "byte string", ByteString.EMPTY, byteString);
404 String testString = "I love unicode \u1234\u5678 characters";
417 "String built from newOutput(int) must contain the expected bytes",
438 assertTrue("String built from newOutput() must contain the expected bytes",
458 assertTrue("String built from newOutput() must contain the expected bytes",
493 assertTrue("String built from newOutput() must contain the expected bytes",
523 assertTrue("String built from newCodedBuilder() must contain the expected bytes",
539 assertTrue("Substring must be equal to literal string",
541 assertEquals("Substring must have same hashcode as literal string",
587 assertTrue("Composite string must be equal to literal string",
589 assertEquals("Composite string must have same hashcode as literal string",
605 assertTrue("Concatenated string must be equal to literal string",
607 assertEquals("Concatenated string must have same hashcode as literal string",
625 assertTrue("String with concatenated nulls must equal simple concatenate",
627 assertEquals("String with concatenated nulls have same hashcode as simple concatenate",
656 // trees of empty leaves, to make a string that will fail this test.
669 ByteString string = ByteString.copyFrom(bytes);
672 assertTrue(string.startsWith(ByteString.EMPTY));
673 assertTrue(string.startsWith(string));
674 assertTrue(string.startsWith(prefix));
675 assertFalse(string.startsWith(suffix));
684 ByteString string = ByteString.copyFrom(bytes);
687 assertTrue(string.endsWith(ByteString.EMPTY));
688 assertTrue(string.endsWith(string));
689 assertTrue(string.endsWith(suffix));
690 assertFalse(string.endsWith(prefix));