Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DirectionString (0.14 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)
Back to top