Lines Matching refs:chars
1514 const char* chars = env_->GetStringUTFChars(s, nullptr); in TEST_F() local
1515 EXPECT_STREQ("\xf0\x90\x90\x80", chars); in TEST_F()
1516 env_->ReleaseStringUTFChars(s, chars); in TEST_F()
1541 chars = env_->GetStringUTFChars(s, nullptr); in TEST_F()
1542 EXPECT_STREQ("\xf0\x90\x90\x80 \xf0\x9f\x8f\xa0", chars); in TEST_F()
1543 env_->ReleaseStringUTFChars(s, chars); in TEST_F()
1554 jchar chars[] = { 'h', 'i' }; in TEST_F() local
1556 s = env_->NewString(chars, 0); in TEST_F()
1560 s = env_->NewString(chars, 2); in TEST_F()
1615 jchar chars[4] = { 'x', 'x', 'x', 'x' }; in TEST_F() local
1616 env_->GetStringRegion(s, 1, 2, &chars[1]); in TEST_F()
1617 EXPECT_EQ('x', chars[0]); in TEST_F()
1618 EXPECT_EQ('e', chars[1]); in TEST_F()
1619 EXPECT_EQ('l', chars[2]); in TEST_F()
1620 EXPECT_EQ('x', chars[3]); in TEST_F()
1690 const jchar* chars = env_->GetStringChars(s, nullptr); in TEST_F() local
1691 EXPECT_EQ(expected[0], chars[0]); in TEST_F()
1692 EXPECT_EQ(expected[1], chars[1]); in TEST_F()
1693 EXPECT_EQ(expected[2], chars[2]); in TEST_F()
1694 EXPECT_EQ(expected[3], chars[3]); in TEST_F()
1695 EXPECT_EQ(expected[4], chars[4]); in TEST_F()
1696 env_->ReleaseStringChars(s, chars); in TEST_F()
1699 chars = env_->GetStringChars(s, &is_copy); in TEST_F()
1705 EXPECT_EQ(expected[0], chars[0]); in TEST_F()
1706 EXPECT_EQ(expected[1], chars[1]); in TEST_F()
1707 EXPECT_EQ(expected[2], chars[2]); in TEST_F()
1708 EXPECT_EQ(expected[3], chars[3]); in TEST_F()
1709 EXPECT_EQ(expected[4], chars[4]); in TEST_F()
1710 env_->ReleaseStringChars(s, chars); in TEST_F()
1718 const jchar* chars = env_->GetStringCritical(s, nullptr); in TEST_F() local
1719 EXPECT_EQ(expected[0], chars[0]); in TEST_F()
1720 EXPECT_EQ(expected[1], chars[1]); in TEST_F()
1721 EXPECT_EQ(expected[2], chars[2]); in TEST_F()
1722 EXPECT_EQ(expected[3], chars[3]); in TEST_F()
1723 EXPECT_EQ(expected[4], chars[4]); in TEST_F()
1724 env_->ReleaseStringCritical(s, chars); in TEST_F()
1727 chars = env_->GetStringCritical(s, &is_copy); in TEST_F()
1734 EXPECT_EQ(expected[0], chars[0]); in TEST_F()
1735 EXPECT_EQ(expected[1], chars[1]); in TEST_F()
1736 EXPECT_EQ(expected[2], chars[2]); in TEST_F()
1737 EXPECT_EQ(expected[3], chars[3]); in TEST_F()
1738 EXPECT_EQ(expected[4], chars[4]); in TEST_F()
1739 env_->ReleaseStringCritical(s, chars); in TEST_F()
1745 chars = env_->GetStringCritical(s_16, &is_copy_16); in TEST_F()
1748 env_->ReleaseStringCritical(s_16, chars); in TEST_F()