Searched refs:gsub (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-9.3-release/contrib/ntp/sntp/unity/auto/
H A Dtype_sanitizer.rb5 return unsanitized.gsub(/[-\/\\\.\,\s]/, "_")
H A Dgenerate_test_runner.rb102 source_scrubbed = source.gsub(/\/\/.*$/, '') # remove line comments
103 source_scrubbed = source_scrubbed.gsub(/\/\*.*?\*\//m, '') # remove block comments
144 source.gsub!(/\/\/(?:.+\/\*|\*(?:$|[^\/])).*$/, '') # remove line comments that comment out the start of blocks
145 source.gsub!(/\/\*.*?\*\//m, '') # remove block comments
146 source.gsub!(/\/\/.*$/, '') # remove line comments (all that remain)
177 output.puts("#include #{inc.include?('<') ? inc : "\"#{inc.gsub('.h','')}.h\""}")
185 output.puts("#include #{inc.include?('<') ? inc : "\"#{inc.gsub('.h','')}.h\""}")
188 output.puts("#include \"#{mock.gsub('.h','')}.h\"")
399 ARGV[1] = ARGV[0].gsub(".c","_Runner.c") if (!ARGV[1])
H A Dunity_test_summary.rb30 results = @targets.map {|target| target.gsub(/\\/,'/')}
100 line_out = ((@root && (@root != 0)) ? "#{@root}#{line}" : line ).gsub(/\//, "\\")
134 targets = "#{ARGV[0].gsub(/\\/, '/')}**/*.test*"
/freebsd-9.3-release/gnu/usr.bin/grep/tests/
H A Dformatbre.awk21 # gsub (/@/, ",");
23 gsub (/\"\"/, "");
25 gsub (/\\\'/, "\\\'\'");
47 # gsub (/@/, ",");
49 gsub (/\"\"/, "");
51 gsub (/\\\'/, "\\\'\'");
H A Dformatere.awk22 # gsub (/@/, ",");
24 gsub (/\"\"/, "");
26 gsub (/\\\'/, "\\\'\'");
49 # gsub (/@/, ",");
51 gsub (/\"\"/, "");
53 gsub (/\\\'/, "\\\'\'");
/freebsd-9.3-release/sys/tools/
H A Dpccarddevs2h.awk94 gsub("\\$", "", VERSION)
137 gsub("&sp", " ", $f)
138 gsub("&tab", "\t", $f)
139 gsub("&nl", "\n", $f)
H A Dacpi_quirks2h.awk38 gsub("\^# ", "", VERSION)
39 gsub("\\$", "", VERSION)
H A Dfw_stub.awk122 gsub(/[-\.]/, "_", modname);
143 gsub(/-|\.|\//, "_", symb);
170 gsub(/-|\.|\//, "_", symb);
H A Dmiidevs2h.awk95 gsub("\\$", "", VERSION)
H A Dvnode_if.awk239 gsub (/\/\*.*\*\//, "");
242 gsub(/[[:space:]]+/, " ");
H A Dmakeobjops.awk266 gsub(/[ ]+/, " ", line); # remove double spaces
H A Dusbdevs2h.awk244 gsub("\\$", "", VERSION)
/freebsd-9.3-release/sys/boot/ficl/softwords/
H A Dsoftcore.awk76 gsub(/\t/, " "); # replace each tab with 4 spaces
77 gsub(/\"/, "\\\""); # escape quotes
78 gsub(/\\[[:space:]]+$/, ""); # toss empty comments
/freebsd-9.3-release/sys/contrib/ngatm/netnatm/msg/
H A Dparsemsg.awk34 gsub("^[^$]*", "")
35 gsub("[^$]*$", "")
92 gsub("[a-zA-Z][a-zA-Z0-9]*", "cx->&", $3)
H A Dparseie.awk34 gsub("^[^$]*", "")
35 gsub("[^$]*$", "")
/freebsd-9.3-release/contrib/tcpdump/
H A Dmakemib42 # eliminate use of gsub and functions to use classic "awk"), you have to
99 { sub(/--\*.*\*--/, ""); sub(/--.*/, ""); gsub(/[{}]/, " & "); }
191 gsub(/[-&\/]/,"",new)
192 gsub(/[-&\/]/,"",parent)
/freebsd-9.3-release/contrib/gcc/
H A Dopt-functions.awk68 gsub ( "\\+", "\\+", regex )
114 gsub ("[^A-Za-z0-9]", "_", name)
H A Dopth-gen.awk138 gsub( "[^A-Za-z0-9_]", "X", macros[i] )
163 gsub ("[^A-Za-z0-9]", "_", enum)
H A Doptc-gen.awk115 gsub( "[^A-Za-z0-9_]", "X", macros[i] )
154 gsub ("[^A-Za-z0-9]", "_", enum)
/freebsd-9.3-release/sys/teken/
H A Dgensequences80 gsub(" ", "_", l_cmd_c_name[cmd]);
/freebsd-9.3-release/usr.sbin/bsdconfig/startup/
H A Drcconf139 gsub(/'\''/, "'\''\\'\'\''", default)
141 gsub(/'\''/, "'\''\\'\'\''", value)
148 gsub(/'\''/, "'\''\\'\'\''", value)
154 gsub(/'\''/, "'\''\\'\'\''", desc)
H A Drcdelete120 gsub(/'\''/, "'\''\\'\'\''", default)
122 gsub(/'\''/, "'\''\\'\'\''", value)
129 gsub(/'\''/, "'\''\\'\'\''", value)
135 gsub(/'\''/, "'\''\\'\'\''", desc)
/freebsd-9.3-release/contrib/one-true-awk/
H A Dproto.h192 extern Cell *gsub(Node **, int);
H A DFIXES129 fixed a bug in matching the null RE in sub and gsub. thanks to al aho
508 fixed some bugs in sub and gsub when replacement includes \\.
544 to grow arrays as needed for printf, sub, gsub, etc.
573 fixed long-standing bug in sub, gsub(/a/, "\\\\&"); thanks to
658 fixed at least one error in gsub that looked at -1-th element
740 increased buffer in gsub. a very crude fix to a general problem.
911 Changed grammar to prohibit constants as 3rd arg of sub and gsub;
966 affected are sub (gsub was ok), substr, printf, and
/freebsd-9.3-release/tools/regression/usr.bin/env/
H A Dregress-sb.rb349 optval.gsub!(/\[%- testpgm\.basename -%\]/x, File.basename($testpgm))
350 optval.gsub!(/\[%- script\.pathname -%\]/x, $scriptfile)

Completed in 104 milliseconds

12