Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 158 for isspace (0.45 sec)

  1. src/internal/trace/raw/doc.go

    consist of any UTF-8 character except '='.
    
    For example:
    
    	EventName arg1=23 arg2=55 arg3=53
    
    Any amount of whitespace is allowed to separate each token. Whitespace
    is identified via unicode.IsSpace.
    
    Some events have additional data on following lines. There are two such
    special cases.
    
    The first special case consists of events with trailing byte-oriented data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/go/build/read.go

    	}
    	trimSpace := func() {
    		trim := strings.TrimLeftFunc(args, unicode.IsSpace)
    		trimBytes(len(args) - len(trim))
    	}
    
    	var list []fileEmbed
    	for trimSpace(); args != ""; trimSpace() {
    		var path string
    		pathPos := pos
    	Switch:
    		switch args[0] {
    		default:
    			i := len(args)
    			for j, c := range args {
    				if unicode.IsSpace(c) {
    					i = j
    					break
    				}
    			}
    			path = args[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/unicode/graphic_test.go

    		want := Is(Punct, i)
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsSpaceLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsSpace(i)
    		want := Is(White_Space, i)
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsSymbolLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/build_read.go

    	}
    	trimSpace := func() {
    		trim := strings.TrimLeftFunc(args, unicode.IsSpace)
    		trimBytes(len(args) - len(trim))
    	}
    
    	var list []fileEmbed
    	for trimSpace(); args != ""; trimSpace() {
    		var path string
    		pathPos := pos
    	Switch:
    		switch args[0] {
    		default:
    			i := len(args)
    			for j, c := range args {
    				if unicode.IsSpace(c) {
    					i = j
    					break
    				}
    			}
    			path = args[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. src/testing/match.go

    // space.
    func rewrite(s string) string {
    	b := []byte{}
    	for _, r := range s {
    		switch {
    		case isSpace(r):
    			b = append(b, '_')
    		case !strconv.IsPrint(r):
    			s := strconv.QuoteRune(r)
    			b = append(b, s[1:len(s)-1]...)
    		default:
    			b = append(b, string(r)...)
    		}
    	}
    	return string(b)
    }
    
    func isSpace(r rune) bool {
    	if r < 0x2000 {
    		switch r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. src/math/big/prime_test.go

    	"2009621503",
    	"1502682721",
    	"255866131",
    	"117987841",
    	"587861",
    
    	"6368689",
    	"8725753",
    	"80579735209",
    	"105919633",
    }
    
    func cutSpace(r rune) rune {
    	if unicode.IsSpace(r) {
    		return -1
    	}
    	return r
    }
    
    func TestProbablyPrime(t *testing.T) {
    	nreps := 20
    	if testing.Short() {
    		nreps = 1
    	}
    	for i, s := range primes {
    		p, _ := new(Int).SetString(s, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 7.1K bytes
    - Viewed (0)
  7. pilot/pkg/config/file/util/kubeyaml/kubeyaml.go

    		if i := bytes.Index(line, []byte(separator)); i == 0 {
    			// We have a potential document terminator
    			i += sep
    			after := line[i:]
    			if len(strings.TrimRightFunc(string(after), unicode.IsSpace)) == 0 {
    				if buffer.Len() != 0 {
    					return buffer.Bytes(), startLine, nil
    				}
    				if err == io.EOF {
    					return nil, startLine, err
    				}
    			}
    		}
    		if err == io.EOF {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 02:41:40 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    	return predicate{
    		func(r rune) bool {
    			return !p.f(r)
    		},
    		"not " + p.name,
    	}
    }
    
    var trimFuncTests = []TrimFuncTest{
    	{isSpace, space + " hello " + space,
    		[]byte("hello"),
    		[]byte("hello " + space),
    		[]byte(space + " hello")},
    	{isDigit, "\u0e50\u0e5212hello34\u0e50\u0e51",
    		[]byte("hello"),
    		[]byte("hello34\u0e50\u0e51"),
    		[]byte("\u0e50\u0e5212hello")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. src/encoding/json/stream.go

    	n, err := dec.r.Read(dec.buf[len(dec.buf):cap(dec.buf)])
    	dec.buf = dec.buf[0 : len(dec.buf)+n]
    
    	return err
    }
    
    func nonSpace(b []byte) bool {
    	for _, c := range b {
    		if !isSpace(c) {
    			return true
    		}
    	}
    	return false
    }
    
    // An Encoder writes JSON values to an output stream.
    type Encoder struct {
    	w          io.Writer
    	err        error
    	escapeHTML bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pkg/util/procfs/procfs_linux.go

    			if len(parts) == 0 {
    				continue
    			}
    			// Split the command line itself we are interested in just the first part
    			exe := strings.FieldsFunc(string(parts[0]), func(c rune) bool {
    				return unicode.IsSpace(c) || c == ':'
    			})
    			if len(exe) == 0 {
    				continue
    			}
    			// Check if the name of the executable is what we are looking for
    			if re.MatchString(exe[0]) {
    				// Grab the PID from the directory path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top