| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 2 | 0.984 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 266 | Closure/closure/goog/i18n/datetimeparse.js |
| 2 | 4 | 280 | Closure/closure/goog/i18n/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 {Date} date The Date object to hold the parsed date.
* @param {number=} opt_start The position from where parse should begin.
* @return {number} How many characters parser advanced.
*/
goog.i18n.DateTimeParse.prototype.parse= function (text, date, opt_start){
var start= opt_start
|| 0;
return this.internalParse_(text, date, start, false
/*validation*/
);
} ;
|
| ||||
/**
* 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 {Date} date The Date object to hold the parsed date.
* @param {number=} opt_start The position from where parse should begin.
* @return {number} How many characters parser advanced.
*/
goog.i18n.DateTimeParse.prototype.strictParse=
function (text, date, opt_start){
var start= opt_start
|| 0;
return this.internalParse_(text, date, start, true
/*validation*/
);
} ;
|
| |||
/**
* 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 {Date} date The Date object to hold the parsed date.
* @param {number=} opt_start The position from where parse should begin.
* @return {number} How many characters parser advanced.
*/
/**
* 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 {Date} date The Date object to hold the parsed date.
* @param {number=} opt_start The position from where parse should begin.
* @return {number} How many characters parser advanced.
*/
goog.i18n.DateTimeParse.prototype. [[#variable62f71bc0]]= function (text,date,opt_start)
{ var start=opt_start
|| 0;
return this.internalParse_(text,date,start, [[#variable62f71b40]]
/*validation*/
);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62f71bc0]] | strictParse |
| 1 | 2 | [[#62f71bc0]] | parse |
| 2 | 1 | [[#62f71b40]] | true |
| 2 | 2 | [[#62f71b40]] | false |