Lines Matching refs:lexer
14 CXFA_FMLexer lexer(L""); in TEST() local
15 std::unique_ptr<CXFA_FMToken> token = lexer.NextToken(); in TEST()
20 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"-12"); in TEST() local
21 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
24 token = lexer->NextToken(); in TEST()
26 token = lexer->NextToken(); in TEST()
29 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"1.5362"); in TEST()
30 token = lexer->NextToken(); in TEST()
34 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"0.875"); in TEST()
35 token = lexer->NextToken(); in TEST()
39 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"5.56e-2"); in TEST()
40 token = lexer->NextToken(); in TEST()
44 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"1.234E10"); in TEST()
45 token = lexer->NextToken(); in TEST()
49 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"123456789.012345678"); in TEST()
50 token = lexer->NextToken(); in TEST()
56 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"99999999999999999"); in TEST()
57 token = lexer->NextToken(); in TEST()
67 auto lexer = in TEST() local
69 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
73 token = lexer->NextToken(); in TEST()
76 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"\"\""); in TEST()
77 token = lexer->NextToken(); in TEST()
81 lexer = pdfium::MakeUnique<CXFA_FMLexer>( in TEST()
83 token = lexer->NextToken(); in TEST()
88 lexer = pdfium::MakeUnique<CXFA_FMLexer>( in TEST()
90 token = lexer->NextToken(); in TEST()
163 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(op[i].op); in TEST() local
164 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
170 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"// Empty."); in TEST() local
171 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
174 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"//"); in TEST()
175 token = lexer->NextToken(); in TEST()
178 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"123 // Empty.\n\"str\""); in TEST()
179 token = lexer->NextToken(); in TEST()
183 token = lexer->NextToken(); in TEST()
187 token = lexer->NextToken(); in TEST()
190 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L";"); in TEST()
191 token = lexer->NextToken(); in TEST()
194 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"; Empty."); in TEST()
195 token = lexer->NextToken(); in TEST()
198 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"123 ;Empty.\n\"str\""); in TEST()
199 token = lexer->NextToken(); in TEST()
203 token = lexer->NextToken(); in TEST()
207 token = lexer->NextToken(); in TEST()
215 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(ident); in TEST() local
216 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
223 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"#a"); in TEST() local
224 EXPECT_EQ(nullptr, lexer->NextToken()); in TEST()
226 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"1a"); in TEST()
227 EXPECT_EQ(nullptr, lexer->NextToken()); in TEST()
229 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"an@identifier"); in TEST()
230 EXPECT_NE(nullptr, lexer->NextToken()); in TEST()
231 EXPECT_EQ(nullptr, lexer->NextToken()); in TEST()
232 EXPECT_EQ(nullptr, lexer->NextToken()); in TEST()
234 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"_ident@"); in TEST()
235 EXPECT_NE(nullptr, lexer->NextToken()); in TEST()
236 EXPECT_EQ(nullptr, lexer->NextToken()); in TEST()
240 auto lexer = pdfium::MakeUnique<CXFA_FMLexer>(L" \t\xc\x9\xb"); in TEST() local
241 std::unique_ptr<CXFA_FMToken> token = lexer->NextToken(); in TEST()
244 lexer = pdfium::MakeUnique<CXFA_FMLexer>(L"123 \t\xc\x9\xb 456"); in TEST()
245 token = lexer->NextToken(); in TEST()
249 token = lexer->NextToken(); in TEST()
253 token = lexer->NextToken(); in TEST()