Lines Matching defs:line
147 static std::vector<int> parseLevels(const std::string& line)
150 std::vector<std::string> strings = parseStringList(line);
164 static std::basic_string<UChar> parseTestString(const std::string& line)
195 std::vector<std::string> charClasses = parseStringList(line);
203 static bool parseParagraphDirectionMask(const std::string& line, int& modeMask)
205 modeMask = atoi(line.c_str());
209 static void parseError(const std::string& line, size_t lineNumber)
212 printf("Parse error, line %zu : %s\n", lineNumber, line.c_str());
228 std::string line;
230 while (std::getline(bidiTestFile, line)) {
232 const std::string originalLine = line;
233 size_t commentStart = line.find_first_of('#');
235 line = line.substr(0, commentStart);
236 trim(line);
237 if (line.empty())
239 if (line[0] == '@') {
240 if (!line.find(levelsPrefix)) {
241 levels = parseLevels(line.substr(levelsPrefix.length() + 1));
244 if (!line.find(reorderPrefix)) {
245 reorder = parseIntList(line.substr(reorderPrefix.length() + 1));
249 // Assume it's a data line.
250 size_t seperatorIndex = line.find_first_of(';');
255 testString = parseTestString(line.substr(0, seperatorIndex));
256 if (!parseParagraphDirectionMask(line.substr(seperatorIndex + 1), paragraphDirectionMask)) {