PageRenderTime 881ms queryFilters 0ms Sphinxql 193ms GetByIds 474ms meta 0ms repositoryFilters 114ms languageFilters 3ms sourceFilters 84ms

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

Source

Language

Repository

harfbuzz-gsub-private.h https://bitbucket.org/ultra_iter/qt-vtl.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/cyanogenmod/android_external_harfbuzz.git | C Header | 483 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 );
harfbuzz-gsub-private.h https://bitbucket.org/gcubar/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 );
gsub(;..;) { |match| .. } (gsu).plist https://github.com/squishtech/ruby-tmbundle.git | Unknown | 17 lines
5	<key>content</key>
6	<string>gsub(/${1:pattern}/) { ${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:| )/}$0 }</string>
7	<key>name</key>
7	<key>name</key>
8	<string>gsub(/../) { |match| .. }</string>
9	<key>scope</key>
gsub%21-i.ri https://bitbucket.org/aetos/tddbc_yokohama2 | Unknown | 6 lines
1U:RDoc::AnyMethod[iI"
2gsub!:EFI"String#gsub!;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"OPerforms the substitutions of <code>String#gsub</code> in place, returning;FI"H<i>str</i>, or <code>nil</code> if no substitutions were performed.;FI"WIf no block and no <i>replacement</i> is given, an enumerator is returned instead.;FI"˘str.gsub!(pattern, replacement)        -> str or nil
3str.gsub!(pattern) {|match| block }    -> str or nil
3str.gsub!(pattern) {|match| block }    -> str or nil
4str.gsub!(pattern)                     -> an_enumerator
5;F0[I"
gsub.c http://andar.googlecode.com/svn/trunk/ | C | 1,715 lines
18#include <AR/ar.h>
19#include <AR/gsub.h>
20
harfbuzz-gsub-private.h http://jslibs.googlecode.com/svn/trunk/ | C++ Header | 477 lines
30#include "harfbuzz-stream-private.h"
31#include "harfbuzz-gsub.h"
32
35
36typedef union HB_GSUB_SubTable_  HB_GSUB_SubTable;
37
425  HB_UShort      LookuptType;         /* lookup-type of referenced subtable */
426  HB_GSUB_SubTable *subtable;         /* referenced subtable */
427};
465HB_INTERNAL HB_Error
466_HB_GSUB_Load_SubTable( HB_GSUB_SubTable* st,
467		        HB_Stream         stream,
470HB_INTERNAL void
471_HB_GSUB_Free_SubTable( HB_GSUB_SubTable* st,
472		        HB_UShort         lookup_type );
gsub(;..;) { %7Cmatch%7C .. } (gsu).plist http://luapack.googlecode.com/svn/trunk/ | Unknown | 17 lines
5	<key>content</key>
6	<string>gsub(/${1:pattern}/) { ${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:| )/}$0 }</string>
7	<key>name</key>
7	<key>name</key>
8	<string>gsub(/../) { |match| .. }</string>
9	<key>scope</key>
gsub-i.ri https://bitbucket.org/kendfinger/crostools.git | Unknown | 15 lines
1U:RDoc::AnyMethod[iI"	gsub:EFI"String#gsub;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"FReturns a copy of <i>str</i> with the <em>all</em> occurrences of;FI"N<i>pattern</i> substituted for the second argument. The <i>pattern</i> is;FI"Ltypically a <code>Regexp</code>; if given as a <code>String</code>, any;FI"Fregular expression metacharacters it contains will be interpreted;FI"Oliterally, e.g. <code>'\\\d'</code> will match a backlash followed by 'd',;FI"instead of a digit.;Fo:RDoc::Markup::BlankLineo;
2;	[I"NIf <i>replacement</i> is a <code>String</code> it will be substituted for;FI"Nthe matched text. It may contain back-references to the pattern's capture;FI"Ogroups of the form <code>\\\d</code>, where <i>d</i> is a group number, or;FI"E<code>\\\k<n></code>, where <i>n</i> is a group name. If it is a;FI"Fdouble-quoted string, both back-references must be preceded by an;FI"Oadditional backslash. However, within <i>replacement</i> the special match;FI"Mvariables, such as <code>&$</code>, will not refer to the current match.;Fo;o;
5;	[I"LThe result inherits any tainting in the original string or any supplied;FI"replacement string.;Fo;o;
6;	[I"?When neither a block nor a second argument is supplied, an;FI")<code>Enumerator</code> is returned.;Fo;o:RDoc::Markup::Verbatim;	[I"   ;FI">"hello".gsub(/[aeiou]/, '*')                  #=> "h*ll*";FI"
7;FI"   ;FI"B"hello".gsub(/([aeiou])/, '<\1>')             #=> "h<e>ll<o>";FI"
7;FI"   ;FI"B"hello".gsub(/([aeiou])/, '<\1>')             #=> "h<e>ll<o>";FI"
8;FI"   ;FI"M"hello".gsub(/./) {|s| s.ord.to_s + ' '}      #=> "104 101 108 108 111 ";FI"
9;FI"   ;FI"B"hello".gsub(/(?<foo>[aeiou])/, '{\k<foo>}')  #=> "h{e}ll{o}";FI"
9;FI"   ;FI"B"hello".gsub(/(?<foo>[aeiou])/, '{\k<foo>}')  #=> "h{e}ll{o}";FI"
10;FI"   ;FI">'hello'.gsub(/[eo]/, 'e' => 3, 'o' => '*')    #=> "h3ll*";FI"Ăstr.gsub(pattern, replacement)       -> new_str
11str.gsub(pattern, hash)              -> new_str
11str.gsub(pattern, hash)              -> new_str
12str.gsub(pattern) {|match| block }   -> new_str
13str.gsub(pattern)                    -> enumerator
harfbuzz-gsub-private.h https://bitbucket.org/jjgod/qt-vtl.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/kennethendfinger/chromium.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 );
gsub.yasnippet https://github.com/JEG2/dotfiles.git | Unknown | 5 lines
1# -*- mode: snippet -*-
2# name: gsub
3# key: gsu
4# --
5gsub(${1:/${2:pattern}/}) {${3:$(if (> (length yas-text) 0) " |" "")}${3:match}${3:$(if (> (length yas-text) 0) "|" "")} $0 }
gsub.rb https://github.com/awestruct/awestruct.git | Ruby | 35 lines
2  module Extensions
3    class Gsub
4
7        @replacement = replacement.is_a?(Proc) ? replacement : lambda { |site, page| replacement }
8        @gsub_required = lambdaize(options[:gsub_required])
9      end
11      def transform(site, page, rendered)
12        if (@gsub_required.call(site, page))
13          replacement = @replacement.call(site, page).to_s
13          replacement = @replacement.call(site, page).to_s
14          rendered = rendered.gsub(@pattern, replacement)
15        end
gsub.rb https://github.com/greensnark/dcss_sequell.git | Ruby | 28 lines
3module Tpl
4  class Gsub < LookupFragment
5    def initialize(identifier, pattern, replacement)
12      lookup(provider) { |match|
13        match.to_s.gsub(@pattern) {
14          @replacement.eval(provider)
gsub.rb https://github.com/bbrowning/awestruct.git | Ruby | 21 lines
2  module Extensions
3    class Gsub
4
7        @replacement = replacement
8        @gsub_required = options[:gsub_required] || lambda { |site, page| page.output_path.end_with?(".html") }
9      end
11      def transform(site, page, rendered)
12        if (@gsub_required.call(site, page))
13          rendered = rendered.gsub(@pattern, @replacement)
gsub(;..;)-{-match-..-}-(gsu).sublime-snippet https://bitbucket.org/aadair/sublimetext2windows | 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>
harfbuzz-gsub-private.h git://github.com/brson/rust-harfbuzz.git | C Header | 483 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 );
gsub(;..;) { |match| .. } (gsu).plist https://github.com/drnic/ruby-tmbundle.git | Unknown | 17 lines
5	<key>content</key>
6	<string>gsub(/${1:pattern}/) { ${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:| )/}$0 }</string>
7	<key>name</key>
7	<key>name</key>
8	<string>gsub(/../) { |match| .. }</string>
9	<key>scope</key>
gsub(;..;) { |match| .. } (gsu).plist https://github.com/lukemelia/ruby-tmbundle.git | Unknown | 17 lines
5	<key>content</key>
6	<string>gsub(/${1:pattern}/) { ${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?&lt;var&gt;\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g&lt;var&gt;)*,?\s*$)|.*/(?1:| )/}$0 }</string>
7	<key>name</key>
7	<key>name</key>
8	<string>gsub(/../) { |match| .. }</string>
9	<key>scope</key>
harfbuzz-gsub-private.h https://bitbucket.org/enic/elib | C++ Header | 477 lines
30#include "harfbuzz-stream-private.h"
31#include "harfbuzz-gsub.h"
32
35
36typedef union HB_GSUB_SubTable_  HB_GSUB_SubTable;
37
425  HB_UShort      LookuptType;         /* lookup-type of referenced subtable */
426  HB_GSUB_SubTable *subtable;         /* referenced subtable */
427};
465HB_INTERNAL HB_Error
466_HB_GSUB_Load_SubTable( HB_GSUB_SubTable* st,
467				  HB_Stream     stream,
470HB_INTERNAL void
471_HB_GSUB_Free_SubTable( HB_GSUB_SubTable* st,
472			      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