Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 82 for myrunes (0.24 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			in.Error("mod files must use // comments (not /* */ comments)")
    		}
    		in.readRune()
    	}
    	in.endToken(_IDENT)
    }
    
    // isIdent reports whether c is an identifier rune.
    // We treat most printable runes as identifier runes, except for a handful of
    // ASCII punctuation characters.
    func isIdent(c int) bool {
    	switch r := rune(c); r {
    	case ' ', '(', ')', '[', ']', '{', '}', ',':
    		return false
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/transform/transform.go

    	if c.errStart > 0 {
    		for i := 1; i < c.errStart; i++ {
    			c.link[i].p, c.link[i].n = 0, 0
    		}
    		err, c.errStart, c.err = c.err, 0, nil
    	}
    	return dstL.n, srcL.p, err
    }
    
    // Deprecated: Use runes.Remove instead.
    func RemoveFunc(f func(r rune) bool) Transformer {
    	return removeF(f)
    }
    
    type removeF func(r rune) bool
    
    func (removeF) Reset() {}
    
    // Transform implements the Transformer interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. src/go/constant/value.go

    	s := strconv.Quote(x.string())
    	if utf8.RuneCountInString(s) > maxLen {
    		// The string without the enclosing quotes is greater than maxLen-2 runes
    		// long. Remove the last 3 runes (including the closing '"') by keeping
    		// only the first maxLen-3 runes; then add "...".
    		i := 0
    		for n := 0; n < maxLen-3; n++ {
    			_, size := utf8.DecodeRuneInString(s[i:])
    			i += size
    		}
    		s = s[:i] + "..."
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/module/module.go

    // But there are at least two subtle considerations.
    //
    // First, note that not all case-fold equivalent distinct runes
    // form an upper/lower pair.
    // For example, U+004B ('K'), U+006B ('k'), and U+212A ('K' for Kelvin)
    // are three distinct runes that case-fold to each other.
    // When we do add Unicode letters, we must not assume that upper/lower
    // are the only case-equivalent pairs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. src/cmd/internal/archive/archive.go

    		Data:  Data{off + entryLen, size},
    	})
    }
    
    // exactly16Bytes truncates the string if necessary so it is at most 16 bytes long,
    // then pads the result with spaces to be exactly 16 bytes.
    // Fmt uses runes for its width calculation, but we need bytes in the entry header.
    func exactly16Bytes(s string) string {
    	for len(s) > 16 {
    		_, wid := utf8.DecodeLastRuneInString(s)
    		s = s[:len(s)-wid]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/html/template/js.go

    	return s
    }
    
    // replace replaces each rune r of s with replacementTable[r], provided that
    // r < len(replacementTable). If replacementTable[r] is the empty string then
    // no replacement is made.
    // It also replaces runes U+2028 and U+2029 with the raw strings `\u2028` and
    // `\u2029`.
    func replace(s string, replacementTable []string) string {
    	var b strings.Builder
    	r, w, written := rune(0), 0, 0
    	for i := 0; i < len(s); i += w {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. doc/go_spec.html

    <li>
    Converting a value of a string type to a slice of runes type
    yields a slice containing the individual Unicode code points of the string.
    
    <pre>
    []rune(myString("白鵬翔"))   // []rune{0x767d, 0x9d6c, 0x7fd4}
    []rune("")                  // []rune{}
    
    runes("白鵬翔")              // []rune{0x767d, 0x9d6c, 0x7fd4}
    
    []myRune("♫♬")              // []myRune{0x266b, 0x266c}
    []myRune(myString("🌐"))    // []myRune{0x1f310}
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  8. src/encoding/csv/reader.go

    // the start of the field with the given index in the slice most recently
    // returned by [Reader.Read]. Numbering of lines and columns starts at 1;
    // columns are counted in bytes, not runes.
    //
    // If this is called with an out-of-bounds index, it panics.
    func (r *Reader) FieldPos(field int) (line, column int) {
    	if field < 0 || field >= len(r.fieldPositions) {
    		panic("out of range index passed to FieldPos")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. src/regexp/syntax/parse_test.go

    	"(" + strings.Repeat("(xx?)", 1000) + "){1000}",          // too long
    	strings.Repeat("(xx?){1000}", 1000),                      // too long
    	strings.Repeat(`\pL`, 27000),                             // too many runes
    }
    
    var onlyPerl = []string{
    	`[a-b-c]`,
    	`\Qabc\E`,
    	`\Q*+?{[\E`,
    	`\Q\\E`,
    	`\Q\\\E`,
    	`\Q\\\\E`,
    	`\Q\\\\\E`,
    	`(?:a)`,
    	`(?P<name>a)`,
    }
    
    var onlyPOSIX = []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  10. src/strconv/quote.go

    		r, wid := utf8.DecodeRuneInString(s)
    		s = s[wid:]
    		if wid > 1 {
    			if r == '\ufeff' {
    				return false // BOMs are invisible and should not be quoted.
    			}
    			continue // All other multibyte runes are correctly encoded and assumed printable.
    		}
    		if r == utf8.RuneError {
    			return false
    		}
    		if (r < ' ' && r != '\t') || r == '`' || r == '\u007F' {
    			return false
    		}
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top