Lines Matching refs:gsub
5 text.gsub!(/^(?!#)(.*)/){$1.upcase}
8 text.gsub!(%r'/\*.*?\*/'m, '')
11 text.gsub!(/^#pragma.*$/, '')
14 text.gsub!(/PROVIDER RUBY \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H\n#define DTRACE_PROBES_DISABLED 1\n")
17 text.gsub!(/\};/, "#endif\t/* _PROBES_H */")
19 text.gsub!(/__/, '_')
21 text.gsub!(/\([^,)]+\)/, '(arg0)')
22 text.gsub!(/\([^,)]+,[^,)]+\)/, '(arg0, arg1)')
23 text.gsub!(/\([^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2)')
24 text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3)')
25 text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3, arg4)')
27 text.gsub!(/ *PROBE ([^\(]*)(\([^\)]*\));/, "#define RUBY_DTRACE_\\1_ENABLED() 0\n#define RUBY_DTRACE_\\1\\2\ do \{ \} while\(0\)")