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

123456

/opengrok/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/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/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.java46 for (int i = 0; i < str.length(); i++) {
108 return (output.length() == 0 ? "0" : output);
/opengrok/src/org/opensolaris/opengrok/history/
H A DMercurialTagEntry.java41 assert revs.length == 2 : "Unable to parse revision format";
H A DRepositoryFactory.java71 = new ArrayList<>(repositories.length);
72 for (int i = repositories.length - 1; i >= 0; i--) {
113 if (res.getType() == null || res.getType().length() == 0) {
117 if (res.getParent() == null || res.getParent().length() == 0) {
127 if (res.getBranch() == null || res.getBranch().length() == 0) {
137 if (res.getCurrentVersion() == null || res.getCurrentVersion().length() == 0) {
/opengrok/test/org/opensolaris/opengrok/util/
H A DStringUtilsTest.java48 for (i = 0; i < values.length; i++) {
/opengrok/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/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/src/org/opensolaris/opengrok/web/
H A DDiffType.java72 if (c == null || c.length() == 0) {
75 if (c.length() == 1) {
H A DUtil.java87 StringBuilder sb = new StringBuilder(q.length() * 2);
110 for (int i = 0; i < q.length(); i++) {
120 * @param length max. number of characters to append, starting from index 0.
124 public static void htmlize(char[] cs, int length, Appendable dest) argument
126 int len = length;
127 if (cs.length < length) {
128 len = cs.length;
225 if (path == null || path.length() == 0) {
229 path.charAt(path.length()
[all...]
H A DSortOrder.java56 if (name == null || name.length() == 0) {
/opengrok/src/org/opensolaris/opengrok/analysis/archive/
H A DZipAnalyzerFactory.java70 if (contents.length < MAGIC.length) {
73 for (int i = 0; i < MAGIC.length; i++) {
80 in.mark(buf.length);
/opengrok/test/org/opensolaris/opengrok/analysis/
H A DPathTokenizerTest.java55 assertTrue("too many tokens", count < expectedTokens.length);
61 inputText.indexOf(expected) + expected.length(),
67 assertEquals("wrong number of tokens", expectedTokens.length, count+dots);
H A DCtagsTest.java122 assertTrue("too many methods", count < names.length);
128 assertEquals("method count", names.length, count);
147 assertTrue("too many functions", count < names.length);
153 assertEquals("function count", names.length, count);
/opengrok/test/org/opensolaris/opengrok/web/
H A DPageConfigTest.java77 assertEquals(attrs.length, values.length);
79 for (int i = 0; i < attrs.length; i++) {
155 assertEquals(attrs.length, values.length);
156 for (int i = 0; i < attrs.length; i++) {
167 assertEquals(params.length, revisions.length);
168 for (int i = 0; i < revisions.length; i++) {
196 for (int i = 0; i < revisions.length;
[all...]
/opengrok/test/org/opensolaris/opengrok/analysis/php/
H A DPhpXrefTest.java88 if (args.length == 0) {
118 read = exp.read(buffer, 0, buffer.length);
130 assertEquals(expected.length, gotten.length);
132 for (int i = 0; i < gotten.length; i++) {
/opengrok/web/js/
H A Dsearchable-option-list-2.0.2.js129 return this.config.multiple && this.config.selectAllMaxItemsThreshold && this.items && this.items.length <= this.config.selectAllMaxItemsThreshold;
223 if ($closestInnerContainer.length) {
225 } else if ($closestSelectionContainer.length) {
293 if($el.length && $el.data('sol-item') &&
302 if($el.length && $el.data('label')) {
344 if (cssClassesAsString && cssClassesAsString.length > 0) {
348 for (var i = 0; i < cssClassList.length; i++) {
353 if (cssStylesAsString && cssStylesAsString.length > 0) {
357 for (var i = 0; i < stylesList.length; i++) {
360 if (splitted.length
[all...]
H A Dsearchable-option-list-2.0.2.min.js16 (function(d,c,a){var b=function(e,f){this.$originalElement=e;this.options=f;this.metadata=this.$originalElement.data("sol-options")};b.prototype={SOL_OPTION_FORMAT:{type:"option",value:undefined,selected:false,disabled:false,label:undefined,tooltip:undefined,cssClass:""},SOL_OPTIONGROUP_FORMAT:{type:"optiongroup",label:undefined,tooltip:undefined,disabled:false,children:undefined},DATA_KEY:"sol-element",WINDOW_EVENTS_KEY:"sol-window-events",defaults:{data:undefined,name:undefined,texts:{noItemsAvailable:"No entries found",selectAll:"Select all",selectNone:"Select none",quickDelete:"&times;",searchplaceholder:"Click here to search",loadingData:"Still loading data...",itemsSelected:"{$a} more items selected"},events:{onInitialized:undefined,onRendered:undefined,onOpen:undefined,onClose:undefined,onChange:undefined,onScroll:function(){var g=this.$input.offset().top-this.config.scrollTarget.scrollTop()+this.$input.outerHeight(false),h=this.$selectionContainer.outerHeight(false),i=g+h,j=this.config.displayContainerAboveInput||a.documentElement.clientHeight-this.config.scrollTarget.scrollTop()<i,e=this.$innerContainer.outerWidth(false)-parseInt(this.$selectionContainer.css("border-left-width"),10)-parseInt(this.$selectionContainer.css("border-right-width"),10);if(j){g=this.$input.offset().top-h-this.config.scrollTarget.scrollTop()+parseInt(this.$selectionContainer.css("border-bottom-width"),10);this.$container.removeClass("sol-selection-bottom").addClass("sol-selection-top")}else{this.$container.removeClass("sol-selection-top").addClass("sol-selection-bottom")}if(this.$innerContainer.css("display")!=="block"){e=e*1.2}else{var f=j?"border-bottom-right-radius":"border-top-right-radius";this.$selectionContainer.css(f,"initial");if(this.$actionButtons){this.$actionButtons.css(f,"initial")}}this.$selectionContainer.css("top",Math.floor(g)).css("left",Math.floor(this.$container.offset().left)).css("width",e);this.config.displayContainerAboveInput=j}},selectAllMaxItemsThreshold:30,showSelectAll:function(){return this.config.multiple&&this.config.selectAllMaxItemsThreshold&&this.items&&this.items.length<=this.config.selectAllMaxItemsThreshold},useBracketParameters:false,multiple:undefined,resultsContainer:undefined,closeOnClick:false,showSelectionBelowList:false,allowNullSelection:false,scrollTarget:undefined,maxHeight:undefined,converter:undefined,asyncBatchSize:300,searchTimeout:300,maxShow:0},init:function(){this.config=d.extend(true,{},this.defaults,this.options,this.metadata);var e=this._getNameAttribute(),f=this;if(!e){this._showErrorLabel("name attribute is required");return}if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}this.config.multiple=this.config.multiple||this.$originalElement.attr("multiple");if(!this.config.scrollTarget){this.config.scrollTarget=d(c)}this._registerWindowEventsIfNeccessary();this._initializeUiElements();this._initializeInputEvents();setTimeout(function(){f._initializeData();f.$originalElement.data(f.DATA_KEY,f).removeAttr("name").data("sol-name",e)},0);this.$originalElement.hide();this.$container.css("visibility","initial").show();return this},_getNameAttribute:function(){return this.config.name||this.$originalElement.data("sol-name")||this.$originalElement.attr("name")},_showErrorLabel:function(f){var e=d('<div style="color: red; font-weight: bold;" />').html(f);if(!this.$container){e.insertAfter(this.$originalElement)}else{this.$container.append(e)}},_registerWindowEventsIfNeccessary:function(){if(!c[this.WINDOW_EVENTS_KEY]){d(a).click(function(h){var i=d(h.target),g=i.closest(".sol-selection-container"),f=i.closest(".sol-inner-container"),e;if(f.length){e=f.first().parent(".sol-container")}else{if(g.length){e=g.first().parent(".sol-container")}}d(".sol-active").not(e).each(function(j,k){d(k).data(b.prototype.DATA_KEY).close()})});c[this.WINDOW_EVENTS_KEY]=true}},_initializeUiElements:function(){var m=this;this.internalScrollWrapper=function(){if(d.isFunction(m.config.events.onScroll)){m.config.events.onScroll.call(m)}};this.$input=d('<input type="text"/>').attr("placeholder",this.config.texts.searchplaceholder);this.$noResultsItem=d('<div class="sol-no-results"/>').html(this.config.texts.noItemsAvailable).hide();this.$loadingData=d('<div class="sol-loading-data"/>').html(this.config.texts.loadingData);this.$xItemsSelected=d('<div class="sol-results-count"/>');this.$caret=d('<div class="sol-caret-container"><b class="sol-caret"/></div>').click(function(i){m.toggle();i.preventDefault();return false});var k=d('<div class="sol-input-container"/>').append(this.$input);this.$innerContainer=d('<div class="sol-inner-container"/>').append(k).append(this.$caret);this.$selection=d('<div class="sol-selection"/>');this.$selectionContainer=d('<div class="sol-selection-container"/>').append(this.$noResultsItem).append(this.$loadingData).append(this.$selection);this.$container=d('<div class="sol-container"/>').hide().keydown(function(p){if(p.keyCode==13){var o="";d("#sbox #qtbl input[type='text']").each(function(){o+=d.trim(d(this).val())});if(p.keyCode==13&&o===""){if(m.$input.val()!==""){c.location=a.xrefPath+"/"+m.$input.val();return false}var i=d(".keyboard-selection").first().find(".sol-checkbox");if(i.length&&i.data("sol-item")&&i.data("sol-item").label){c.location=a.xrefPath+"/"+i.data("sol-item").label;return false}i=d(".sol-selected-display-item").first();if(i.length&&i.data("label")){c.location=a.xrefPath+"/"+i.data("label");return false}return false}return true}}).data(this.DATA_KEY,this).append(this.$selectionContainer).append(this.$innerContainer).insertBefore(this.$originalElement);this.$showSelectionContainer=d('<div class="sol-current-selection"/>');var n=this.config.resultsContainer||this.$innerContainer;if(this.config.resultsContainer){this.$showSelectionContainer.appendTo(n)}else{if(this.config.showSelectionBelowList){this.$showSelectionContainer.insertAfter(n)}else{this.$showSelectionContainer.insertBefore(n)}}if(this.config.maxHeight){this.$selection.css("max-height",this.config.maxHeight)}var l=this.$originalElement.attr("class"),h=this.$originalElement.attr("style"),e=[],f=[];if(l&&l.length>0){e=l.split(/\s+/);for(var g=0;g<e.length;g++){this.$container.addClass(e[g])}}if(h&&h.length>0){f=h.split(/\;/);for(var g=0;g<f.length;g++){var j=f[g].split(/\s*\:\s*/g);if(j.length
[all...]
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/tools/
H A DJRCS.java77 if (args.length > 2)
83 if (args.length >= 1)
/opengrok/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 39 milliseconds

123456