Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addRune (0.15 sec)

  1. internal/s3select/jstream/scratch.go

    func (s *scratch) add(c byte) {
    	if s.fill+1 >= cap(s.data) {
    		s.grow()
    	}
    
    	s.data[s.fill] = c
    	s.fill++
    }
    
    // append encoded rune to scratch buffer
    func (s *scratch) addRune(r rune) int {
    	if s.fill+utf8.UTFMax >= cap(s.data) {
    		s.grow()
    	}
    
    	n := utf8.EncodeRune(s.data[s.fill:], r)
    	s.fill += n
    	return n
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 758 bytes
    - Viewed (0)
  2. internal/s3select/jstream/decoder.go

    	c = d.next()
    	if !utf16.IsSurrogate(r) || c != '\\' {
    		d.scratch.addRune(r)
    		goto scan
    	}
    	if c = d.next(); c != 'u' {
    		d.scratch.addRune(r)
    		goto scan_esc
    	}
    
    	r2 := d.u4()
    	if r2 < 0 {
    		return "", d.mkError(ErrSyntax, "in unicode escape sequence")
    	}
    
    	// write surrogate pair
    	d.scratch.addRune(utf16.DecodeRune(r, r2))
    	c = d.next()
    	goto scan
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java

                    return true;
                }
            }
    
            return allRequired;
        }
    
        public void addRule(final String key, final String regex) {
            regexMap.put(key, Pattern.compile(regex));
        }
    
        public void addRule(final String key, final Pattern pattern) {
            regexMap.put(key, pattern);
        }
    
        public boolean isDefaultRule() {
            return defaultRule;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          ImmutableDoubleArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo((double) j);
          }
        }
      }
    
      private enum BuilderOp {
        ADD_ONE {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

          }
          ImmutableIntArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo(j);
          }
        }
      }
    
      private enum BuilderOp {
        ADD_ONE {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          ImmutableDoubleArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo((double) j);
          }
        }
      }
    
      private enum BuilderOp {
        ADD_ONE {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    		loi.NextMarker = opts.encodeMarker(last.Name)
    		loi.NextVersionIDMarker = last.VersionID
    	}
    	return loi, nil
    }
    
    func maxKeysPlusOne(maxKeys int, addOne bool) int {
    	if maxKeys < 0 || maxKeys > maxObjectList {
    		maxKeys = maxObjectList
    	}
    	if addOne {
    		maxKeys++
    	}
    	return maxKeys
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
Back to top