| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 2 | 0.988 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 309 | Closure/closure/goog/locale/datetimeparse.js |
| 2 | 8 | 329 | 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);
} ;
|
| ||||
/**
* 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*/
);
} ;
|
| |||
/**
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#2002a560]] | strictParse |
| 1 | 2 | [[#2002a560]] | parse |
| 2 | 1 | [[#2002a4e0]] | true |
| 2 | 2 | [[#2002a4e0]] | false |