Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DecodeRuneInString (0.12 sec)

  1. internal/kms/context.go

    				// and served to some browsers.
    				dst.WriteString(`u00`)
    				dst.WriteByte(hexTable[b>>4])
    				dst.WriteByte(hexTable[b&0xF])
    			}
    			i++
    			start = i
    			continue
    		}
    		c, size := utf8.DecodeRuneInString(s[i:])
    		if c == utf8.RuneError && size == 1 {
    			if start < i {
    				dst.WriteString(s[start:i])
    			}
    			dst.WriteString(`\ufffd`)
    			i += size
    			start = i
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. api/go1.txt

    pkg unicode/utf8, func DecodeLastRune([]uint8) (int32, int)
    pkg unicode/utf8, func DecodeLastRuneInString(string) (int32, int)
    pkg unicode/utf8, func DecodeRune([]uint8) (int32, int)
    pkg unicode/utf8, func DecodeRuneInString(string) (int32, int)
    pkg unicode/utf8, func EncodeRune([]uint8, int32) int
    pkg unicode/utf8, func FullRune([]uint8) bool
    pkg unicode/utf8, func FullRuneInString(string) bool
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top