Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,197 for runes (0.08 sec)

  1. src/strconv/isprint.go

    	0xee60,
    	0xee63,
    	0xee6b,
    	0xee73,
    	0xee78,
    	0xee7d,
    	0xee7f,
    	0xee8a,
    	0xeea4,
    	0xeeaa,
    	0xf0c0,
    	0xf0d0,
    	0xfabe,
    	0xfb93,
    }
    
    // isGraphic lists the graphic runes not matched by IsPrint.
    var isGraphic = []uint16{
    	0x00a0,
    	0x1680,
    	0x2000,
    	0x2001,
    	0x2002,
    	0x2003,
    	0x2004,
    	0x2005,
    	0x2006,
    	0x2007,
    	0x2008,
    	0x2009,
    	0x200a,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 04:29:53 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    		}
    		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:
    		return !unicode.IsSpace(r) && unicode.IsPrint(r)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/transform/transform.go

    	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.
    func (t removeF) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	for r, sz := rune(0), 0; len(src) > 0; src = src[sz:] {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K 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/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)
  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. src/text/template/parse/lex.go

    }
    
    // next returns the next rune in the input.
    func (l *lexer) next() rune {
    	if int(l.pos) >= len(l.input) {
    		l.atEOF = true
    		return eof
    	}
    	r, w := utf8.DecodeRuneInString(l.input[l.pos:])
    	l.pos += Pos(w)
    	if r == '\n' {
    		l.line++
    	}
    	return r
    }
    
    // peek returns but does not consume the next rune in the input.
    func (l *lexer) peek() rune {
    	r := l.next()
    	l.backup()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  8. src/encoding/csv/reader.go

    type Reader struct {
    	// Comma is the field delimiter.
    	// It is set to comma (',') by NewReader.
    	// Comma must be a valid rune and must not be \r, \n,
    	// or the Unicode replacement character (0xFFFD).
    	Comma rune
    
    	// Comment, if not 0, is the comment character. Lines beginning with the
    	// Comment character without preceding whitespace are ignored.
    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/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)
  10. src/regexp/syntax/parse_test.go

    		sep := ""
    		for i := 0; i < len(re.Rune); i += 2 {
    			b.WriteString(sep)
    			sep = " "
    			lo, hi := re.Rune[i], re.Rune[i+1]
    			if lo == hi {
    				fmt.Fprintf(b, "%#x", lo)
    			} else {
    				fmt.Fprintf(b, "%#x-%#x", lo, hi)
    			}
    		}
    	}
    	b.WriteByte('}')
    }
    
    func mkCharClass(f func(rune) bool) string {
    	re := &Regexp{Op: OpCharClass}
    	lo := rune(-1)
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top