Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for flushCopy (0.15 sec)

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

    }
    
    func flushTransform(rb *reorderBuffer) bool {
    	// Write out (must fully fit in dst, or else it is an ErrShortDst).
    	if len(rb.out) < rb.nrune*utf8.UTFMax {
    		return false
    	}
    	rb.out = rb.out[rb.flushCopy(rb.out):]
    	return true
    }
    
    var errs = []error{nil, transform.ErrShortDst, transform.ErrShortSrc}
    
    // transform implements the transform.Transformer interface. It is only called
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/text/unicode/norm/iter.go

    func nextMultiNorm(i *Iter) []byte {
    	j := 0
    	d := i.multiSeg
    	for j < len(d) {
    		info := i.rb.f.info(input{bytes: d}, j)
    		if info.BoundaryBefore() {
    			i.rb.compose()
    			seg := i.buf[:i.rb.flushCopy(i.buf[:])]
    			i.rb.insertUnsafe(input{bytes: d}, j, info)
    			i.multiSeg = d[j+int(info.size):]
    			return seg
    		}
    		i.rb.insertUnsafe(input{bytes: d}, j, info)
    		j += int(info.size)
    	}
    	i.multiSeg = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/transform.go

    }
    
    func flushTransform(rb *reorderBuffer) bool {
    	// Write out (must fully fit in dst, or else it is an ErrShortDst).
    	if len(rb.out) < rb.nrune*utf8.UTFMax {
    		return false
    	}
    	rb.out = rb.out[rb.flushCopy(rb.out):]
    	return true
    }
    
    var errs = []error{nil, transform.ErrShortDst, transform.ErrShortSrc}
    
    // transform implements the transform.Transformer interface. It is only called
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    func nextMultiNorm(i *Iter) []byte {
    	j := 0
    	d := i.multiSeg
    	for j < len(d) {
    		info := i.rb.f.info(input{bytes: d}, j)
    		if info.BoundaryBefore() {
    			i.rb.compose()
    			seg := i.buf[:i.rb.flushCopy(i.buf[:])]
    			i.rb.insertUnsafe(input{bytes: d}, j, info)
    			i.multiSeg = d[j+int(info.size):]
    			return seg
    		}
    		i.rb.insertUnsafe(input{bytes: d}, j, info)
    		j += int(info.size)
    	}
    	i.multiSeg = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    		end := start + rb.rune[i].size
    		out = append(out, rb.byte[start:end]...)
    	}
    	rb.reset()
    	return out
    }
    
    // flushCopy copies the normalized segment to buf and resets rb.
    // It returns the number of bytes written to buf.
    func (rb *reorderBuffer) flushCopy(buf []byte) int {
    	p := 0
    	for i := 0; i < rb.nrune; i++ {
    		runep := rb.rune[i]
    		p += copy(buf[p:], rb.byte[runep.pos:runep.pos+runep.size])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/text/unicode/norm/composition.go

    		end := start + rb.rune[i].size
    		out = append(out, rb.byte[start:end]...)
    	}
    	rb.reset()
    	return out
    }
    
    // flushCopy copies the normalized segment to buf and resets rb.
    // It returns the number of bytes written to buf.
    func (rb *reorderBuffer) flushCopy(buf []byte) int {
    	p := 0
    	for i := 0; i < rb.nrune; i++ {
    		runep := rb.rune[i]
    		p += copy(buf[p:], rb.byte[runep.pos:runep.pos+runep.size])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 14.1K bytes
    - Viewed (0)
Back to top