Home | History | Annotate | Download | only in pcre

Lines Matching refs:comments

75   vector<StringPiece> comments;
81 s.GetNextComments(&comments);
82 CHECK_EQ(comments.size(), 1);
83 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n");
84 comments.resize(0);
89 s.GetNextComments(&comments);
90 CHECK_EQ(comments.size(), 1);
91 CHECK_EQ(comments[0].as_string(), " // bravo is set here\n");
92 comments.resize(0);
97 s.GetNextComments(&comments);
98 CHECK_EQ(comments.size(), 1);
99 CHECK_EQ(comments[0].as_string(), " /* and here is gamma */\n");
100 comments.resize(0);
102 s.GetComments(0, sizeof(input), &comments);
103 CHECK_EQ(comments.size(), 3);
104 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n");
105 CHECK_EQ(comments[1].as_string(), " // bravo is set here\n");
106 CHECK_EQ(comments[2].as_string(), " /* and here is gamma */\n");
107 comments.resize(0);
109 s.GetComments(0, (int)(strchr(input, '/') - input), &comments);
110 CHECK_EQ(comments.size(), 0);
111 comments.resize(0);
114 &comments);
115 CHECK_EQ(comments.size(), 3);
116 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n");
117 CHECK_EQ(comments[1].as_string(), " // bravo is set here\n");
118 CHECK_EQ(comments[2].as_string(), " /* and here is gamma */\n");
119 comments.resize(0);
122 (int)(strchr(input + 1, '\n') - input + 1), &comments);
123 CHECK_EQ(comments.size(), 1);
124 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n");
125 comments.resize(0);