Lines Matching refs:length

73         for (int i=0; i < s.length(); i++) {
84 sb.ensureCapacity(s.length() + 8);
86 for (int i=start; i < s.length(); i++) {
118 for (int i=0; i < s.length(); i++) {
129 sb.ensureCapacity(s.length() + 8);
131 for (int i=start; i < s.length(); i++) {
217 if (path == null || path.length() == 0) {
221 path.charAt(path.length() - 1) == sep);
254 if (path == null || path.length() == 0) {
258 if (pnames.length == 0) {
263 StringBuilder pwd = new StringBuilder(path.length() + pnames.length);
265 new StringBuilder( (pnames.length + 3 >> 1) * path.length()
266 + pnames.length
267 * (17 + prefix.length() + postfix.length()));
273 for (int i = 0; i < pnames.length; i++ ) {
275 if (isDir || i < pnames.length - 1) {
281 if (isDir || i < pnames.length - 1) {
309 if (path == null || path.length() == 0) {
313 if (pnames.length == 0) {
316 StringBuilder buf = new StringBuilder(path.length());
318 for (int i=0; i < pnames.length; i++) {
321 if (path.charAt(path.length()-1) != sep) {
325 buf.setLength(buf.length()-1);
360 * @return a possible empty array of names all with a length &gt; 0.
364 if (names == null || names.length == 0) {
367 for (int i = 0; i < names.length; i++ ) {
368 if (names[i] == null || names[i].length() == 0) {
385 return res.size() == names.length ? names : res.toArray(new String[res
401 for (int i = 0; i < 4 - hex.length(); i++ ) {
561 if (url.length() == 0) {
565 for (;i < url.length(); i++) {
579 if (i == url.length()) {
582 StringBuilder sb = new StringBuilder(url.length());
583 sb.ensureCapacity(url.length() + 24);
585 for(; i < url.length(); i++) {
608 .encode(CharBuffer.wrap(url, i, url.length()));
656 if (path.length() == 0) {
704 for (;i < s.length(); i++) {
718 if (i == s.length()) {
721 StringBuilder sb = new StringBuilder(s.length() - i + 24);
723 for(; i < s.length(); i++) {
739 .encode(CharBuffer.wrap(s, i, s.length()));
777 for (int i = 0; i < q.length(); i++ ) {
788 for (int i = pos; i < q.length(); i++ ) {
806 private static final int SPAN_LEN = SPAN_D.length() + SPAN_E.length();
820 int m = line1.length();
821 int n = line2.length();
843 System.arraycopy(csl1, m, csl1, m + SPAN_LEN, line1.length() - m);
844 System.arraycopy(csl1, s, csl1, s + SPAN_D.length(), m - s);
845 SPAN_E.getChars(0, SPAN_E.length(), csl1, m + SPAN_D.length());
846 SPAN_D.getChars(0, SPAN_D.length(), csl1, s);
854 System.arraycopy(csl2, n, csl2, n + SPAN_LEN, line2.length() - n);
855 System.arraycopy(csl2, s, csl2, s + SPAN_A.length(), n - s);
856 SPAN_E.getChars(0, SPAN_E.length(), csl2, n + SPAN_A.length());
857 SPAN_A.getChars(0, SPAN_A.length(), csl2, s);
1043 for (int i = 0; i < str.length(); i++ ) {
1118 if (values.length > 0) {
1120 for (int i=1; i < values.length; i++) {