/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/util/ |
H A D | XMLStringBuffer.java | 162 int newLength = this.ch.length * 2 ; 163 if(newLength < this.ch.length + DEFAULT_SIZE){ 164 newLength = this.ch.length + DEFAULT_SIZE; 166 char [] tmp = new char[newLength]; 182 int newLength = this.ch.length * 2 ; 183 if(newLength < this.ch.length + length + DEFAULT_SIZE){ 184 newLength = this.ch.length + length+ DEFAULT_SIZE; 187 char[] newch = new char[newLength]; 204 int newLength = this.ch.length * 2 ; 205 if(newLength < thi [all...] |
/openjdk7/jdk/src/share/npt/ |
H A D | utf.c | 141 int newLength; local 144 newLength = 0; 150 newLength++; 152 newLength++; /* We gain one byte in length on NULL bytes */ 160 newLength += 2; 168 newLength += 3; 177 newLength += 6; /* 4byte encoding turns into 2 3byte ones */ 187 return newLength; 197 utf8sToUtf8m(struct UtfInst *ui, jbyte *string, int length, jbyte *newString, int newLength) argument 249 UTF_ASSERT(j==newLength); 263 int newLength; local 328 utf8mToUtf8s(struct UtfInst *ui, jbyte *string, int length, jbyte *newString, int newLength) argument [all...] |
H A D | npt.h | 81 jbyte *newString, int newLength); 86 jbyte *newString, int newLength);
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Arrays.java | 2211 * @param newLength the length of the copy to be returned 2214 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative 2218 public static <T> T[] copyOf(T[] original, int newLength) { argument 2219 return (T[]) copyOf(original, newLength, original.getClass()); 2233 * @param newLength the length of the copy to be returned 2237 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative 2244 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { argument 2246 ? (T[]) new Object[newLength] 2247 : (T[]) Array.newInstance(newType.getComponentType(), newLength); 2249 Math.min(original.length, newLength)); 2270 copyOf(byte[] original, int newLength) argument 2294 copyOf(short[] original, int newLength) argument 2318 copyOf(int[] original, int newLength) argument 2342 copyOf(long[] original, int newLength) argument 2366 copyOf(char[] original, int newLength) argument 2390 copyOf(float[] original, int newLength) argument 2414 copyOf(double[] original, int newLength) argument 2438 copyOf(boolean[] original, int newLength) argument [all...] |
H A D | IdentityHashMap.java | 456 int newLength = newCapacity * 2; 466 if (oldLength >= newLength) 469 Object[] newTable = new Object[newLength]; 470 threshold = newLength / 3; 478 int i = hash(key, newLength); 480 i = nextKeyIndex(i, newLength);
|
H A D | Properties.java | 478 int newLength = lineBuf.length * 2; 479 if (newLength < 0) { 480 newLength = Integer.MAX_VALUE; 482 char[] buf = new char[newLength];
|
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | Polygon.java | 287 int newLength = npoints * 2; 288 // Make sure that newLength will be greater than MIN_LENGTH and 290 if (newLength < MIN_LENGTH) { 291 newLength = MIN_LENGTH; 292 } else if ((newLength & (newLength - 1)) != 0) { 293 newLength = Integer.highestOneBit(newLength); 296 xpoints = Arrays.copyOf(xpoints, newLength); 297 ypoints = Arrays.copyOf(ypoints, newLength); [all...] |
/openjdk7/jdk/src/share/classes/sun/instrument/ |
H A D | TransformerManager.java | 111 int newLength = oldLength - 1; 126 TransformerInfo[] newList = new TransformerInfo[newLength]; 138 if ( matchingIndex < (newLength) ) { 143 (newLength) - matchingIndex);
|
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/ |
H A D | ByteBufferWithInfo.java | 195 int newLength = byteBuffer.limit() * 2; 197 while (position() + needed >= newLength) 198 newLength = newLength * 2; 201 ByteBuffer newBB = byteBufferPool.getByteBuffer(newLength); 233 // limit and buflen must be set to newLength. 234 buflen = newLength;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/sax/ |
H A D | AttributesHolder.java | 244 final int newLength = _attributeCount * 3 / 2 + 1; 246 QualifiedName[] names = new QualifiedName[newLength]; 247 String[] values = new String[newLength]; 249 String[] algorithmURIs = new String[newLength]; 250 int[] algorithmIds = new int[newLength]; 251 Object[] algorithmData = new Object[newLength];
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/fastinfoset/sax/helpers/ |
H A D | EncodingAlgorithmAttributesImpl.java | 544 final int newLength = _length * 3 / 2 + 1; 546 _data = new String[newLength * SIZE]; 547 _algorithmIds = new int[newLength]; 548 _algorithmData = new Object[newLength]; 552 final int newLength = _length * 3 / 2 + 1; 554 String[] data = new String[newLength * SIZE]; 555 int[] algorithmIds = new int[newLength]; 556 Object[] algorithmData = new Object[newLength]; 557 String[] alphabets = new String[newLength]; 558 boolean[] toIndex = new boolean[newLength]; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/util/ |
H A D | NamespaceContextImplementation.java | 198 final int newLength = namespaceURIs.length * 3 / 2 + 1; 200 String[] newPrefixes = new String[newLength]; 204 String[] newNamespaceURIs = new String[newLength];
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/stax/ |
H A D | NamespaceContexHelper.java | 242 final int newLength = namespaceURIs.length * 3 / 2 + 1; 244 String[] newPrefixes = new String[newLength]; 248 String[] newNamespaceURIs = new String[newLength];
|
/openjdk7/jdk/src/share/native/java/io/ |
H A D | RandomAccessFile.c | 145 jlong newLength) 156 if (IO_SetLength(fd, newLength) == -1) goto fail; 157 if (cur > newLength) { 144 Java_java_io_RandomAccessFile_setLength(JNIEnv *env, jobject this, jlong newLength) argument
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/ |
H A D | AttributesHolder.java | 187 final int newLength = length * 2; 188 final String[] strings = new String[newLength];
|
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/validation/ |
H A D | DOMResultAugmentor.java | 147 final int newLength = attributes.getLength(); 149 if (newLength > oldLength) { 151 for (int i = oldLength; i < newLength; ++i) { 158 for (int i = oldLength; i < newLength; ++i) {
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/privateutil/ |
H A D | PolicyUtils.java | 454 int newLength = 0; 468 unquoted[newLength++] = (byte) (hi * 16 + lo); 470 unquoted[newLength++] = (byte) c; 474 return new String(unquoted, 0, newLength, "utf-8");
|
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | AbstractStringBuilder.java | 150 * index <i>k</i> less than <code>newLength</code>, the character at 156 * In other words, if the <code>newLength</code> argument is less than 159 * If the <code>newLength</code> argument is greater than or equal 162 * length becomes the <code>newLength</code> argument. 164 * The <code>newLength</code> argument must be greater than or equal 167 * @param newLength the new length 169 * <code>newLength</code> argument is negative. 171 public void setLength(int newLength) { argument 172 if (newLength < 0) 173 throw new StringIndexOutOfBoundsException(newLength); [all...] |
H A D | StringBuffer.java | 169 public synchronized void setLength(int newLength) { argument 170 super.setLength(newLength);
|
/openjdk7/jdk/src/share/native/sun/font/layout/ |
H A D | LETableReference.h | 182 size_t contractLength(size_t newLength) { argument 183 if(fLength!=LE_UINTPTR_MAX&&newLength>0&&newLength<=fLength) { 184 fLength = newLength;
|
/openjdk7/jdk/src/share/demo/jvmti/heapTracker/ |
H A D | heapTracker.c | 788 long newLength; local 803 newLength = 0; 818 &newLength, 825 if ( newLength > 0 ) { 828 jvmti_space = (unsigned char *)allocate(jvmti, (jint)newLength); 829 (void)memcpy((void*)jvmti_space, (void*)newImage, (int)newLength); 830 *new_class_data_len = (jint)newLength;
|
/openjdk7/jdk/src/share/classes/java/text/ |
H A D | MessageFormat.java | 1430 int newLength = formats.length * 2; 1431 Format[] newFormats = new Format[newLength]; 1432 int[] newOffsets = new int[newLength]; 1433 int[] newArgumentNumbers = new int[newLength];
|
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | StringContent.java | 201 int newLength = Math.max(2*data.length, count + delta); 202 char[] newData = new char[newLength];
|
H A D | CompositeView.java | 202 int newLength = Math.max(2*children.length, nchildren + delta); 203 View[] newChildren = new View[newLength];
|
/openjdk7/jdk/test/java/lang/instrument/ilib/ |
H A D | InjectBytecodes.java | 752 int newLength = newEndPC - newStartPC; 753 c.writeU2(newLength); 763 ", length= [was] " + length + " [now] " + newLength +
|