PageRenderTime 33ms queryFilters 0ms Sphinxql 140ms GetByIds 544ms meta 0ms repositoryFilters 101ms languageFilters 3ms sourceFilters 57ms

108,898 results for 'gsub' (33 ms)

Source

Language

Repository

harfbuzz-gsub.h https://bitbucket.org/enic/elib | C++ Header | 142 lines
89
90HB_Error  HB_Done_GSUB_Table( HB_GSUBHeader*  gsub );
91
122
123HB_Error  HB_GSUB_Add_Feature( HB_GSUBHeader*  gsub,
124			       HB_UShort        feature_index,
126
127HB_Error  HB_GSUB_Clear_Features( HB_GSUBHeader*  gsub );
128
129
130HB_Error  HB_GSUB_Register_Alternate_Function( HB_GSUBHeader*  gsub,
131					       HB_AltFunction  altfunc,
134
135HB_Error  HB_GSUB_Apply_String( HB_GSUBHeader*   gsub,
136				HB_Buffer        buffer );
hb-ot-layout-gsub-table.hh git://github.com/brson/rust-harfbuzz.git | C++ Header | 1,414 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1285/*
1286 * GSUB -- The Glyph Substitution Table
1287 */
1288
1289struct GSUB : GSUBGPOS
1290{
1386{
1387  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1388  const SubstLookup &l = gsub.get_lookup (lookup_index);
1399{
1400  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1401  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/thinker/mozilla-central | C++ Header | 1,415 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1285/*
1286 * GSUB -- The Glyph Substitution Table
1287 */
1288
1289struct GSUB : GSUBGPOS
1290{
1386{
1387  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1388  const SubstLookup &l = gsub.get_lookup (lookup_index);
1399{
1400  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1401  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/Jiten/mozilla-central | C++ Header | 1,399 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1269/*
1270 * GSUB -- The Glyph Substitution Table
1271 */
1272
1273struct GSUB : GSUBGPOS
1274{
1370{
1371  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1372  const SubstLookup &l = gsub.get_lookup (lookup_index);
1383{
1384  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1385  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/ehsan/broken-inbound | C++ Header | 1,415 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1285/*
1286 * GSUB -- The Glyph Substitution Table
1287 */
1288
1289struct GSUB : GSUBGPOS
1290{
1386{
1387  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1388  const SubstLookup &l = gsub.get_lookup (lookup_index);
1399{
1400  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1401  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/hsoft/mozilla-central | C++ Header | 1,415 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1285/*
1286 * GSUB -- The Glyph Substitution Table
1287 */
1288
1289struct GSUB : GSUBGPOS
1290{
1386{
1387  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1388  const SubstLookup &l = gsub.get_lookup (lookup_index);
1399{
1400  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1401  const SubstLookup &l = gsub.get_lookup (lookup_index);
gsub-i.yaml https://github.com/ncgonz/Giles.git | YAML | 17 lines
6- !ruby/struct:SM::Flow::P 
7  body: Return a new FileList with the results of running <tt>gsub</tt> against each element of the original list.
8- !ruby/struct:SM::Flow::P 
10- !ruby/struct:SM::Flow::VERB 
11  body: "  FileList['lib/test/file', 'x/y'].gsub(/\\//, &quot;\\&quot;)\n     =&gt; ['lib\\test\\file', 'x\\y']\n"
12full_name: Rake::FileList#gsub
13is_singleton: false
14name: gsub
15params: (pat, rep)
hb-ot-layout-gsub-table.hh https://code.google.com/p/phantomjs/ | C++ Header | 1,373 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1293/*
1294 * GSUB -- The Glyph Substitution Table
1295 */
1296
1297struct GSUB : GSUBGPOS
1298{
1351{
1352  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1353  const SubstLookup &l = gsub.get_lookup (lookup_index);
1358{
1359  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
1360  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/halwine/releases-mozilla-inbound | C++ Header | 1,254 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
1134/*
1135 * GSUB -- The Glyph Substitution Table
1136 */
1137
1138struct GSUB : GSUBGPOS
1139{
1225{
1226  const GSUB &gsub = *(c->face->ot_layout->gsub);
1227  const SubstLookup &l = gsub.get_lookup (lookup_index);
1238{
1239  const GSUB &gsub = *(c->face->ot_layout->gsub);
1240  const SubstLookup &l = gsub.get_lookup (lookup_index);
gsub(;..;) { |match| .. } (gsu).yasnippet git://github.com/ridgetang/snippets.git | Unknown | 6 lines
3# contributor: Translated from TextMate Snippet
4# name: gsub(/../) { |match| .. }
5# --
5# --
6gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
gsub(;..;) { |match| .. } (gsu).yasnippet git://github.com/spastorino/my_emacs_for_rails.git | Unknown | 7 lines
3# contributor: Translated from TextMate Snippet
4# name: gsub(/../) { |match| .. }
5## condition: "source.ruby"
6# --
7gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
gsub.rb git://github.com/rubinius/rubinius.git | Ruby | 11 lines
3  while @should_run
4    # string#gsub(...)
5    raise "string#gsub(...) benchmark is not implemented"
string-sub-gsub.rb git://github.com/runpaint/read-ruby.git | Ruby | 13 lines
2alphabet.sub(/U/, 'you?') #=> "abcdef"
3alphabet.gsub(/[b-e]/){|match| "<U+#{'%.4X' % match.ord}>"}
4#=> "a<U+0062><U+0063><U+0064><U+0065>f"
10subs.default = '?'
11'You & I > he & they!'.gsub(/[[:punct:]]/, subs)
12#=> "You &amp; I &gt; he &amp; they?"
gsub(..) { match .. } (gsu).yasnippet https://bitbucket.org/robertsanders/emacsdotd.git | Unknown | 8 lines
4# contributor: Translated from textmate snippet by PROGRAM_NAME
5# name: gsub(/../) { |match| .. }
6## condition: "
7# --
8gsub(/${1:pattern}/) { ${2:$(and (yas/text) "|")}${2:match}${2:$(and (yas/text) "| ")}$0 }
gsub(..) { match .. } (gsu).yasnippet https://bitbucket.org/robertsanders/emacsdotd.git | Unknown | 8 lines
4# contributor: Translated from textmate snippet by PROGRAM_NAME
5# name: gsub(/../) { |match| .. }
6## condition: "
7# --
8gsub(/${1:pattern}/) { ${2:$(and (yas/text) "|")}${2:match}${2:$(and (yas/text) "| ")}$0 }
gsub-i.yaml https://github.com/expectedbehavior/testing_talk_demo.git | YAML | 24 lines
14- !ruby/struct:SM::Flow::VERB 
15  body: "   &quot;hello&quot;.gsub(/[aeiou]/, '*')              #=&gt; &quot;h*ll*&quot;\n   &quot;hello&quot;.gsub(/([aeiou])/, '&lt;\\1&gt;')         #=&gt; &quot;h&lt;e&gt;ll&lt;o&gt;&quot;\n   &quot;hello&quot;.gsub(/./) {|s| s[0].to_s + ' '}   #=&gt; &quot;104 101 108 108 111 &quot;\n"
16full_name: String#gsub
17is_singleton: false
18name: gsub
19params: |
19params: |
20  str.gsub(pattern, replacement)       => new_str
21  str.gsub(pattern) {|match| block }   => new_str
gsub.yml https://github.com/felixgao/chitsheet.git | YAML | 9 lines
1--- 
2gsub: |-
3  >> "dog cat".gsub(/(dog) cat/, "cat")
4  => "cat"
5  >> "dog cat".gsub(/(dog) cat/, '\1')
6  => "dog"
6  => "dog"
7  >> "20 dogs".gsub(/\d+/) { |num| num.to_i + 1 }
8  => "21 dogs"
gsub-i.yaml https://github.com/ThoughtWorksStudios/mingle_hg_plugin.git | YAML | 18 lines
6- !ruby/struct:SM::Flow::P 
7  body: Equivalent to <tt>$_.gsub...</tt>, except that <tt>$_</tt> receives the modified result.
8- !ruby/struct:SM::Flow::VERB 
8- !ruby/struct:SM::Flow::VERB 
9  body: "   $_ = &quot;quick brown fox&quot;\n   gsub /[aeiou]/, '*'   #=&gt; &quot;q**ck br*wn f*x&quot;\n   $_                    #=&gt; &quot;q**ck br*wn f*x&quot;\n"
10full_name: Kernel#gsub
11is_singleton: false
12name: gsub
13params: |
13params: |
14  gsub(pattern, replacement)    => string
15  gsub(pattern) {|...| block }  => string
gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/pixl_dave/sublime-packages.git | Unknown | 7 lines
1<snippet>
2    <content><![CDATA[gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }]]></content>
3    <tabTrigger>gsu</tabTrigger>
4    <scope>source.ruby</scope>
5    <description>gsub(/../) { |match| .. }</description>
6</snippet>
gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/fmartingr/sublime-text-2-settings.git | Unknown | 7 lines
1<snippet>
2    <content><![CDATA[gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }]]></content>
3    <tabTrigger>gsu</tabTrigger>
4    <scope>source.ruby</scope>
5    <description>gsub(/../) { |match| .. }</description>
6</snippet>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21