Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for foldRune (0.24 sec)

  1. src/encoding/json/fold.go

    			out = append(out, c)
    			i++
    			continue
    		}
    		// Handle multi-byte Unicode.
    		r, n := utf8.DecodeRune(in[i:])
    		out = utf8.AppendRune(out, foldRune(r))
    		i += n
    	}
    	return out
    }
    
    // foldRune is returns the smallest rune for all runes in the same fold set.
    func foldRune(r rune) rune {
    	for {
    		r2 := unicode.SimpleFold(r)
    		if r2 <= r {
    			return r2
    		}
    		r = r2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields.go

    	return fmt.Sprintf("{name: %s, type: %v, tag: %v, index: %v, omitEmpty: %v, quoted: %v}", f.name, f.typ, f.tag, f.index, f.omitEmpty, f.quoted)
    }
    
    func fillField(f field) field {
    	f.nameBytes = []byte(f.name)
    	f.equalFold = foldFunc(f.nameBytes)
    	return f
    }
    
    // byName sorts field by name, breaking ties with depth,
    // then breaking ties with "name came from json tag", then
    // breaking ties with index sequence.
    type byName []field
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 13.1K bytes
    - Viewed (0)
Back to top