/opengrok-sun/src/org/opensolaris/opengrok/web/ |
H A D | Util.java | 73 StringBuilder sb = new StringBuilder(q.length() * 2); 86 for (int i = 0; i < q.length(); i++ ) { 96 * @param length max. number of characters to append, starting from index 0. 99 public static void htmlize(char[] cs, int length, StringBuilder dest) { argument 100 int len = length; 101 if (cs.length < length) { 102 len = cs.length; 200 if (path == null || path.length() == 0) { 204 path.charAt(path.length() [all...] |
H A D | DiffType.java | 71 if (c == null || c.length() == 0) { 74 if (c.length() == 1) {
|
H A D | WebappListener.java | 62 if (address != null && address.length() > 0) { 65 if (cfg.length == 2) { 78 for (int i = 0; i < cfg.length; ++i) {
|
H A D | SortOrder.java | 55 if (name == null || name.length() == 0) {
|
/opengrok-sun/jrcs/src/main/java/org/apache/commons/jrcs/rcs/ |
H A D | ParseException.java | 103 for (int i = 0; i < expectedTokenSequences.length; i++) { 104 if (maxSize < expectedTokenSequences[i].length) { 105 maxSize = expectedTokenSequences[i].length; 107 for (int j = 0; j < expectedTokenSequences[i].length; j++) { 110 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { 128 if (expectedTokenSequences.length == 1) { 150 for (int i = 0; i < str.length(); i++) { 182 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
|
H A D | Version.java | 106 numbers = new int[num.length]; 107 for (int i = 0; i < num.length; i++) 210 for (i = 0; i < nthis.length; i++) 212 if (i >= nthat.length || nthis[i] > nthat[i]) 222 if (nthat.length > i) 363 positions = (positions > numbers.length ? numbers.length : positions); 377 result.numbers[this.numbers.length - 1] = this.last() + 1; 388 int[] newnum = new int[numbers.length + 1]; 389 System.arraycopy(this.numbers, 0, newnum, 0, numbers.length); [all...] |
H A D | FastCharStream.java | 54 } else if (bufferLength == buffer.length) { // grow buffer 55 byte[] newBuffer = new byte[buffer.length*2]; 69 input.read(buffer, newPosition, buffer.length-newPosition);
|
/opengrok-sun/src/org/opensolaris/opengrok/search/context/ |
H A D | WildCardMatcher.java | 80 boolean sEnd = (s >= string.length()); 82 boolean pEnd = (p >= pattern.length()); 93 while (wildcardSearchPos < pattern.length() && justWildcardsLeft) { 133 while (p < pattern.length() && pattern.charAt(p) == WILDCARD_STRING) { 137 for (int i = string.length(); i >= s; --i) {
|
H A D | PhraseMatcher.java | 43 if ( cur < phraseTerms.length-1) {
|
/opengrok-sun/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-sun/src/org/opensolaris/opengrok/history/ |
H A D | MercurialTagEntry.java | 22 assert revs.length == 2 : "Unable to parse revision format";
|
H A D | MercurialHistoryParser.java | 115 entry.setRevision(s.substring("changeset:".length()).trim()); 117 entry.setAuthor(s.substring("user:".length()).trim()); 121 date = df.parse(s.substring("date:".length()).trim()); 128 for (int ii = 1; ii < strings.length; ++ii) { 129 if (strings[ii].length() > 0) { 163 for (int i = DESC_PREFIX.length(); i < line.length(); i++) {
|
H A D | RepositoryFactory.java | 68 new ArrayList<Class<? extends Repository>>(repositories.length); 69 for (int i=repositories.length-1; i >= 0; i--) { 103 if (res.getType() == null || res.getType().length() == 0) {
|
/opengrok-sun/jrcs/src/main/java/org/apache/commons/jrcs/diff/ |
H A D | Diff.java | 197 if (orig.length == 0 && rev.length == 0) 211 if (orig.length != rev.length) 217 for (int i = 0; i < orig.length; i++) 242 * @return A sequence of the same length with all the lines 247 Object[] result = new String[text.length]; 249 for(int i = 0; i < text.length; i++) 262 return randomEdit(text, text.length); 304 return shuffle(text, text.length); [all...] |
H A D | SimpleDiff.java | 275 for (int i = 0; i < orig.length; i++) 298 int[] result = new int[seq.length + 1]; 299 for (int i = 0; i < seq.length; i++) 311 result[seq.length] = EOS;
|
/opengrok-sun/test/org/opensolaris/opengrok/analysis/php/ |
H A D | PhpXrefTest.java | 39 if (args.length == 0) { 69 read = exp.read(buffer, 0, buffer.length); 81 assertEquals(expected.length, gotten.length); 83 for (int i = 0; i < gotten.length; i++) {
|
/opengrok-sun/jrcs/src/main/java/org/apache/commons/jrcs/util/ |
H A D | ToString.java | 130 while( (i = value.indexOf('\n', p)) >= 0 && p < value.length()) { 135 if (p < value.length()) 136 l.add(value.substring(p, value.length())); 186 for (int i = 0; i < o.length - 1; i++) 192 if (o.length > 0) 193 buf.append(o[o.length - 1]);
|
/opengrok-sun/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 | PathTokenizer.java | 62 if (i >= buf.length) { 63 buf = Arrays.copyOf(buf, buf.length * 2);
|
/opengrok-sun/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);
|
/opengrok-sun/test/org/opensolaris/opengrok/analysis/ |
H A D | CtagsTest.java | 119 assertTrue("too many methods", count < names.length); 125 assertEquals("method count", names.length, count); 144 assertTrue("too many functions", count < names.length); 150 assertEquals("function count", names.length, count);
|
/opengrok-sun/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-sun/jrcs/src/main/java/org/apache/commons/jrcs/tools/ |
H A D | JRCS.java | 77 if (args.length > 2) 83 if (args.length >= 1)
|
/opengrok-sun/src/org/opensolaris/opengrok/search/ |
H A D | Summary.java | 25 StringBuilder sb = new StringBuilder(q.length() * 2); 27 for(int i=0; i < q.length() ; i++) {
|