Home
last modified time | relevance | path

Searched refs:gsub (Results 1 – 25 of 64) sorted by relevance

123

/external/one-true-awk/testdir/
Dlilly.progs91 {if(gsub(/=/,"#"))print $0}
92 {if(gsub(/\=/,"#"))print $0}
93 {if(gsub(/==/,"#"))print $0}
94 {if(gsub(/\+=/,"#"))print $0}
95 {if(gsub(/\*=/,"#"))print $0}
96 {if(gsub(/-=/,"#"))print $0}
97 {if(gsub(/\/=/,"#"))print $0}
98 {if(gsub(/%=/,"#"))print $0}
99 {if(gsub(/^=/,"#"))print $0}
100 {if(gsub(/!=/,"#"))print $0}
[all …]
Dfunstack.awk213 gsub(/\\-/,"",Journal) # remove discretionary hyphens
666 gsub(/[^A-Za-z0-9():,;.\/\-]/,"",label)
675 gsub(/<\/?[^>]*>/,"",s) # remove SGML tags
676 gsub(/&[A-Za-z0-9]+;/,"",s) # remove SGML entities
846 gsub(/&/,"\\&amp;",s) # NB: this one MUST be first
847 gsub(/</,"\\&lt;",s)
848 gsub(/>/,"\\&gt;",s)
849 gsub(/\"/,"\\&quot;",s)
907 gsub(/[$][$]/,"$$",s) # change display math to triple dollars for split
916 gsub(/[$][$][$]/,"$$",s) # restore display math
[all …]
Dt.sub05 {gsub(/[aeiou]/, "foo"); print}
6 {gsub("[aeiou]", "foo"); print}
11 {gsub(/[aeiou]/, "&foo"); print}
12 {gsub("[aeiou]", "&foo"); print}
17 {gsub(/[aeiou]/, "\&foo"); print}
18 {gsub("[aeiou]", "\&foo"); print}
Dlilly.out1044 ### {if(gsub(/=/,"#"))print $0}:
1059 ### {if(gsub(/=/,"#"))print $0}:
1074 ### {if(gsub(/==/,"#"))print $0}:
1077 ### {if(gsub(/+=/,"#"))print $0}:
1081 >>> {if(gsub(/+=/,"#") <<<
1083 ### {if(gsub(/*=/,"#"))print $0}:
1087 >>> {if(gsub(/*=/,"#") <<<
1089 ### {if(gsub(/-=/,"#"))print $0}:
1092 ### {if(gsub(//=/,"#"))print $0}:
1096 >>> {if(gsub(//= <<< /,"#"))print $0}
[all …]
DT.latin111 $awk '{ gsub(/\351/, "\370"); print }' latin1 >foo0
12 $awk '{ gsub(/�/, "�"); print }' latin1 >foo1
15 $awk '{ gsub(/[^\300-\370]/, ""); print }' latin1 >foo0
16 $awk '{ gsub(/[^�-�]/, ""); print } ' latin1 >foo1
DT.gawk40 gsub( /\\\\/, "A", x); print x
41 gsub( "\\\\", "A", y); print y
60 gsub( /\\\\/, "\\", w); print " " w
61 gsub( /\\\\/, "\\\\", x); print " " x
62 gsub( /\\\\/, "\\\\\\", y); print " " y
84 gsub( /a/, "\&", w); print " " w
85 gsub( /a/, "\\&", x); print " " x
86 gsub( /a/, "\\\&", y); print " " y
87 gsub( /a/, "\\\\&", z); print " " z
88 gsub( /a/, "\\\\\&", z1); print " " z1
[all …]
Dt.gsub43 {gsub("[" $1 "]","(&)"); print}
4 {gsub("[" $1 "]","(\\&)"); print}
Dchem.awk171 gsub(/[^A-Za-z0-9]/, "", n) # for stuff like C(OH3): zap non-alnum
333 gsub(/[^A-Za-z0-9]/, "", m)
437 gsub(/([0-9]+\.[0-9]+)|([0-9]+)/, "\\s-3\\d&\\u\\s+3", s)
439 gsub(/\./, "\\v#-.3m#.\\v#.3m#", s)
453 gsub(/([0-9]+\.[0-9]+)|([0-9]+)/, "\\s-3\\d&\\u\\s+3", s1)
455 gsub(/\./, "\\v#-.3m#.\\v#.3m#", s1)
DT.sub1 echo T.sub: tests of sub and gsub code
4 # pattern replacement input-string sub-output gsub-output
26 $5 != "" { # new gsub output
43 gsub(/\\/, "&&", repl) # in case of \ enclosed
48 sprintf(" gsub(/%s/, \"%s\")\n", pat, repl) \
49 sprintf(" if ($0 != \"%s\") print \"gsub %d fails:\", $0, \"should be %s in %s\"\n}",
Dt.gsub11 {gsub(/$/,"x"); print}
Dt.gsub31 length($1) {gsub(substr($1,1,1),"(&)"); print}
/external/brotli/research/
DBUILD.libdivsufsort25 "gsub(/#cmakedefine/, \"#define\"); " +
26 "gsub(/@DIVSUFSORT_EXPORT@/, \"\"); " +
27 "gsub(/@DIVSUFSORT_IMPORT@/, \"\"); " +
28 "gsub(/@INLINE@/, \"inline\"); " +
29 "gsub(/@INCFILE@/, \"#include <inttypes.h>\"); " +
30 "gsub(/@SAUCHAR_TYPE@/, \"uint8_t\"); " +
31 "gsub(/@SAINT32_TYPE@/, \"int32_t\"); " +
32 "gsub(/@SAINT_PRId@/, \"PRId32\"); "
40 "gsub(/@HAVE_IO_H 1@/, \"HAVE_IO_H 0\"); " +
50 "gsub(/@W64BIT@/, \"\"); " +
[all …]
/external/fonttools/Lib/fontTools/varLib/
DfeatureVars.py276 gsub = font["GSUB"].table
278 if gsub.Version < 0x00010001:
279 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
281 gsub.FeatureVariations = None # delete any existing FeatureVariations
283 for feature in gsub.FeatureList.FeatureRecord:
287 gsub.FeatureList.FeatureRecord.append(rvrnFeature)
288 gsub.FeatureList.FeatureCount = len(gsub.FeatureList.FeatureRecord)
290 sortFeatureList(gsub)
291 rvrnFeatureIndex = gsub.FeatureList.FeatureRecord.index(rvrnFeature)
293 for scriptRecord in gsub.ScriptList.ScriptRecord:
[all …]
/external/bcc/src/lua/src/
Dsquish.lua9 name = (short_opts[name] or name):gsub("%-+", "_");
74 name = name:gsub("%-", "_");
86 return opts[name:gsub('%-', '_')];
106 base_path = (base_path or "."):gsub("/$", "").."/"
176 local package_path = package.path:gsub("[^;]+", function (path)
180 end):gsub("/%./", "/");
181 local package_cpath = package.cpath:gsub("[^;]+", function (path)
185 end):gsub("/%./", "/");
188 name = name:gsub("%.", LUA_DIRSEP);
190 c = c:gsub("%"..LUA_PATH_MARK, name);
[all …]
/external/freetype/src/otvalid/
Dotvmod.c80 FT_Byte* volatile gsub; in otv_validate() local
89 base = gdef = gpos = gsub = jstf = math = NULL; in otv_validate()
129 error = otv_load_table( face, TTAG_GSUB, &gsub, &len_gsub ); in otv_validate()
170 if ( gsub ) in otv_validate()
172 ft_validator_init( &valid, gsub, gsub + len_gsub, FT_VALIDATE_DEFAULT ); in otv_validate()
174 otv_GSUB_validate( gsub, num_glyphs, &valid ); in otv_validate()
184 otv_GDEF_validate( gdef, gsub, gpos, num_glyphs, &valid ); in otv_validate()
194 otv_JSTF_validate( jstf, gsub, gpos, num_glyphs, &valid ); in otv_validate()
213 *ot_gsub = (FT_Bytes)gsub; in otv_validate()
225 FT_FREE( gsub ); in otv_validate()
Dotvalid.h43 FT_Bytes gsub,
62 FT_Bytes gsub,
Dotvjstf.c206 FT_Bytes gsub, in otv_JSTF_validate() argument
234 if ( gsub ) in otv_JSTF_validate()
235 otvalid->extra1 = otv_GSUBGPOS_get_Lookup_count( gsub ); in otv_JSTF_validate()
/external/gflags/bazel/
Dgflags.bzl9 "gsub(/@GFLAGS_NAMESPACE@/, \"" + namespace[0] + "\"); " +
10 … "gsub(/@(HAVE_STDINT_H|HAVE_SYS_TYPES_H|HAVE_INTTYPES_H|GFLAGS_INTTYPES_FORMAT_C99)@/, \"1\"); " +
11 "gsub(/@([A-Z0-9_]+)@/, \"0\"); " +
22 "gsub(/@ns@/, \"" + ns + "\"); " +
23 "gsub(/@NS@/, \"" + ns.upper() + "\"); " +
32 "gsub(/@GFLAGS_ATTRIBUTE_UNUSED@/, \"\"); " +
33 …"gsub(/@INCLUDE_GFLAGS_NS_H@/, \"" + '\n'.join(["#include \\\"gflags/{}\\\"".format(hdr) for hdr i…
40 cmd = "awk '{ gsub(/@GFLAGS_NAMESPACE@/, \"" + namespace[0] + "\"); print; }' $(<) > $(@)"
/external/pdfium/core/fpdfapi/font/
Dcfx_cttgsubtable.cpp27 CFX_CTTGSUBTable::CFX_CTTGSUBTable(FT_Bytes gsub) { in CFX_CTTGSUBTable() argument
28 if (!LoadGSUBTable(gsub)) in CFX_CTTGSUBTable()
52 bool CFX_CTTGSUBTable::LoadGSUBTable(FT_Bytes gsub) { in LoadGSUBTable() argument
53 if ((gsub[0] << 24u | gsub[1] << 16u | gsub[2] << 8u | gsub[3]) != 0x00010000) in LoadGSUBTable()
56 return Parse(&gsub[gsub[4] << 8 | gsub[5]], &gsub[gsub[6] << 8 | gsub[7]], in LoadGSUBTable()
57 &gsub[gsub[8] << 8 | gsub[9]]); in LoadGSUBTable()
/external/u-boot/scripts/
Dld-version.sh5 gsub(".*\\)", "");
6 gsub(".*version ", "");
7 gsub("-.*", "");
/external/bcc/tools/
Dtcplife.lua332 program = program.gsub('FILTER_PID', filter)
346 program = program:gsub('FILTER_DPORT', filter)
359 program = program:gsub('FILTER_LPORT', filter)
361 program = program:gsub('FILTER_PID', '')
362 program = program:gsub('FILTER_DPORT', '')
363 program = program:gsub('FILTER_LPORT', '')
/external/bcc/examples/lua/
Dmemleak.lua122 text = text:gsub("SIZE_FILTER", size_filter)
123 text = text:gsub("STACK_FLAGS", stack_flags)
124 text = text:gsub("SHOULD_PRINT", args.trace and "1" or "0")
125 text = text:gsub("SAMPLE_EVERY_N", tostring(args.sample_rate))
/external/tcpdump/
Dmakemib97 { sub(/--\*.*\*--/, ""); sub(/--.*/, ""); gsub(/[{}]/, " & "); }
189 gsub(/[-&\/]/,"",new)
190 gsub(/[-&\/]/,"",parent)
/external/fonttools/Tests/varLib/
Dinstancer_test.py1142 def _getSubstitutions(gsub, lookupIndices): argument
1144 for index, lookup in enumerate(gsub.LookupList.Lookup):
1231 gsub = font["GSUB"].table
1232 featureVariations = gsub.FeatureVariations
1245 substitutions = _getSubstitutions(gsub, lookupIndices)
1249 appliedLookupIndices = gsub.FeatureList.FeatureRecord[0].Feature.LookupListIndex
1251 assert _getSubstitutions(gsub, appliedLookupIndices) == appliedSubs
1281 gsub = font["GSUB"].table
1282 assert not hasattr(gsub, "FeatureVariations")
1285 lookupIndices = gsub.FeatureList.FeatureRecord[0].Feature.LookupListIndex
[all …]
/external/noto-fonts/scripts/
Dcolor_emoji_image_diff.py46 gsub = ttf['GSUB']
51 for lookup in gsub.table.LookupList.Lookup:
59 … add_gsub_context_subtable(subtable, gsub.table.LookupList, glyph_to_codepoint_map, codepoint_map)

123