CloneSet505


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.988ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18309
Closure/closure/goog/locale/datetimeparse.js
28329
Closure/closure/goog/locale/datetimeparse.js
Clone Instance
1
Line Count
8
Source Line
309
Source File
Closure/closure/goog/locale/datetimeparse.js

/**
 * Parse the given string and fill info into date object. This version does
 * not validate the input.
 * @param {string} text The string being parsed.
 * @param {number} start The position from where parse should begin.
 * @param {Date} date The Date object to hold the parsed date.
 * @return {number} How many characters parser advanced.
 * @deprecated Use goog.i18n.DateTimeParse.prototype.parse.
 */
goog.locale.DateTimeParse.prototype.parse=  function (text, start, date){
  // It is a compatibility hack with the new parsing library.
  if (arguments.length==  2) {
    date=  arguments[1];
    start=  0;
                             }

  return this.internalParse_(text, start, date, false);
                                                                        } ;


Clone Instance
2
Line Count
8
Source Line
329
Source File
Closure/closure/goog/locale/datetimeparse.js

/**
 * Parse the given string and fill info into date object. This version will
 * validate the input and make sure it is a validate date/time.
 * @param {string} text The string being parsed.
 * @param {number} start The position from where parse should begin.
 * @param {Date} date The Date object to hold the parsed date.
 * @return {number} How many characters parser advanced.
 * @deprecated Use goog.i18n.DateTimeParse.prototype.strictParse.
 */
goog.locale.DateTimeParse.prototype.strictParse=  function (text, start, date){
  // It is a compatibility hack with the new parsing library.
  if (arguments.length==  2) {
    date=  arguments[1];
    start=  0;
                             }

  return this.internalParse_(text, start, date, true
                                                    /*validation*/
                                                    );
                                                                              } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Parse the given string and fill info into date object. This version will
 * validate the input and make sure it is a validate date/time.
 * @param {string} text The string being parsed.
 * @param {number} start The position from where parse should begin.
 * @param {Date} date The Date object to hold the parsed date.
 * @return {number} How many characters parser advanced.
 * @deprecated Use goog.i18n.DateTimeParse.prototype.strictParse.
 */
/**
 * Parse the given string and fill info into date object. This version does
 * not validate the input.
 * @param {string} text The string being parsed.
 * @param {number} start The position from where parse should begin.
 * @param {Date} date The Date object to hold the parsed date.
 * @return {number} How many characters parser advanced.
 * @deprecated Use goog.i18n.DateTimeParse.prototype.parse.
 */
goog.locale.DateTimeParse.prototype. [[#variable2002a560]]= function (text,start,date)
                                                            {
                                                              // It is a compatibility hack with the new parsing library.
                                                              if (arguments.length==2)
                                                                { date=arguments[1];
                                                                  start=0;
                                                                }
                                                              return this.internalParse_(text,start,date, [[#variable2002a4e0]]
                                                                                                         /*validation*/
                                                                                                         );
                                                            } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2002a560]]
strictParse 
12[[#2002a560]]
parse 
21[[#2002a4e0]]
true 
22[[#2002a4e0]]
false