Lines Matching refs:p1
1138 char* p1 = nullptr; in TEST() local
1140 ASSERT_EQ(2, sscanf("hello", "%mc%mc", &p1, &p2)); in TEST()
1141 ASSERT_EQ('h', *p1); in TEST()
1143 free(p1); in TEST()
1146 p1 = nullptr; in TEST()
1147 ASSERT_EQ(1, sscanf("hello", "%4mc", &p1)); in TEST()
1148 ASSERT_EQ('h', p1[0]); in TEST()
1149 ASSERT_EQ('e', p1[1]); in TEST()
1150 ASSERT_EQ('l', p1[2]); in TEST()
1151 ASSERT_EQ('l', p1[3]); in TEST()
1152 free(p1); in TEST()
1154 p1 = nullptr; in TEST()
1155 ASSERT_EQ(1, sscanf("hello world", "%30mc", &p1)); in TEST()
1156 ASSERT_EQ('h', p1[0]); in TEST()
1157 ASSERT_EQ('e', p1[1]); in TEST()
1158 ASSERT_EQ('l', p1[2]); in TEST()
1159 ASSERT_EQ('l', p1[3]); in TEST()
1160 ASSERT_EQ('o', p1[4]); in TEST()
1161 free(p1); in TEST()
1170 wchar_t* p1 = nullptr; in TEST() local
1172 ASSERT_EQ(2, sscanf("hello", "%mlc%mlc", &p1, &p2)); in TEST()
1173 ASSERT_EQ(L'h', *p1); in TEST()
1175 free(p1); in TEST()
1178 p1 = nullptr; in TEST()
1179 ASSERT_EQ(1, sscanf("hello", "%4mlc", &p1)); in TEST()
1180 ASSERT_EQ(L'h', p1[0]); in TEST()
1181 ASSERT_EQ(L'e', p1[1]); in TEST()
1182 ASSERT_EQ(L'l', p1[2]); in TEST()
1183 ASSERT_EQ(L'l', p1[3]); in TEST()
1184 free(p1); in TEST()
1186 p1 = nullptr; in TEST()
1187 ASSERT_EQ(1, sscanf("hello world", "%30mlc", &p1)); in TEST()
1188 ASSERT_EQ(L'h', p1[0]); in TEST()
1189 ASSERT_EQ(L'e', p1[1]); in TEST()
1190 ASSERT_EQ(L'l', p1[2]); in TEST()
1191 ASSERT_EQ(L'l', p1[3]); in TEST()
1192 ASSERT_EQ(L'o', p1[4]); in TEST()
1193 free(p1); in TEST()
1245 wchar_t* p1 = nullptr; in TEST() local
1247 ASSERT_EQ(2, sscanf("1234567890123456789012345678901234567890 world", "%mls %mls", &p1, &p2)); in TEST()
1248 ASSERT_EQ(L"1234567890123456789012345678901234567890", std::wstring(p1)); in TEST()