Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for quoteString (0.23 sec)

  1. src/net/mail/message.go

    func isQtext(r rune) bool {
    	// Printable US-ASCII, excluding backslash or quote.
    	if r == '\\' || r == '"' {
    		return false
    	}
    	return isVchar(r)
    }
    
    // quoteString renders a string as an RFC 5322 quoted-string.
    func quoteString(s string) string {
    	var b strings.Builder
    	b.WriteByte('"')
    	for _, r := range s {
    		if isQtext(r) || isWSP(r) {
    			b.WriteRune(r)
    		} else if isVchar(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/http.go

    	}
    
    	return result, remainder, nil
    }
    
    func parseQuotedString(quotedString string) (string, string, error) {
    	if len(quotedString) == 0 {
    		return "", "", errors.New("invalid quoted string: 0-length")
    	}
    
    	if quotedString[0] != '"' {
    		return "", "", errors.New("invalid quoted string: missing initial quote")
    	}
    
    	quotedString = quotedString[1:]
    	var remainder string
    	escaping := false
    	closedQuote := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 05 00:08:58 UTC 2022
    - 20.8K bytes
    - Viewed (0)
  3. src/fmt/scan.go

    	s.SkipSpace()
    	s.notEOF()
    	switch verb {
    	case 'q':
    		str = s.quotedString()
    	case 'x', 'X':
    		str = s.hexString()
    	default:
    		str = string(s.token(true, notSpace)) // %s and %v just return the next word
    	}
    	return
    }
    
    // quotedString returns the double- or back-quoted string represented by the next input characters.
    func (s *ss) quotedString() string {
    	s.notEOF()
    	quote := s.getRune()
    	switch quote {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. src/crypto/x509/verify.go

    		// Section 4. Since it has been 16 years, we no longer accept that.)
    		in = in[1:]
    	QuotedString:
    		for {
    			if len(in) == 0 {
    				return mailbox, false
    			}
    			c := in[0]
    			in = in[1:]
    
    			switch {
    			case c == '"':
    				break QuotedString
    
    			case c == '\\':
    				// quoted-pair
    				if len(in) == 0 {
    					return mailbox, false
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top