Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isRTL (0.03 sec)

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

    	seen   uint16
    }
    
    // A rule can only be violated for "Bidi Domain names", meaning if one of the
    // following categories has been observed.
    func (t *Transformer) isRTL() bool {
    	const isRTL = 1<<bidi.R | 1<<bidi.AL | 1<<bidi.AN
    	return t.seen&isRTL != 0
    }
    
    // Reset implements transform.Transformer.
    func (t *Transformer) Reset() { *t = Transformer{} }
    
    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/text/secure/bidirule/bidirule9.0.0.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !go1.10
    
    package bidirule
    
    func (t *Transformer) isFinal() bool {
    	if !t.isRTL() {
    		return true
    	}
    	return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 358 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/text/unicode/bidi/core.go

    		// Rules X2, X3, X4, X5, X5a, X5b, X5c
    		switch t {
    		case RLE, LRE, RLO, LRO, RLI, LRI, FSI:
    			isIsolate := t.in(RLI, LRI, FSI)
    			isRTL := t.in(RLE, RLO, RLI)
    
    			// override if this is an FSI that resolves to RLI
    			if t == FSI {
    				isRTL = (p.determineParagraphEmbeddingLevel(i+1, p.matchingPDI[i]) == 1)
    			}
    			if isIsolate {
    				p.resultLevels[i] = stack.lastEmbeddingLevel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 29.4K bytes
    - Viewed (0)
Back to top