Home | History | Annotate | Download | only in gen_keyboard_overlay_data

Lines Matching refs:snippet

152 # A snippet for grd file
158 # A snippet for C++ file
411 def OutputFile(outpath, snippet):
412 """Output the snippet into the specified path."""
415 out.write(snippet)
419 def RewriteFile(start, end, original_dir, original_filename, snippet,
421 """Replaces a part of the specified file with snippet and outputs it."""
433 new_content = re.sub(rx, '%s\n%s%s\n' % (start, snippet, end),
459 snippet = 'var %s = %s;\n' % (var_name, json_data)
460 OutputFile(outpath, snippet)
465 snippet = cStringIO.StringIO()
471 snippet.write(GRD_SNIPPET_TEMPLATE %
475 RewriteFile(GRD_START, GRD_END, GRD_OUTDIR, GRD_FILENAME, snippet.getvalue(),
481 snippet = cStringIO.StringIO()
488 snippet.write(output)
490 RewriteFile(CC_START, CC_END, CC_OUTDIR, CC_FILENAME, snippet.getvalue(),