Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for RegExp (0.26 sec)

  1. doc/next/6-stdlib/99-minor/net/http/64910.md

    The patterns used by [ServeMux] allow multiple spaces matching
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 80 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/swig_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package swig
    
    import (
    	"cmd/internal/quoted"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    )
    
    func TestStdio(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	run(t, "testdata/stdio", false)
    }
    
    func TestCall(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    0000190 00 00 00 00 00 00 00 00 00 00 00 72 2f 72 2e 7a
    00001a0 69 70 50 4b 05 06 00 00 00 00 01 00 01 00 35 00
    00001b0 00 00 6d 01 00 00 00 00`
    	s = regexp.MustCompile(`[0-9a-f]{7}`).ReplaceAllString(s, "")
    	s = regexp.MustCompile(`\s+`).ReplaceAllString(s, "")
    	b, err := hex.DecodeString(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. misc/linkcheck/linkcheck.go

    // that it's seen and prints a report of missing links at the end.
    package main
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"os"
    	"regexp"
    	"strings"
    	"sync"
    )
    
    var (
    	root    = flag.String("root", "http://localhost:6060", "Root to crawl")
    	verbose = flag.Bool("verbose", false, "verbose")
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  5. api/go1.6.txt

    pkg net/url, method (*Error) Timeout() bool
    pkg net/url, method (InvalidHostError) Error() string
    pkg net/url, type InvalidHostError string
    pkg os/exec, type ExitError struct, Stderr []uint8
    pkg regexp, method (*Regexp) Copy() *Regexp
    pkg runtime/debug, func SetTraceback(string)
    pkg strconv, func AppendQuoteRuneToGraphic([]uint8, int32) []uint8
    pkg strconv, func AppendQuoteToGraphic([]uint8, string) []uint8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  6. api/go1.3.txt

    pkg net/http, type Server struct, ConnState func(net.Conn, ConnState)
    pkg net/http, type Server struct, ErrorLog *log.Logger
    pkg net/http, type Transport struct, TLSHandshakeTimeout time.Duration
    pkg regexp/syntax, method (*Inst) MatchRunePos(int32) int
    pkg regexp/syntax, method (InstOp) String() string
    pkg runtime/debug, func SetPanicOnFault(bool) bool
    pkg runtime/debug, func WriteHeapDump(uintptr)
    pkg sync, method (*Pool) Get() interface{}
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg regexp/syntax, method (*Prog) String() string
    pkg regexp/syntax, method (*Regexp) CapNames() []string
    pkg regexp/syntax, method (*Regexp) Equal(*Regexp) bool
    pkg regexp/syntax, method (*Regexp) MaxCap() int
    pkg regexp/syntax, method (*Regexp) Simplify() *Regexp
    pkg regexp/syntax, method (*Regexp) String() string
    pkg regexp/syntax, method (ErrorCode) String() string
    pkg regexp/syntax, type EmptyOp uint8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  8. misc/go_android_exec/exitcode_test.go

    		t.Errorf("want output %q, got %q", want, got)
    	}
    	if want := 1; want != code {
    		t.Errorf("want exit code %d, got %d", want, code)
    	}
    }
    
    func TestExitCodeMissing(t *testing.T) {
    	var wantErr *regexp.Regexp
    	check := func(text string) {
    		t.Helper()
    		var out strings.Builder
    		f, exitStr := newExitCodeFilter(&out)
    		if want := "exitcode="; want != exitStr {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    	close(quit)
    	return code, err
    }
    
    type exitCodeFilter struct {
    	w      io.Writer // Pass through to w
    	exitRe *regexp.Regexp
    	buf    bytes.Buffer
    }
    
    func newExitCodeFilter(w io.Writer) (*exitCodeFilter, string) {
    	const exitStr = "exitcode="
    
    	// Build a regexp that matches any prefix of the exit string at the end of
    	// the input. We do it this way to avoid assuming anything about the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    	{"a", "a", 0},
    	{"\x80", "\xffb", 0},
    	{"aaa", "a", 2},
    	{"abc", "xyz", -1},
    	{"abc", "ab", 1},
    	{"ab☺c", "x☺yz", 2},
    	{"a☺b☻c☹d", "cx", len("a☺b☻")},
    	{"a☺b☻c☹d", "uvw☻xyz", len("a☺b")},
    	{"a.RegExp*", ".(|)*+?^$[]", 8},
    	{dots + dots + dots, " ", -1},
    	{"012abcba210", "\xffb", 6},
    	{"012\x80bcb\x80210", "\xffb", 7},
    	{"0123456\xcf\x80abc", "\xcfb\x80", 10},
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top