PageRenderTime 846ms queryFilters 0ms Sphinxql 141ms GetByIds 423ms meta 0ms repositoryFilters 184ms languageFilters 1ms sourceFilters 56ms

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

Source

Language

Repository

hb-ot-layout-gsub-private.hh git://github.com/zpao/v8monkey.git | C++ Header | 932 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_PRIVATE_HH
30#define HB_OT_LAYOUT_GSUB_PRIVATE_HH
861/*
862 * GSUB
863 */
864
865struct GSUB : GSUBGPOS
866{
866{
867  static const hb_tag_t Tag	= HB_OT_TAG_GSUB;
868
915{
916  const GSUB &gsub = *(c->layout->face->ot_layout->gsub);
917  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-private.hh git://pkgs.fedoraproject.org/harfbuzz | 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->face->ot_layout->gsub);
918  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh git://pkgs.fedoraproject.org/firefox | 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 git://pkgs.fedoraproject.org/mingw-wine-gecko | 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 git://github.com/zpao/v8monkey.git | C++ Header | 944 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-private.hh https://review.tizen.org/git/ | C++ Header | 948 lines
28
29#ifndef HB_OT_LAYOUT_GSUB_PRIVATE_HH
30#define HB_OT_LAYOUT_GSUB_PRIVATE_HH
31
32#include "hb-ot-layout-gsubgpos-private.hh"
33
856/*
857 * GSUB
858 */
859
860struct GSUB : GSUBGPOS
861{
931{
932  const GSUB &gsub = *(c->face->ot_layout->gsub);
933  const SubstLookup &l = gsub.get_lookup (lookup_index);
hb-ot-layout-gsub-table.hh https://bitbucket.org/kennethendfinger/chromium.git | 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.pm git://github.com/gonzoua/book-tools.git | Perl | 246 lines
1package Font::TTF::GSUB;
2
4
5Font::TTF::GSUB - Module support for the GSUB table in conjunction with TTOpen
6
8
9Handles the GSUB subtables in relation to Ttopen tables. Due to the variety of
10different lookup types, the data structures are not all that straightforward,
14
15The structure of a GSUB table is the same as that given in L<Font::TTF::Ttopen>.
16Here we give some of the semantics specific to GSUB lookups.
75The following table gives the values for ACTION_TYPE and MATCH_TYPE for each
76of the 11 different lookup types found in the GSUB table definition I have:
77
gsub.cxx https://bitbucket.org/jorgenio/libreoffice.git | C++ | 359 lines
31
32#include "gsub.h"
33
67{
68    const FT_Byte* pGsubBase = (FT_Byte*)pTTFile->tables[ O_gsub ];
69    if( !pGsubBase )
72    // #129682# check offsets inside GSUB table
73    const FT_Byte* pGsubLimit = pGsubBase + pTTFile->tlens[ O_gsub ];
74
75    // parse GSUB header
76    const FT_Byte* pGsubHeader = pGsubBase;
77    const sal_uLong nVersion            = NEXT_Long( pGsubHeader );
321                GlyphSubstitution* pGSubstitution = new GlyphSubstitution;
322                pTTFile->pGSubstitution = (void*)pGSubstitution;
323                for( subst_it = aSubstVector.begin(); subst_it != aSubstVector.end(); ++subst_it )
gsub.cxx https://bitbucket.org/markjenkins/libreoffice_ubuntu-debian-fixes.git | C++ | 349 lines
22
23#include "gsub.h"
24
58{
59    const FT_Byte* pGsubBase = (FT_Byte*)pTTFile->tables[ O_gsub ];
60    if( !pGsubBase )
63    // #129682# check offsets inside GSUB table
64    const FT_Byte* pGsubLimit = pGsubBase + pTTFile->tlens[ O_gsub ];
65
66    // parse GSUB header
67    const FT_Byte* pGsubHeader = pGsubBase;
68    const sal_uLong nVersion            = NEXT_Long( pGsubHeader );
311                GlyphSubstitution* pGSubstitution = new GlyphSubstitution;
312                pTTFile->pGSubstitution = (void*)pGSubstitution;
313                for( subst_it = aSubstVector.begin(); subst_it != aSubstVector.end(); ++subst_it )
gsub.cxx https://bitbucket.org/tora/ooo-enum-attribute-packed-experiment-ooo330_m20-vcl | C++ | 361 lines
32
33#include "gsub.h"
34
70{
71    const FT_Byte* pGsubBase = (FT_Byte*)pTTFile->tables[ O_gsub ];
72    if( !pGsubBase )
75    // #129682# check offsets inside GSUB table
76    const FT_Byte* pGsubLimit = pGsubBase + pTTFile->tlens[ O_gsub ];
77
78    // parse GSUB header
79    const FT_Byte* pGsubHeader = pGsubBase;
80    const ULONG nVersion            = NEXT_Long( pGsubHeader );
324                GlyphSubstitution* pGSubstitution = new GlyphSubstitution;
325                pTTFile->pGSubstitution = (void*)pGSubstitution;
326                for( subst_it = aSubstVector.begin(); subst_it != aSubstVector.end(); ++subst_it )
gsub.scala https://github.com/behnam/sfntly-layout.git | Scala | 460 lines
18
19// Subtable base interface for GSUB/GPOS
20
94
95class GsubTableBuilder(val font:Font) {
96  var lookups = ArrayBuffer[LookupTable]()
143
144  private def ligSubst(gx:List[Int], r:Int) = {
145    // TODO(bashi):Implement
190
191class GsubTableSerializer(t:GsubTable) {
192  var gsub = t
438    val fontBuilder = getFontBuilder()
439    val gsubBuilder = fontBuilder.newTableBuilder(Tag.GSUB, newGsubData)
440    gsubBuilder.data().setCheckSumRanges()
gsub.rb https://code.google.com/p/puppet-autoinstall/ | Ruby | 18 lines
1module Puppet::Parser::Functions
2	# thin wrapper around the ruby gsub function
3	# gsub($string, $pattern, $replacement) will replace all occurrences of
6	# be processed in turn.
7	newfunction(:gsub, :type => :rvalue) do |args|
8		if args[0].is_a?(Array)
9			args[0].collect do |val|
10				val.gsub(/#{args[1]}/, args[2])
11			end
12		else
13			args[0].gsub(/#{args[1]}/, args[2])
14		end
gsub.wlua git://github.com/stuartpb/txtoolbox.git | Unknown | 200 lines
25local function depat_s(s)
26  return string.gsub(s,"%W","%%%0")
27end
66  function escape_s(s)
67    return string.gsub(s,"\\(.)(%x?%x?)",escape_c)
68  end
70
71local function rungsub()
72  local pattern = pattern_tb.value
81  iftogfit(plain_tog, depat_s)
82  output.value = string.gsub(
83    input.value, pattern, repl)
86local runb = iup.button{title="Run",
87  expand="horizontal", action=rungsub}
88
gsub.cxx git://pkgs.fedoraproject.org/libreoffice | C++ | 360 lines
31
32#include "gsub.h"
33
67{
68    const FT_Byte* pGsubBase = (FT_Byte*)pTTFile->tables[ O_gsub ];
69    if( !pGsubBase )
72    // #129682# check offsets inside GSUB table
73    const FT_Byte* pGsubLimit = pGsubBase + pTTFile->tlens[ O_gsub ];
74
75    // parse GSUB header
76    const FT_Byte* pGsubHeader = pGsubBase;
77    const sal_uLong nVersion            = NEXT_Long( pGsubHeader );
321                GlyphSubstitution* pGSubstitution = new GlyphSubstitution;
322                pTTFile->pGSubstitution = (void*)pGSubstitution;
323                for( subst_it = aSubstVector.begin(); subst_it != aSubstVector.end(); ++subst_it )
gsub.sh https://bitbucket.org/lokkju/openpli-oe.git | Shell | 21 lines
2#
3# start/stop gsub
4
4
5if ! [ -x /usr/bin/gSUB ]; then
6	exit 0
10	start)
11		start-stop-daemon -S -b -x /usr/bin/gSUB
12		;;
13	stop)
14		start-stop-daemon -K -x /usr/bin/gSUB
15		;;
040-gsub-o.t https://github.com/liyao0409/tengine.git | Unknown | 203 lines
23        content_by_lua '
24            local s, n = ngx.re.gsub("[hello, world]", "[a-z]+", "howdy", "o")
25            ngx.say(s)
40        content_by_lua '
41            local s, n = ngx.re.gsub("hello, world", "[a-z]+", "howdy", "o")
42            ngx.say(s)
57        content_by_lua '
58            local s, n = ngx.re.gsub("hello, world", "[A-Z]+", "howdy", "o")
59            ngx.say(s)
78
79            local s, n = ngx.re.gsub("hello, world", "([a-z])[a-z]+", f, "o")
80            ngx.say(s)
99
100            local s, n = ngx.re.gsub("{hello, world}", "([a-z])[a-z]+", f, "o")
101            ngx.say(s)
040-gsub-o.t https://github.com/dome/lixen_app.git | Unknown | 203 lines
23        content_by_lua '
24            local s, n = ngx.re.gsub("[hello, world]", "[a-z]+", "howdy", "o")
25            ngx.say(s)
40        content_by_lua '
41            local s, n = ngx.re.gsub("hello, world", "[a-z]+", "howdy", "o")
42            ngx.say(s)
57        content_by_lua '
58            local s, n = ngx.re.gsub("hello, world", "[A-Z]+", "howdy", "o")
59            ngx.say(s)
78
79            local s, n = ngx.re.gsub("hello, world", "([a-z])[a-z]+", f, "o")
80            ngx.say(s)
99
100            local s, n = ngx.re.gsub("{hello, world}", "([a-z])[a-z]+", f, "o")
101            ngx.say(s)
gsub - remove whitespace from front of line.tmCommand https://github.com/squishtech/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.rb https://github.com/Epictetus/termtter.git | Ruby | 18 lines
2
3config.plugins.gsub.set_default(:table, [
4  [/([★☆△▽…□♪♬])(?=\S)/, '\1 '],
8Termtter::Client.register_hook(
9  :name => :gsub,
10  :point => :filter_for_output,
13      t = s.text
14      config.plugins.gsub.table.each {|a, b| t.gsub!(a, b || '') }
15    end
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21