PageRenderTime 514ms queryFilters 0ms Sphinxql 192ms GetByIds 177ms meta 0ms repositoryFilters 10ms languageFilters 1ms sourceFilters 61ms

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

Source

Language

Repository

gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/adisuryadi/sublimetext2-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>
gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/ecool/dotfiles.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/themysteriousx/sublime-settings | 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://github.com/pcg79/dotfiles.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>
hb-ot-layout-gsub-private.hh https://bitbucket.org/careytilden/mozilla-release | C++ Header | 933 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_PRIVATE_HH
30#define HB_OT_LAYOUT_GSUB_PRIVATE_HH
862/*
863 * GSUB
864 */
865
866struct GSUB : GSUBGPOS
867{
867{
868  static const hb_tag_t Tag	= HB_OT_TAG_GSUB;
869
916{
917  const GSUB &gsub = *(c->layout->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-private.hh https://bitbucket.org/careytilden/mozilla-central | C++ Header | 933 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_PRIVATE_HH
30#define HB_OT_LAYOUT_GSUB_PRIVATE_HH
862/*
863 * GSUB
864 */
865
866struct GSUB : GSUBGPOS
867{
867{
868  static const hb_tag_t Tag	= HB_OT_TAG_GSUB;
869
916{
917  const GSUB &gsub = *(c->layout->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/romaxa/mozilla-central-b2g-n9 | C++ Header | 945 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
854/*
855 * GSUB -- The Glyph Substitution Table
856 */
857
858struct GSUB : GSUBGPOS
859{
929{
930  const GSUB &gsub = *(c->face->ot_layout->gsub);
931  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/bgirard/mozilla-central | C++ Header | 933 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
841/*
842 * GSUB -- The Glyph Substitution Table
843 */
844
845struct GSUB : GSUBGPOS
846{
916{
917  const GSUB &gsub = *(c->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/bgirard/tiling | C++ Header | 933 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
841/*
842 * GSUB -- The Glyph Substitution Table
843 */
844
845struct GSUB : GSUBGPOS
846{
916{
917  const GSUB &gsub = *(c->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/lahabana/mozilla-central | C++ Header | 933 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
841/*
842 * GSUB -- The Glyph Substitution Table
843 */
844
845struct GSUB : GSUBGPOS
846{
916{
917  const GSUB &gsub = *(c->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/marfey/releases-mozilla-central | C++ Header | 945 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
30#define HB_OT_LAYOUT_GSUB_TABLE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
854/*
855 * GSUB -- The Glyph Substitution Table
856 */
857
858struct GSUB : GSUBGPOS
859{
929{
930  const GSUB &gsub = *(c->face->ot_layout->gsub);
931  const SubstLookup &l = gsub.get_lookup (lookup_index);
gsub%21-i.yaml https://github.com/ncgonz/Giles.git | YAML | 13 lines
6- !ruby/struct:SM::Flow::P 
7  body: Same as <tt>gsub</tt> except that the original file list is modified.
8full_name: Rake::FileList#gsub!
9is_singleton: false
10name: gsub!
11params: (pat, rep)
gsub%21-i.yaml https://github.com/ThoughtWorksStudios/mingle_hg_plugin.git | YAML | 18 lines
6- !ruby/struct:SM::Flow::P 
7  body: Equivalent to <tt>Kernel::gsub</tt>, except <tt>nil</tt> is returned if <tt>$_</tt> is not modified.
8- !ruby/struct:SM::Flow::VERB 
8- !ruby/struct:SM::Flow::VERB 
9  body: "   $_ = &quot;quick brown fox&quot;\n   gsub! /cat/, '*'   #=&gt; nil\n   $_                 #=&gt; &quot;quick brown fox&quot;\n"
10full_name: Kernel#gsub!
11is_singleton: false
12name: gsub!
13params: |
13params: |
14  gsub!(pattern, replacement)    => string or nil
15  gsub!(pattern) {|...| block }  => string or nil
gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/mikob/dotfiles.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%21-i.yaml https://github.com/expectedbehavior/testing_talk_demo.git | YAML | 16 lines
6- !ruby/struct:SM::Flow::P 
7  body: Performs the substitutions of <tt>String#gsub</tt> in place, returning <em>str</em>, or <tt>nil</tt> if no substitutions were performed.
8full_name: String#gsub!
9is_singleton: false
10name: gsub!
11params: |
11params: |
12  str.gsub!(pattern, replacement)        => str or nil
13  str.gsub!(pattern) {|match| block }    => str or nil
gsub.rb https://github.com/gustavosoares/puppet-examples.git | Ruby | 22 lines
1#
2# A thin wrapper around the ruby gsub function.
3# 
3# 
4#  gsub($string, $pattern, $replacement)
5#
10module Puppet::Parser::Functions
11	newfunction(:gsub, :type => :rvalue) do |args|
12		if args[0].is_a?(Array)
13			args[0].collect do |val|
14				val.gsub(/#{args[1]}/, args[2])
15			end
16		else
17			args[0].gsub(/#{args[1]}/, args[2])
18		end
gsub - remove whitespace from front of line.tmCommand https://github.com/drnic/ruby-tmbundle.git | Unknown | 33 lines
11if ENV['TM_CURRENT_LINE'] =~ /^([\s\t]+)/
12  whitespace = $1.gsub(/\t/, '\t')
13end
14
15print "gsub(/${1:^#{whitespace}}/, '$0')"
16</string>
21	<key>name</key>
22	<string>gsub - remove whitespace from front of line</string>
23	<key>output</key>
27	<key>tabTrigger</key>
28	<string>gsub</string>
29	<key>uuid</key>
gsub - remove whitespace from front of line.tmCommand https://github.com/marciogm/ruby-tmbundle.git | Unknown | 33 lines
11if ENV['TM_CURRENT_LINE'] =~ /^([\s\t]+)/
12  whitespace = $1.gsub(/\t/, '\t')
13end
14
15print "gsub(/${1:^#{whitespace}}/, '$0')"
16</string>
21	<key>name</key>
22	<string>gsub - remove whitespace from front of line</string>
23	<key>output</key>
27	<key>tabTrigger</key>
28	<string>gsub</string>
29	<key>uuid</key>
harfbuzz-gsub-private.h https://bitbucket.org/manctl/qt.git | C Header | 475 lines
30#include "harfbuzz-stream-private.h"
31#include "harfbuzz-gsub.h"
32
34
35typedef union HB_GSUB_SubTable_  HB_GSUB_SubTable;
36
422{
423  HB_GSUB_SubTable *subtable;         /* referenced subtable */
424  HB_UShort      SubstFormat;         /* always 1 */
464HB_INTERNAL HB_Error
465_HB_GSUB_Load_SubTable( HB_GSUB_SubTable* st,
466				  HB_Stream     stream,
469HB_INTERNAL void
470_HB_GSUB_Free_SubTable( HB_GSUB_SubTable* st,
471			      HB_UShort     lookup_type );
harfbuzz-gsub-private.h https://bitbucket.org/generalplus/android_external_harfbuzz.git | C++ Header | 484 lines
30#include "harfbuzz-stream-private.h"
31#include "harfbuzz-gsub.h"
32
38
39typedef union HB_GSUB_SubTable_  HB_GSUB_SubTable;
40
426{
427  HB_GSUB_SubTable *subtable;         /* referenced subtable */
428  HB_UShort      SubstFormat;         /* always 1 */
468HB_INTERNAL HB_Error
469_HB_GSUB_Load_SubTable( HB_GSUB_SubTable* st,
470				  HB_Stream     stream,
473HB_INTERNAL void
474_HB_GSUB_Free_SubTable( HB_GSUB_SubTable* st,
475			      HB_UShort     lookup_type );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21