Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 88) sorted by relevance

1234

/build/kati/
Dparser.cc45 StringPiece line, StringPiece directive);
80 StringPiece line(buf_.data() + l_, e - l_); in Parse() local
81 orig_line_with_directives_ = line; in Parse()
82 ParseLine(line); in Parse()
153 void ParseLine(StringPiece line) { in ParseLine() argument
155 ParseInsideDefine(line); in ParseLine()
159 if (line.empty() || (line.size() == 1 && line[0] == '\r')) in ParseLine()
164 if (line[0] == '\t' && state_ != ParserState::NOT_AFTER_RULE) { in ParseLine()
167 stmt->expr = ParseExpr(line.substr(1), ParseExprOpt::COMMAND); in ParseLine()
168 stmt->orig = line; in ParseLine()
[all …]
Dstrutil.go275 func firstWord(line []byte) ([]byte, []byte) {
276 s := newWordScanner(line)
281 return line, nil
347 func removeComment(line []byte) ([]byte, bool) {
349 for i := 0; i < len(line); i++ {
350 if line[i] != '#' {
355 if line[i-b] != '\\' {
363 buf = make([]byte, len(line))
364 copy(buf, line)
365 line = buf
[all …]
Dparser.go97 var line []byte
109 line = append(line, buf...)
122 line = bytes.TrimRight(line, "\r\n")
123 return line
147 func (p *parser) handleDirective(line []byte, directives map[string]directiveFunc) bool {
148 w, data := firstWord(line)
156 func (p *parser) handleRuleOrAssign(line []byte) {
157 rline := line
159 if i := findLiteralChar(line, ';', 0, skipVar); i >= 0 {
161 semi = append(semi, line[i+1:]...)
[all …]
Drule_parser.go179 func (r *rule) parse(line []byte, assign *assignAST, rhs expr) (*assignAST, error) {
180 line = trimLeftSpaceBytes(line)
182 if rhs == nil && (len(line) == 0 || line[0] == ';') {
187 index := findLiteralChar(line, ':', 0, noSkipVar)
192 first := line[:index]
213 if index < len(line) && line[index] == ':' {
218 rest := line[index:]
221 panic(fmt.Sprintf("pattern specific var? line:%q", line))
Drule.cc56 void ParseRule(Loc& loc, StringPiece line, char term, in ParseRule() argument
58 size_t index = line.find(':'); in ParseRule()
63 StringPiece first = line.substr(0, index); in ParseRule()
80 if (line.get(index) == ':') { in ParseRule()
85 StringPiece rest = line.substr(index); in ParseRule()
/build/tools/
Dcheck_radio_versions.py30 for line in f:
31 line = line.strip() variable
32 if line.startswith("require"):
33 key, value = line.split()[1].split("=", 1)
59 for line in f:
60 line = line.strip() variable
61 if not line or line.startswith("#"): continue
62 h, v = line.split()
Dpost_process_props.py81 for line in self.lines:
82 if not line or line.startswith("#"):
84 if "=" in line:
85 key, value = line.split("=", 1)
91 for line in self.lines:
92 if line.startswith(key):
93 return line[len(key):]
106 self.lines = [ line for line in self.lines if not line.startswith(key) ]
Dparsedeps.py94 for line in f:
95 line = line.strip()
96 if len(line) > 0:
97 if line[0] == '#':
98 pos,tgt = line.rsplit(":", 1)
103 (tgt,prereq) = line.split(':', 1)
111 line = raw_input("target> ")
112 if not line.strip():
114 split = line.split()
Ddiff_package_overlays.py51 for line in f:
52 line = line.strip()
53 if not line or line.startswith("#"):
55 words = line.split()
Dfilter-product-graph.py7 def choose_regex(regs, line): argument
9 m = reg.match(line)
37 lines = [line.strip() for line in lines]
39 for line in lines:
40 func,m = choose_regex(REGS, line)
Dwarn.py498 def classifywarning(line): argument
501 if cpat.match(line):
502 i['members'].append(line)
530 for line in infile:
532 line = line.replace("‘", "'"); variable
533 line = line.replace("’", "'"); variable
534 if warningpattern.match(line):
535 if line != lastmatchedline:
536 classifywarning(line)
537 lastmatchedline = line
[all …]
Devent_log_tags.py63 for self.linenum, line in enumerate(file_object):
66 line = line.strip()
67 if not line or line[0] == '#': continue
68 parts = re.split(r"\s+", line, 2)
71 self.AddError("failed to parse \"%s\"" % (line,))
Dadbs37 line = stream.readline() variable
38 if (line == ''):
40 if(tracer.ProcessLine(line) == False):
41 print(line.strip())
Dproduct_debug.py27 def split_line(line): argument
28 words = line.split("=", 1)
40 return [split_line(line) for line in lines if line.strip()]
/build/tools/releasetools/
Dsign_target_files_apks.py329 for line in data.split("\n"):
330 line = line.strip()
331 original_line = line
332 if line and line[0] != '#' and "=" in line:
333 key, value = line.split("=", 1)
361 line = key + "=" + value
362 if line != original_line:
364 print " with: ", line
365 output.append(line)
469 for line in data.split("\n"):
[all …]
Dsign_target_files_apks329 for line in data.split("\n"):
330 line = line.strip()
331 original_line = line
332 if line and line[0] != '#' and "=" in line:
333 key, value = line.split("=", 1)
361 line = key + "=" + value
362 if line != original_line:
364 print " with: ", line
365 output.append(line)
469 for line in data.split("\n"):
[all …]
Dtarget_files_diff.py83 for line in original:
86 if line.startswith(s):
90 new.write(line)
98 for line in original:
99 new.write(re.sub(r'[0-9a-f]{40}', '0'*40, line))
108 for line in lines:
109 new.write(line)
156 for line in stdout.strip().split('\n'):
157 print("%s: %s" % (name, line), file=out_file)
Dcommon.py235 for line in data.split("\n"):
236 if not line:
238 name, value = line.split(" ", 1)
280 for line in lines:
281 line = line.strip()
282 if not line or line.startswith("#"):
284 if "=" in line:
285 name, value = line.split("=", 1)
307 for line in data.split("\n"):
308 line = line.strip()
[all …]
/build/core/tasks/check_boot_jars/
Dcheck_boot_jars.py24 for line in f:
25 line = line.strip()
26 if not line or line.startswith('#'):
28 lines.append(line)
/build/blueprint/
Dninja_writer.go57 var line string
63 line = strings.TrimRightFunc(comment[lineStart:i], unicode.IsSpace)
69 line = strings.TrimSpace(comment[lineStart:lastSplitPoint])
74 line = strings.TrimSpace("# "+line) + "\n"
75 _, err := io.WriteString(n.writer, line)
84 line := strings.TrimSpace(comment[lineStart:])
85 _, err := fmt.Fprintf(n.writer, "# %s\n", line)
/build/tools/droiddoc/templates-pdk/assets/
Dstyle.css45 line-height: 110%;
56 line-height: 110%;
67 line-height: 110%;
73 line-height: 110%;
84 line-height: 110%;
94 line-height: 110%;
103 line-height: 110%;
192 line-height: 120%;
230 line-height: 120%;
235 line-height: 120%;
[all …]
/build/tools/droiddoc/templates-sdk-dev/
Dclass.cs130 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
131 <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?>
163 <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?>
187 <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?>
216 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
328 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
335 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
345 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
374 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
393 <?cs # this next line must be exactly like this to be parsed by eclipse ?>
[all …]
/build/blueprint/parser/
Dsort.go38 line := value.ListValue[i].Pos.Line
41 if value.ListValue[j].Pos.Line > line+1 {
44 line = value.ListValue[j].Pos.Line
59 line := value.ListValue[i].Pos.Line
62 if value.ListValue[j].Pos.Line > line+1 {
65 line = value.ListValue[j].Pos.Line
/build/core/
Dfilter_symbols.sh15 $NM -g -fp $1 | while read -a line
17 type=${line[1]}
/build/blueprint/bootstrap/
Dcleanup.go96 line := scanner.Text()
97 if strings.HasPrefix(line, "#") {
102 fields := strings.Split(line, fieldSeperator)
108 return nil, fmt.Errorf("log entry has too few fields: %q", line)

1234