Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for lookupString (0.39 sec)

  1. src/cmd/vendor/golang.org/x/text/unicode/norm/input.go

    	return copy(buf, in.bytes[b:e])
    }
    
    func (in *input) charinfoNFC(p int) (uint16, int) {
    	if in.bytes == nil {
    		return nfcData.lookupString(in.str[p:])
    	}
    	return nfcData.lookup(in.bytes[p:])
    }
    
    func (in *input) charinfoNFKC(p int) (uint16, int) {
    	if in.bytes == nil {
    		return nfkcData.lookupString(in.str[p:])
    	}
    	return nfkcData.lookup(in.bytes[p:])
    }
    
    func (in *input) hangul(p int) (r rune) {
    	var size int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/text/unicode/norm/input.go

    	return copy(buf, in.bytes[b:e])
    }
    
    func (in *input) charinfoNFC(p int) (uint16, int) {
    	if in.bytes == nil {
    		return nfcData.lookupString(in.str[p:])
    	}
    	return nfcData.lookup(in.bytes[p:])
    }
    
    func (in *input) charinfoNFKC(p int) (uint16, int) {
    	if in.bytes == nil {
    		return nfkcData.lookupString(in.str[p:])
    	}
    	return nfkcData.lookup(in.bytes[p:])
    }
    
    func (in *input) hangul(p int) (r rune) {
    	var size int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 2K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/text/unicode/bidi/prop.go

    		return Properties{entry: trie.lookupValue(uint32(i), c3)}, 4
    	}
    	// Illegal rune
    	return Properties{}, 1
    }
    
    // LookupString returns properties for the first rune in s and the width in
    // bytes of its encoding. The size will be 0 if s does not hold enough bytes to
    // complete the encoding.
    func LookupString(s string) (p Properties, sz int) {
    	c0 := s[0]
    	switch {
    	case c0 < 0x80: // is ASCII
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 5.7K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/idna/idna9.0.0.go

    }
    
    func validateRegistration(p *Profile, s string) (string, error) {
    	if !norm.NFC.IsNormalString(s) {
    		return s, &labelError{s, "V1"}
    	}
    	for i := 0; i < len(s); {
    		v, sz := trie.lookupString(s[i:])
    		// Copy bytes not copied so far.
    		switch p.simplify(info(v).category()) {
    		// TODO: handle the NV8 defined in the Unicode idna data set to allow
    		// for strict conformance to IDNA2008.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    	// TODO: filter need for normalization in loop below.
    	if !norm.NFC.IsNormalString(s) {
    		return s, false, &labelError{s, "V1"}
    	}
    	for i := 0; i < len(s); {
    		v, sz := trie.lookupString(s[i:])
    		if sz == 0 {
    			return s, bidi, runeError(utf8.RuneError)
    		}
    		bidi = bidi || info(v).isBidi(s[i:])
    		// Copy bytes not copied so far.
    		switch p.simplify(info(v).category()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    }
    
    // PropertiesString returns properties for the first rune in s.
    func (f Form) PropertiesString(s string) Properties {
    	if f == NFC || f == NFD {
    		return compInfo(nfcData.lookupString(s))
    	}
    	return compInfo(nfkcData.lookupString(s))
    }
    
    // compInfo converts the information contained in v and sz
    // to a Properties.  See the comment at the top of the file
    // for more information on the format.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/forminfo.go

    }
    
    // PropertiesString returns properties for the first rune in s.
    func (f Form) PropertiesString(s string) Properties {
    	if f == NFC || f == NFD {
    		return compInfo(nfcData.lookupString(s))
    	}
    	return compInfo(nfkcData.lookupString(s))
    }
    
    // compInfo converts the information contained in v and sz
    // to a Properties.  See the comment at the top of the file
    // for more information on the format.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/text/secure/bidirule/bidirule.go

    // 5893. The Bidi Rule does not have to be applied to labels of the category
    // LeftToRight.
    func DirectionString(s string) bidi.Direction {
    	for i := 0; i < len(s); {
    		e, sz := bidi.LookupString(s[i:])
    		if sz == 0 {
    			i++
    			continue
    		}
    		c := e.Class()
    		if c == bidi.R || c == bidi.AL || c == bidi.AN {
    			return bidi.RightToLeft
    		}
    		i += sz
    	}
    	return bidi.LeftToRight
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 9.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/cases/tables10.0.0.go

    		return t.lookupValue(uint32(i), s[3])
    	}
    	return 0
    }
    
    // lookupString returns the trie value for the first UTF-8 encoding in s and
    // the width in bytes of this encoding. The size will be 0 if s does not
    // hold enough bytes to complete the encoding. len(s) must be greater than 0.
    func (t *caseTrie) lookupString(s string) (v uint16, sz int) {
    	c0 := s[0]
    	switch {
    	case c0 < 0x80: // is ASCII
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/cases/tables9.0.0.go

    		return t.lookupValue(uint32(i), s[3])
    	}
    	return 0
    }
    
    // lookupString returns the trie value for the first UTF-8 encoding in s and
    // the width in bytes of this encoding. The size will be 0 if s does not
    // hold enough bytes to complete the encoding. len(s) must be greater than 0.
    func (t *caseTrie) lookupString(s string) (v uint16, sz int) {
    	c0 := s[0]
    	switch {
    	case c0 < 0x80: // is ASCII
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 92.4K bytes
    - Viewed (0)
Back to top