Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DirectionString (0.2 sec)

  1. src/vendor/golang.org/x/text/secure/bidirule/bidirule.go

    			return bidi.RightToLeft
    		}
    		i += sz
    	}
    	return bidi.LeftToRight
    }
    
    // DirectionString reports the direction of the given label as defined by RFC
    // 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++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 9.3K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    			u, err2 := decode(label[len(acePrefix):])
    			if err2 != nil {
    				if err == nil {
    					err = err2
    				}
    				// Spec says keep the old label.
    				continue
    			}
    			isBidi = isBidi || bidirule.DirectionString(u) != bidi.LeftToRight
    			labels.set(u)
    			if err == nil && p.fromPuny != nil {
    				err = p.fromPuny(p, u)
    			}
    			if err == nil {
    				// This should be called on NonTransitional, according to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top