/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/rcs/ |
H A D | ParseException.java | 109 for (int i = 0; i < expectedTokenSequences.length; i++) { 110 if (maxSize < expectedTokenSequences[i].length) { 111 maxSize = expectedTokenSequences[i].length; 113 for (int j = 0; j < expectedTokenSequences[i].length; j++) { 116 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { 134 if (expectedTokenSequences.length == 1) { 159 for (int i = 0; i < str.length(); i++) { 191 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
|
H A D | Version.java | 107 numbers = new int[num.length]; 108 for (int i = 0; i < num.length; i++) 215 for (i = 0; i < nthis.length; i++) 217 if (i >= nthat.length || nthis[i] > nthat[i]) 227 if (nthat.length > i) 368 positions = (positions > numbers.length ? numbers.length : positions); 384 result.numbers[this.numbers.length - 1] = this.last() + 1; 397 int[] newnum = new int[numbers.length + 1]; 398 System.arraycopy(this.numbers, 0, newnum, 0, numbers.length); [all...] |
H A D | FastCharStream.java | 57 } else if (bufferLength == buffer.length) { // grow buffer 58 byte[] newBuffer = new byte[buffer.length*2]; 72 input.read(buffer, newPosition, buffer.length-newPosition);
|
/opengrok-jel/src/org/opensolaris/opengrok/util/ |
H A D | Getopt.java | 68 while (ii < argv.length) { 70 if (chars.length > 0 && chars[0] == '-') { 77 for (int jj = 1; jj < chars.length; ++jj) { 87 if ((idx + 1) < opts.length() && (opts.charAt(idx + 1) ==':')) { 89 if ((jj + 1) < chars.length) { 96 if (ii < argv.length) {
|
H A D | StringUtils.java | 42 for (int i = 0; i < str.length(); i++) {
|
/opengrok-jel/src/org/opensolaris/opengrok/web/ |
H A D | Util.java | 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 [all...] |
H A D | DiffType.java | 74 if (c == null || c.length() == 0) { 77 if (c.length() == 1) {
|
H A D | SortOrder.java | 55 if (name == null || name.length() == 0) {
|
H A D | WebappListener.java | 75 if (address != null && address.length() > 0) { 78 if (cfg.length == 2) { 97 for (int i = 0; i < cfg.length; ++i) { 100 sb.setLength(sb.length()-2);
|
H A D | EftarFile.java | 140 if (name == null || name.length() == 0) { 144 int n = name.length(); 157 offset += n.tag.length(); 169 out.writeShort((short) childnode.tag.length()); 189 offset += n.tag.length(); 246 for (int i = 0; i < args.length - 1; i++) { 249 write(args[args.length - 1]); 260 if (args.length < 2) {
|
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/diff/ |
H A D | Diff.java | 201 if (orig.length == 0 && rev.length == 0) 214 if (orig.length != rev.length) 218 for (int i = 0; i < orig.length; i++) 243 * @return A sequence of the same length with all the lines 248 Object[] result = new String[text.length]; 250 for(int i = 0; i < text.length; i++) 263 return randomEdit(text, text.length); 306 return shuffle(text, text.length); [all...] |
H A D | SimpleDiff.java | 281 for (int i = 0; i < orig.length; i++) 306 int[] result = new int[seq.length + 1]; 307 for (int i = 0; i < seq.length; i++) 319 result[seq.length] = EOS;
|
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/util/ |
H A D | ToString.java | 136 while( (i = value.indexOf('\n', p)) >= 0 && p < value.length()) { 141 if (p < value.length()) 142 l.add(value.substring(p, value.length())); 197 for (int i = 0; i < o.length - 1; i++) 203 if (o.length > 0) 204 buf.append(o[o.length - 1]);
|
/opengrok-jel/src/org/opensolaris/opengrok/analysis/ |
H A D | List2TokenStream.java | 48 if (subTokens == null || subTokens.length == si) { 63 if (si < subTokens.length) {
|
H A D | JFlexTokenizer.java | 97 * @param length the number of characters to use from the char buffer 99 public final void reInit(char[] contents, int length) { argument 100 yyreset(new CharArrayReader(contents, 0, length));
|
H A D | PathTokenizer.java | 61 if (i >= buf.length) { 62 buf = Arrays.copyOf(buf, buf.length * 2);
|
/opengrok-jel/src/org/opensolaris/opengrok/analysis/archive/ |
H A D | ZipAnalyzerFactory.java | 67 if (contents.length < MAGIC.length) { 70 for (int i = 0; i < MAGIC.length; i++) { 77 in.mark(buf.length);
|
H A D | TarAnalyzer.java | 87 char[] cs = new char[content.length()]; 88 content.getChars(0, cs.length, cs, 0); 89 plainfull.reInit(cs, cs.length);
|
H A D | ZipAnalyzer.java | 85 char[] cs = new char[content.length()]; 86 content.getChars(0, cs.length, cs, 0); 87 plainfull.reInit(cs, cs.length);
|
/opengrok-jel/src/org/opensolaris/opengrok/history/ |
H A D | GitHistoryParser.java | 100 String commit = s.substring("commit".length()).trim(); 103 s = s.substring("Author:".length()).trim(); 108 && s.startsWith(uuid, s.length() - uuid.length() - 1)) 111 s.lastIndexOf('<', s.length() - uuid.length() -1) -1); 116 aDate = s.substring("AuthorDate:".length()).trim(); 119 s.substring("CommitDate:".length()).trim(); 139 if ((s.length() == 0) || Character.isWhitespace(s.charAt(0))) { 143 i = s.indexOf('@', SVN_ID_PREFIX.length() [all...] |
H A D | RepositoryFactory.java | 66 new ArrayList<Class<? extends Repository>>(repositories.length); 67 for (int i=repositories.length-1; i >= 0; i--) { 101 if (res.getType() == null || res.getType().length() == 0) {
|
/opengrok-jel/src/org/opensolaris/opengrok/search/context/ |
H A D | PhraseMatcher.java | 43 if ( cur < phraseTerms.length-1) {
|
/opengrok-jel/test/org/opensolaris/opengrok/analysis/ |
H A D | CtagsTest.java | 114 assertTrue("too many methods", count < names.length); 120 assertEquals("method count", names.length, count); 141 assertTrue("too many functions", count < names.length); 147 assertEquals("function count", names.length, count);
|
/opengrok-jel/test/org/opensolaris/opengrok/history/ |
H A D | MercurialRepositoryTest.java | 76 assertEquals(REVISIONS.length, entries.size()); 94 History hist = mr.getHistory(root, REVISIONS[REVISIONS.length - 1]); 96 assertEquals(REVISIONS.length - 1, entries.size()); 120 assertEquals(2, revisionParts.length);
|
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/tools/ |
H A D | JRCS.java | 78 if (args.length > 2) 84 if (args.length >= 1)
|