Searched refs:length (Results 1 - 25 of 122) sorted by relevance

12345

/opengrok-sun/src/org/opensolaris/opengrok/web/
H A DUtil.java73 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 DDiffType.java71 if (c == null || c.length() == 0) {
74 if (c.length() == 1) {
H A DWebappListener.java62 if (address != null && address.length() > 0) {
65 if (cfg.length == 2) {
78 for (int i = 0; i < cfg.length; ++i) {
H A DSortOrder.java55 if (name == null || name.length() == 0) {
/opengrok-sun/jrcs/src/main/java/org/apache/commons/jrcs/rcs/
H A DParseException.java103 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 DVersion.java106 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 DFastCharStream.java54 } 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 DWildCardMatcher.java80 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 DPhraseMatcher.java43 if ( cur < phraseTerms.length-1) {
/opengrok-sun/src/org/opensolaris/opengrok/util/
H A DGetopt.java68 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 DStringUtils.java42 for (int i = 0; i < str.length(); i++) {
/opengrok-sun/src/org/opensolaris/opengrok/history/
H A DMercurialTagEntry.java22 assert revs.length == 2 : "Unable to parse revision format";
H A DMercurialHistoryParser.java115 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 DRepositoryFactory.java68 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 DDiff.java197 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 DSimpleDiff.java275 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 DPhpXrefTest.java39 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 DToString.java130 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 DList2TokenStream.java48 if (subTokens == null || subTokens.length == si) {
63 if (si < subTokens.length) {
H A DPathTokenizer.java62 if (i >= buf.length) {
63 buf = Arrays.copyOf(buf, buf.length * 2);
/opengrok-sun/src/org/opensolaris/opengrok/analysis/archive/
H A DZipAnalyzerFactory.java67 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 DCtagsTest.java119 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 DMercurialRepositoryTest.java76 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 DJRCS.java77 if (args.length > 2)
83 if (args.length >= 1)
/opengrok-sun/src/org/opensolaris/opengrok/search/
H A DSummary.java25 StringBuilder sb = new StringBuilder(q.length() * 2);
27 for(int i=0; i < q.length() ; i++) {

Completed in 211 milliseconds

12345