Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DecodeRuneInString (0.13 sec)

  1. src/archive/zip/writer.go

    // must be considered UTF-8 encoding (i.e., not compatible with CP-437, ASCII,
    // or any other common encoding).
    func detectUTF8(s string) (valid, require bool) {
    	for i := 0; i < len(s); {
    		r, size := utf8.DecodeRuneInString(s[i:])
    		i += size
    		// Officially, ZIP uses CP-437, but many readers use the system's
    		// local character encoding. Most encoding are compatible with a large
    		// subset of CP-437, which itself is ASCII-like.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	case scanner.Int:
    		return p.atoi(tok.String())
    	case scanner.Char:
    		str, err := strconv.Unquote(tok.String())
    		if err != nil {
    			p.errorf("%s", err)
    		}
    		r, w := utf8.DecodeRuneInString(str)
    		if w == 1 && r == utf8.RuneError {
    			p.errorf("illegal UTF-8 encoding for character constant")
    		}
    		return uint64(r)
    	case '+':
    		return +p.factor()
    	case '-':
    		return -p.factor()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    			return true
    		}
    		return c.dwarfHasPointer(dt.Type, pos)
    	}
    }
    
    func upper(s string) string {
    	if s == "" {
    		return ""
    	}
    	r, size := utf8.DecodeRuneInString(s)
    	if r == '_' {
    		return "X" + s
    	}
    	return string(unicode.ToUpper(r)) + s[size:]
    }
    
    // godefsFields rewrites field names for use in Go or C definitions.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top