Lines Matching refs:pos
18 size_t pos; in TEST() local
22 "\xbc\xce\xb5", &pos)); in TEST()
23 EXPECT_EQ(35, pos); in TEST()
25 EXPECT_EQ(1, valid_utf8_string("Playback", &pos)); in TEST()
26 EXPECT_EQ(8, pos); in TEST()
28 EXPECT_EQ(1, valid_utf8_string("The Euro sign: \xe2\x82\xac", &pos)); in TEST()
29 EXPECT_EQ(18, pos); in TEST()
32 EXPECT_EQ(1, valid_utf8_string("\x01", &pos)); in TEST()
33 EXPECT_EQ(1, pos); in TEST()
34 EXPECT_EQ(1, valid_utf8_string("\xc2\x80", &pos)); in TEST()
35 EXPECT_EQ(2, pos); in TEST()
36 EXPECT_EQ(1, valid_utf8_string("\xe0\xa0\x80", &pos)); in TEST()
37 EXPECT_EQ(3, pos); in TEST()
38 EXPECT_EQ(1, valid_utf8_string("\xe1\x80\x80", &pos)); in TEST()
39 EXPECT_EQ(3, pos); in TEST()
40 EXPECT_EQ(1, valid_utf8_string("\xf0\x90\x80\x80", &pos)); in TEST()
41 EXPECT_EQ(4, pos); in TEST()
42 EXPECT_EQ(1, valid_utf8_string("\xf1\x80\x80\x80", &pos)); in TEST()
43 EXPECT_EQ(4, pos); in TEST()
46 EXPECT_EQ(1, valid_utf8_string("\x7f", &pos)); in TEST()
47 EXPECT_EQ(1, pos); in TEST()
48 EXPECT_EQ(1, valid_utf8_string("\xdf\xbf", &pos)); in TEST()
49 EXPECT_EQ(2, pos); in TEST()
50 EXPECT_EQ(1, valid_utf8_string("\xef\xbf\xbf", &pos)); in TEST()
51 EXPECT_EQ(3, pos); in TEST()
52 EXPECT_EQ(1, valid_utf8_string("\xf4\x8f\xbf\xbf", &pos)); in TEST()
53 EXPECT_EQ(4, pos); in TEST()
56 EXPECT_EQ(1, valid_utf8_string("\xed\x9f\xbf", &pos)); in TEST()
57 EXPECT_EQ(3, pos); in TEST()
58 EXPECT_EQ(1, valid_utf8_string("\xee\x80\x80", &pos)); in TEST()
59 EXPECT_EQ(3, pos); in TEST()
60 EXPECT_EQ(1, valid_utf8_string("\xef\xbf\xbd", &pos)); in TEST()
61 EXPECT_EQ(3, pos); in TEST()
62 EXPECT_EQ(1, valid_utf8_string("\xf0\xbf\xbf\xbf", &pos)); in TEST()
63 EXPECT_EQ(4, pos); in TEST()
66 EXPECT_EQ(1, valid_utf8_string("\xef\xbb\xbf", &pos)); in TEST()
67 EXPECT_EQ(3, pos); in TEST()
71 EXPECT_EQ(1, valid_utf8_string("U+FFFE: \xef\xbf\xbe", &pos)); in TEST()
72 EXPECT_EQ(11, pos); in TEST()
73 EXPECT_EQ(1, valid_utf8_string("U+FDD0: \xef\xb7\x90", &pos)); in TEST()
74 EXPECT_EQ(11, pos); in TEST()
75 EXPECT_EQ(1, valid_utf8_string("\xf0\x9f\xbf\xbe", &pos)); in TEST()
76 EXPECT_EQ(4, pos); in TEST()
80 size_t pos; in TEST() local
83 EXPECT_EQ(0, valid_utf8_string("\x80", &pos)); in TEST()
84 EXPECT_EQ(0, pos); in TEST()
85 EXPECT_EQ(0, valid_utf8_string("\xbf", &pos)); in TEST()
86 EXPECT_EQ(0, pos); in TEST()
87 EXPECT_EQ(0, valid_utf8_string("\x80\xbf", &pos)); in TEST()
88 EXPECT_EQ(0, pos); in TEST()
89 EXPECT_EQ(0, valid_utf8_string("\xc2\x80\xbf", &pos)); in TEST()
90 EXPECT_EQ(2, pos); in TEST()
93 EXPECT_EQ(0, valid_utf8_string("\xc2 \xc3 \xc4 ", &pos)); in TEST()
94 EXPECT_EQ(1, pos); in TEST()
97 EXPECT_EQ(0, valid_utf8_string("\xf4\x90\xbf\xbf", &pos)); in TEST()
98 EXPECT_EQ(1, pos); in TEST()
99 EXPECT_EQ(0, valid_utf8_string(" \xf5\x80", &pos)); in TEST()
100 EXPECT_EQ(1, pos); in TEST()
101 EXPECT_EQ(0, valid_utf8_string(" \xe0\x80\x80", &pos)); in TEST()
102 EXPECT_EQ(2, pos); in TEST()
103 EXPECT_EQ(0, valid_utf8_string("\xf4\x80\x80\xcf", &pos)); in TEST()
104 EXPECT_EQ(3, pos); in TEST()
107 EXPECT_EQ(0, valid_utf8_string("\xf4\x80", &pos)); in TEST()
108 EXPECT_EQ(2, pos); in TEST()
111 EXPECT_EQ(0, valid_utf8_string("\xff", &pos)); in TEST()
112 EXPECT_EQ(0, pos); in TEST()
113 EXPECT_EQ(0, valid_utf8_string("\xfe", &pos)); in TEST()
114 EXPECT_EQ(0, pos); in TEST()
118 "many bytes: \xe0\x80\xaf", &pos)); in TEST()
119 EXPECT_EQ(53, pos); in TEST()
121 "many bytes: \xf0\x80\x80\xaf", &pos)); in TEST()
122 EXPECT_EQ(53, pos); in TEST()
126 "many bytes: \xe0\x80\x80", &pos)); in TEST()
127 EXPECT_EQ(55, pos); in TEST()
129 "many bytes: \xf0\x80\x80\x80", &pos)); in TEST()
130 EXPECT_EQ(55, pos); in TEST()
133 EXPECT_EQ(0, valid_utf8_string("\xed\xa0\x80", &pos)); in TEST()
134 EXPECT_EQ(1, pos); in TEST()
135 EXPECT_EQ(0, valid_utf8_string("\xed\xad\xbf", &pos)); in TEST()
136 EXPECT_EQ(1, pos); in TEST()
137 EXPECT_EQ(0, valid_utf8_string("\xed\xae\x80", &pos)); in TEST()
138 EXPECT_EQ(1, pos); in TEST()
139 EXPECT_EQ(0, valid_utf8_string("\xed\xaf\xbf", &pos)); in TEST()
140 EXPECT_EQ(1, pos); in TEST()
141 EXPECT_EQ(0, valid_utf8_string("\xed\xb0\x80", &pos)); in TEST()
142 EXPECT_EQ(1, pos); in TEST()
143 EXPECT_EQ(0, valid_utf8_string("\xed\xbe\x80", &pos)); in TEST()
144 EXPECT_EQ(1, pos); in TEST()
145 EXPECT_EQ(0, valid_utf8_string("\xed\xbf\xbf", &pos)); in TEST()
146 EXPECT_EQ(1, pos); in TEST()