Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,020 for Replacer (0.14 sec)

  1. src/strings/replace.go

    package strings
    
    import (
    	"io"
    	"sync"
    )
    
    // Replacer replaces a list of strings with replacements.
    // It is safe for concurrent use by multiple goroutines.
    type Replacer struct {
    	once   sync.Once // guards buildOnce method
    	r      replacer
    	oldnew []string
    }
    
    // replacer is the interface that a replacement algorithm needs to implement.
    type replacer interface {
    	Replace(s string) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. src/strings/export_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strings
    
    func (r *Replacer) Replacer() any {
    	r.once.Do(r.buildOnce)
    	return r.r
    }
    
    func (r *Replacer) PrintTrie() string {
    	r.once.Do(r.buildOnce)
    	gen := r.r.(*genericReplacer)
    	return gen.printNode(&gen.root, 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. schema/naming.go

    	UniqueName(table, column string) string
    }
    
    // Replacer replacer interface like strings.Replacer
    type Replacer interface {
    	Replace(name string) string
    }
    
    var _ Namer = (*NamingStrategy)(nil)
    
    // NamingStrategy tables, columns naming strategy
    type NamingStrategy struct {
    	TablePrefix         string
    	SingularTable       bool
    	NameReplacer        Replacer
    	NoLowerCase         bool
    	IdentifierMaxLength int
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/matcher/template.go

    // If path contains "{*}", it will be replaced with "*".
    // If path contains "{**}", it will be replaced with "**".
    // If the path already contained "*" or "**", they will be left as is.
    func sanitizePathTemplate(path string) string {
    	return replacer.Replace(path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/VisitableURLClassLoader.java

                }
            }
    
            private final TransformReplacer replacer;
            private final TransformErrorHandler errorHandler;
    
            public InstrumentingVisitableURLClassLoader(String name, ClassLoader parent, TransformedClassPath classPath) {
                super(name, parent, classPath);
                replacer = new TransformReplacer(classPath);
                errorHandler = new TransformErrorHandler(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. pkg/flag/flag.go

    // This will transform to name field: foo-bar becomes FOO_BAR.
    func BindEnv[T Flaggable](fs *pflag.FlagSet, name, shorthand, usage string, val *T) {
    	Bind(fs, name, shorthand, usage, val)
    	en := strings.ToUpper(replacer.Replace(name))
    	if v, f := os.LookupEnv(en); f {
    		_ = fs.Set(name, v)
    	}
    }
    
    // AdditionalEnv allows additional env vars to set the flag value as well.
    // Unlike BindEnv, this does not do any transformations.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/strings/replace_test.go

    func oldHTMLEscape(s string) string {
    	s = Replace(s, "&", "&", -1)
    	s = Replace(s, "<", "&lt;", -1)
    	s = Replace(s, ">", "&gt;", -1)
    	s = Replace(s, `"`, "&quot;", -1)
    	s = Replace(s, "'", "&apos;", -1)
    	return s
    }
    
    var capitalLetters = NewReplacer("a", "A", "b", "B")
    
    // TestReplacer tests the replacer implementations.
    func TestReplacer(t *testing.T) {
    	type testCase struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

            private final TransformReplacer replacer;
            private final TransformErrorHandler errorHandler;
    
            InstrumentingScriptClassLoader(ScriptSource scriptSource, ClassLoader parent, TransformedClassPath classPath, HashCode implementationHash) {
                super(scriptSource, parent, classPath, implementationHash);
                replacer = new TransformReplacer(classPath);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        // We will "steal" the body of the island and replace it with a call to the
        // new function later.
        {
          YieldOp yield_op = island_op.GetYield();
          outlined_func.getBody().takeBody(island_op.getBody());
    
          // Replace the yield with a return
          OpBuilder replacer(yield_op);
          island_op.getBody().push_back(new Block);
          replacer.create<mlir::func::ReturnOp>(yield_op.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/TransformReplacerTest.groovy

        }
    
        private static final byte[] loadTransformedClass(TransformedClassPath cp, String className, File original) {
            try (TransformReplacer replacer = new TransformReplacer(cp)) {
                return replacer.getInstrumentedClass(className, protectionDomain(original))
            }
        }
    
        private static TransformedClassPath classPath(Map<File, File> originalToTransformed) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top