Lines Matching refs:text

22 // the current char in terms of the original text of the TokenizedString. The
41 void TestEveryChar(const std::string& text, const std::string& expects) {
42 TokenizedString tokens(base::UTF8ToUTF16(text));
55 void TestNextToken(const std::string& text, const std::string& expects) {
56 TokenizedString tokens(base::UTF8ToUTF16(text));
69 void TestFirstTwoCharInEveryToken(const std::string& text,
71 TokenizedString tokens(base::UTF8ToUTF16(text));
90 const char* text;
92 text = "";
93 TestEveryChar(text, "");
94 TestNextToken(text, "");
95 TestFirstTwoCharInEveryToken(text, "");
97 text = "!@#$%^&*()<<<**>>>";
98 TestEveryChar(text, "");
99 TestNextToken(text, "");
100 TestFirstTwoCharInEveryToken(text, "");
104 const char* text;
106 text = "c";
107 TestEveryChar(text, "c0!");
108 TestNextToken(text, "c0!");
109 TestFirstTwoCharInEveryToken(text, "c0!");
111 text = "Simple";
112 TestEveryChar(text, "s0! i1 m2 p3 l4 e5");
113 TestNextToken(text, "s0!");
114 TestFirstTwoCharInEveryToken(text, "s0! i1");
116 text = "ScratchPad";
117 TestEveryChar(text, "s0! c1 r2 a3 t4 c5 h6 p7! a8 d9");
118 TestNextToken(text, "s0! p7!");
119 TestFirstTwoCharInEveryToken(text, "s0! c1 p7! a8");
121 text = "Chess2.0";
122 TestEveryChar(text, "c0! h1 e2 s3 s4 25! .6 07");
123 TestNextToken(text, "c0! 25!");
124 TestFirstTwoCharInEveryToken(text, "c0! h1 25! .6");
126 text = "Cut the rope";
127 TestEveryChar(text, "c0! u1 t2 t4! h5 e6 r8! o9 p10 e11");
128 TestNextToken(text, "c0! t4! r8!");
129 TestFirstTwoCharInEveryToken(text, "c0! u1 t4! h5 r8! o9");
131 text = "AutoCAD WS";
132 TestEveryChar(text, "a0! u1 t2 o3 c4! a5 d6 w8! s9");
133 TestNextToken(text, "a0! c4! w8!");
134 TestFirstTwoCharInEveryToken(text, "a0! u1 c4! a5 w8! s9");
136 text = "Great TweetDeck";
137 TestEveryChar(text, "g0! r1 e2 a3 t4 t6! w7 e8 e9 t10 d11! e12 c13 k14");
138 TestNextToken(text, "g0! t6! d11!");
139 TestFirstTwoCharInEveryToken(text, "g0! r1 t6! w7 d11! e12");
141 text = "Draw-It!";
142 TestEveryChar(text, "d0! r1 a2 w3 i5! t6");
143 TestNextToken(text, "d0! i5!");
144 TestFirstTwoCharInEveryToken(text, "d0! r1 i5! t6");
146 text = "Faxing & Signing";
147 TestEveryChar(text, "f0! a1 x2 i3 n4 g5 s9! i10 g11 n12 i13 n14 g15");
148 TestNextToken(text, "f0! s9!");
149 TestFirstTwoCharInEveryToken(text, "f0! a1 s9! i10");