/opengrok/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/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/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 | 46 for (int i = 0; i < str.length(); i++) { 108 return (output.length() == 0 ? "0" : output);
|
/opengrok/src/org/opensolaris/opengrok/history/ |
H A D | MercurialTagEntry.java | 41 assert revs.length == 2 : "Unable to parse revision format";
|
H A D | RepositoryFactory.java | 71 = 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 D | StringUtilsTest.java | 48 for (i = 0; i < values.length; i++) {
|
/opengrok/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/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/src/org/opensolaris/opengrok/web/ |
H A D | DiffType.java | 72 if (c == null || c.length() == 0) { 75 if (c.length() == 1) {
|
H A D | Util.java | 87 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 D | SortOrder.java | 56 if (name == null || name.length() == 0) {
|
/opengrok/src/org/opensolaris/opengrok/analysis/archive/ |
H A D | ZipAnalyzerFactory.java | 70 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 D | PathTokenizerTest.java | 55 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 D | CtagsTest.java | 122 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 D | PageConfigTest.java | 77 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 D | PhpXrefTest.java | 88 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 D | searchable-option-list-2.0.2.js | 129 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 D | searchable-option-list-2.0.2.min.js | 16 (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:"×",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 D | JRCS.java | 77 if (args.length > 2) 83 if (args.length >= 1)
|
/opengrok/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++) {
|